Include unequipping checks for enchant unit test. Removing items should update the player's active enchant list.
This commit is contained in:
parent
77d77f3030
commit
c3c8be14f8
@ -650,6 +650,25 @@ namespace PlayerTests
|
||||
Assert::IsTrue(player->HasEnchant("Attack Boost"));
|
||||
woodenSword.lock()->EnchantItem("Mana Pool");
|
||||
Assert::IsTrue(player->HasEnchant("Mana Pool"));
|
||||
|
||||
Inventory::UnequipItem(EquipSlot::HELMET);
|
||||
Inventory::UnequipItem(EquipSlot::ARMOR);
|
||||
Inventory::UnequipItem(EquipSlot::PANTS);
|
||||
Inventory::UnequipItem(EquipSlot::GLOVES);
|
||||
Inventory::UnequipItem(EquipSlot::SHOES);
|
||||
Inventory::UnequipItem(EquipSlot::WEAPON);
|
||||
Inventory::UnequipItem(EquipSlot::RING1);
|
||||
Inventory::UnequipItem(EquipSlot::RING2);
|
||||
|
||||
Assert::IsFalse(player->HasEnchant("Emergency Recovery"));
|
||||
Assert::IsFalse(player->HasEnchant("Reaper of Souls"));
|
||||
Assert::IsFalse(player->HasEnchant("Attack Boost"));
|
||||
Assert::IsFalse(player->HasEnchant("Wizard's Soul"));
|
||||
Assert::IsFalse(player->HasEnchant("Ability Haste"));
|
||||
Assert::IsFalse(player->HasEnchant("Improved Ground Slam"));
|
||||
Assert::IsFalse(player->HasEnchant("Battle Shout"));
|
||||
Assert::IsFalse(player->HasEnchant("Attack Boost"));
|
||||
Assert::IsFalse(player->HasEnchant("Mana Pool"));
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_PATCH 3
|
||||
#define VERSION_BUILD 10527
|
||||
#define VERSION_BUILD 10528
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user