|
|
|
@ -1066,9 +1066,7 @@ namespace EnchantTests |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility2(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
while(BULLET_LIST.size()>0){ |
|
|
|
|
Game::Update(1/30.f); |
|
|
|
|
} |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(925,newMonster.GetHealth(),L"Monster should have lost 75 health from Poison Pool."); |
|
|
|
|
Game::Update(2.f); |
|
|
|
|
Assert::AreEqual(925,newMonster.GetHealth(),L"Monster should still have 925 health."); |
|
|
|
@ -1079,9 +1077,7 @@ namespace EnchantTests |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility2(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
while(BULLET_LIST.size()>0){ |
|
|
|
|
Game::Update(1/30.f); |
|
|
|
|
} |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(925,newMonster.GetHealth(),L"Monster should have lost 75 health from Poison Pool."); |
|
|
|
|
Game::Update(2.f); |
|
|
|
|
Assert::AreEqual(910,newMonster.GetHealth(),L"Monster should have lost an additional 15 health from lingering Pooling Poison."); |
|
|
|
@ -1091,9 +1087,7 @@ namespace EnchantTests |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility2(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
while(BULLET_LIST.size()>0){ |
|
|
|
|
Game::Update(1/30.f); |
|
|
|
|
} |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(925,newMonster.GetHealth(),L"Monster should have lost 75 health from Poison Pool."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(PoisonBounceEnchantCheck){ |
|
|
|
@ -1102,10 +1096,27 @@ namespace EnchantTests |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility2(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
while(BULLET_LIST.size()>0){ |
|
|
|
|
Game::Update(1/30.f); |
|
|
|
|
} |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(895,newMonster.GetHealth(),L"Monster should have lost 105 health from Poison Pool."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(ExpungeNoEnchantCheck){ |
|
|
|
|
Game::ChangeClass(player,WITCH); |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility3(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
player->AutoAttack(); |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(970,newMonster.GetHealth(),L"Monster should have taken double damage from Curse of Death."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(ExpungeEnchantCheck){ |
|
|
|
|
Game::ChangeClass(player,WITCH); |
|
|
|
|
Game::GiveAndEquipEnchantedRing("Expunge"); |
|
|
|
|
Monster&newMonster{game->SpawnMonster({30.f,0.f},MONSTER_DATA["TestName"])}; |
|
|
|
|
Game::Update(0.f); |
|
|
|
|
Game::CastAbilityAtLocation(player->GetAbility3(),player->GetPos()+vf2d{30.f,0.f}); |
|
|
|
|
player->AutoAttack(); |
|
|
|
|
while(BULLET_LIST.size()>0)Game::Update(1/30.f); |
|
|
|
|
Assert::AreEqual(962,newMonster.GetHealth(),L"Monster should have taken 150% more damage with Curse of Death."); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|