uint32_t MoveEvents::onPlayerDeEquip(Player* player, Item* item, slots_t slot, bool isRemoval) { MoveEvent* moveEvent = getEvent(item, MOVE_EVENT_DEEQUIP, slot); if(moveEvent && slot == moveEvent->getSlot()){ return moveEvent->fireEquip(player, item, slot, isRemoval); } return 1; }
uint32_t MoveEvents::onPlayerEquip(Player* player, Item* item, slots_t slot) { MoveEvent* moveEvent = getEvent(item, MOVE_EVENT_EQUIP, slot); if(moveEvent && slot == moveEvent->getSlot()){ return moveEvent->fireEquip(player, item, slot, false); } return 1; }