feat(Core/PlayerScript): Add Unequip hook (#23248)

Co-authored-by: Munzeria <Munzeria@dontemailme.lol>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
Munzeria 2025-12-27 00:09:56 +01:00 committed by GitHub
parent d54253310a
commit ae8dd49fd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View file

@ -88,6 +88,7 @@ enum PlayerHook
PLAYERHOOK_ON_AFTER_SET_VISIBLE_ITEM_SLOT,
PLAYERHOOK_ON_AFTER_MOVE_ITEM_FROM_INVENTORY,
PLAYERHOOK_ON_EQUIP,
PLAYERHOOK_ON_UNEQUIP_ITEM,
PLAYERHOOK_ON_PLAYER_JOIN_BG,
PLAYERHOOK_ON_PLAYER_JOIN_ARENA,
PLAYERHOOK_GET_CUSTOM_GET_ARENA_TEAM_ID,
@ -395,6 +396,9 @@ public:
// After an item has been equipped
virtual void OnPlayerEquip(Player* /*player*/, Item* /*it*/, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) { }
// After an item has been unequipped
virtual void OnPlayerUnequip(Player* /*player*/, Item* /*it*/) { }
// After player enters queue for BG
virtual void OnPlayerJoinBG(Player* /*player*/) { }