summaryrefslogtreecommitdiff
path: root/src/game/Scripting/ScriptMgr.h
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-12-03 14:45:34 +0000
committerYehonal <yehonal.azeroth@gmail.com>2017-12-04 02:12:48 +0000
commitc044cbfdffdf3f84dcc273bd323d50876faf124f (patch)
tree3df4e1cae86c9521e9c2e10f14d964e08ac7da64 /src/game/Scripting/ScriptMgr.h
parent3e4390a5b29f26208ab7a2b1382aa63ae7443d6d (diff)
Improved OnItemRoll hook
Now you can change the chance temporary and dinamically
Diffstat (limited to 'src/game/Scripting/ScriptMgr.h')
-rw-r--r--src/game/Scripting/ScriptMgr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Scripting/ScriptMgr.h b/src/game/Scripting/ScriptMgr.h
index ca936b4cad..c71c45dbff 100644
--- a/src/game/Scripting/ScriptMgr.h
+++ b/src/game/Scripting/ScriptMgr.h
@@ -1008,7 +1008,7 @@ class GlobalScript : public ScriptObject
// loot
virtual void OnAfterRefCount(Player const* /*player*/, LootStoreItem* /*LootStoreItem*/, Loot& /*loot*/, bool /*canRate*/, uint16 /*lootMode*/, uint32& /*maxcount*/, LootStore const& /*store*/) { }
virtual void OnBeforeDropAddItem(Player const* /*player*/, Loot& /*loot*/, bool /*canRate*/, uint16 /*lootMode*/, LootStoreItem* /*LootStoreItem*/, LootStore const& /*store*/) { }
- virtual void OnBeforeItemRoll(Player const* /*player*/, Loot& /*loot*/, bool /*canRate*/, uint16 /*lootMode*/, LootStoreItem* /*LootStoreItem*/, LootStore const& /*store*/) { };
+ virtual void OnItemRoll(Player const* /*player*/, LootStoreItem const* /*LootStoreItem*/, float& /*chance*/, Loot& /*loot*/, LootStore const& /*store*/) { };
virtual void OnInitializeLockedDungeons(Player* /*player*/, uint8& /*level*/, uint32& /*lockData*/) { }
virtual void OnAfterInitializeLockedDungeons(Player* /*player*/) { }
@@ -1281,7 +1281,7 @@ class ScriptMgr
void OnBeforeUpdateArenaPoints(ArenaTeam* at, std::map<uint32, uint32> &ap);
void OnAfterRefCount(Player const* player, Loot& loot, bool canRate, uint16 lootMode, LootStoreItem* LootStoreItem, uint32 &maxcount, LootStore const& store);
void OnBeforeDropAddItem(Player const* player, Loot& loot, bool canRate, uint16 lootMode, LootStoreItem* LootStoreItem, LootStore const& store);
- void OnBeforeItemRoll(Player const* player, Loot& loot, bool canRate, uint16 lootMode, LootStoreItem* LootStoreItem, LootStore const& store);
+ void OnItemRoll(Player const* player, LootStoreItem const* LootStoreItem, float &chance, Loot& loot, LootStore const& store);
void OnInitializeLockedDungeons(Player* player, uint8& level, uint32& lockData);
void OnAfterInitializeLockedDungeons(Player* player);