MCPcopy Create free account
hub / github.com/EasyRPG/Player / testModBaseLimits

Function testModBaseLimits

tests/game_actor.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static void testModBaseLimits(Game_Actor& actor, int hp, int base) {
103 REQUIRE_EQ(actor.GetMaxHpMod(), hp);
104 REQUIRE_EQ(actor.GetMaxSpMod(), base);
105 REQUIRE_EQ(actor.GetAtkMod(), base);
106 REQUIRE_EQ(actor.GetDefMod(), base);
107 REQUIRE_EQ(actor.GetSpiMod(), base);
108 REQUIRE_EQ(actor.GetAgiMod(), base);
109}
110
111static void testLimits(int hp, int base, int battle) {
112 SUBCASE("limit values") {

Callers 1

testLimitsFunction · 0.85

Calls 6

GetMaxHpModMethod · 0.80
GetMaxSpModMethod · 0.80
GetAtkModMethod · 0.80
GetDefModMethod · 0.80
GetSpiModMethod · 0.80
GetAgiModMethod · 0.80

Tested by

no test coverage detected