Update InventoryChangeFailureAction.cpp

Corrected bot output for EQUIP_ERR_NOT_IN_COMBAT which is returned when the bot is in combat and cannot perform the equip action. Bot would previously say "I am not in combat", it will now say "I am in combat"
This commit is contained in:
avirar 2024-11-26 08:54:39 +11:00 committed by GitHub
parent e6feccb5aa
commit 37e5e3942d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ bool InventoryChangeFailureAction::Execute(Event event)
messages[EQUIP_ERR_BAG_FULL4] = messages[EQUIP_ERR_BAG_FULL];
messages[EQUIP_ERR_ITEM_SOLD_OUT] = messages[EQUIP_ERR_ITEM_IS_CURRENTLY_SOLD_OUT];
messages[EQUIP_ERR_OBJECT_IS_BUSY] = "This object is busy";
messages[EQUIP_ERR_NOT_IN_COMBAT] = "I am not in combat";
messages[EQUIP_ERR_NOT_IN_COMBAT] = "I am in combat";
messages[EQUIP_ERR_NOT_WHILE_DISARMED] = "Cannot do while disarmed";
messages[EQUIP_ERR_BAG_FULL6] = messages[EQUIP_ERR_BAG_FULL];
messages[EQUIP_ERR_CANT_EQUIP_RANK] = "Not enough rank";