mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr * spellmgr -> sSpellMgr * WaypointMgr -> sWaypointMgr * poolhandler -> sPoolMgr * objaccessor -> sObjectAccessor * mapmgr -> sMapMgr * sInstanceSaveManager -> sInstanceSaveMgr * ticketmgr -> sTicketMgr * CreatureEAI_Mgr -> sEventAIMgr * auctionmgr -> sAuctionMgr * achievementmgr -> sAchievementMgr
This commit is contained in:
parent
539072fcbd
commit
0734adb746
84 changed files with 1113 additions and 1113 deletions
|
|
@ -133,7 +133,7 @@ void LootStore::LoadLootTable()
|
|||
}
|
||||
|
||||
// (condition + cond_value1/2) are converted into single conditionId
|
||||
uint16 conditionId = objmgr.GetConditionId(condition, cond_value1, cond_value2);
|
||||
uint16 conditionId = sObjectMgr.GetConditionId(condition, cond_value1, cond_value2);
|
||||
|
||||
LootStoreItem storeitem = LootStoreItem(item, chanceOrQuestChance, group, conditionId, mincountOrRef, maxcount);
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ LootItem::LootItem(LootStoreItem const& li)
|
|||
bool LootItem::AllowedForPlayer(Player const * player) const
|
||||
{
|
||||
// DB conditions check
|
||||
if ( !objmgr.IsPlayerMeetToCondition(player,conditionId) )
|
||||
if ( !sObjectMgr.IsPlayerMeetToCondition(player,conditionId) )
|
||||
return false;
|
||||
|
||||
if ( needs_quest )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue