Fix bug where move spd % set bonus effect applied two times in a row. 56/56 tests passing. Release Build 9923.
This commit is contained in:
@@ -354,5 +354,13 @@ namespace PlayerTests
|
||||
const int enhancedDamageDealt{testMonster.GetMaxHealth()-testMonster.GetHealth()};
|
||||
Assert::AreEqual(enhancedDamageDealt,damageDealt*5,L"Original damage dealt should be half of the new attack. Factor in 100% crit rate and a bonus 100% crit dmg (making it 250%) 200%*2.5=500% damage.");
|
||||
}
|
||||
TEST_METHOD(MoveSpdPctStatEquipCheck){
|
||||
std::weak_ptr<Item>setArmor{Inventory::AddItem("Test Armor2"s)};
|
||||
|
||||
Assert::AreEqual(1.f,player->GetMoveSpdMult(),L"Move Spd is 100%");
|
||||
|
||||
Inventory::EquipItem(setArmor,EquipSlot::ARMOR);
|
||||
Assert::AreEqual(2.f,player->GetMoveSpdMult(),L"100% Move Spd should double the move speed from 100% to 200%");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user