|
|
|
@ -906,5 +906,20 @@ namespace EnchantTests |
|
|
|
|
game->OnUserUpdate(0.f); //Wait for mark lock-on
|
|
|
|
|
Assert::AreEqual(20.f,newMonster.GetBuffs(BuffType::TRAPPER_MARK)[0].duration,L"Mark duration is increased greatly."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(TrapCollectorNoEnchantCheck){ |
|
|
|
|
game->ChangePlayerClass(TRAPPER); |
|
|
|
|
player=game->GetPlayer(); |
|
|
|
|
Assert::AreEqual(uint8_t(1),Trapper::ability2.MAX_CHARGES,L"Normally Bear Trap only has one charge."); |
|
|
|
|
Assert::AreEqual(uint8_t(1),Trapper::ability3.MAX_CHARGES,L"Normally Explosive Trap only has one charge."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(TrapCollectorEnchantCheck){ |
|
|
|
|
game->ChangePlayerClass(TRAPPER); |
|
|
|
|
player=game->GetPlayer(); |
|
|
|
|
std::weak_ptr<Item>nullRing{Inventory::AddItem("Null Ring"s)}; |
|
|
|
|
Inventory::EquipItem(nullRing,EquipSlot::RING1); |
|
|
|
|
nullRing.lock()->EnchantItem("Trap Collector"); |
|
|
|
|
Assert::AreEqual(uint8_t(2),Trapper::ability2.MAX_CHARGES,L"Trap Collector enchant increases Bear Trap charges to two."); |
|
|
|
|
Assert::AreEqual(uint8_t(2),Trapper::ability3.MAX_CHARGES,L"Trap Collector enchant increases Explosive Trap charges to two."); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |