Removes some variables that are better handled in implementations.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-12-27 12:19:38 +01:00
parent 72c51c6513
commit ae4d8f5e12
8 changed files with 13 additions and 54 deletions

View File

@@ -38,30 +38,4 @@ TEST_CASE("Get creature nickname when unset", "[Library]") {
delete creature;
}
TEST_CASE("Get creature stat potentials when unset", "[Library]") {
auto library = TestLibrary::Get();
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
auto potentials = creature->GetStatPotential();
REQUIRE(potentials.GetHealth() == 0);
REQUIRE(potentials.GetPhysicalAttack() == 0);
REQUIRE(potentials.GetPhysicalDefense() == 0);
REQUIRE(potentials.GetMagicalAttack() == 0);
REQUIRE(potentials.GetMagicalDefense() == 0);
REQUIRE(potentials.GetSpeed() == 0);
delete creature;
}
TEST_CASE("Get creature stat experience when unset", "[Library]") {
auto library = TestLibrary::Get();
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
auto experiences = creature->GetStatExperience();
REQUIRE(experiences.GetHealth() == 0);
REQUIRE(experiences.GetPhysicalAttack() == 0);
REQUIRE(experiences.GetPhysicalDefense() == 0);
REQUIRE(experiences.GetMagicalAttack() == 0);
REQUIRE(experiences.GetMagicalDefense() == 0);
REQUIRE(experiences.GetSpeed() == 0);
delete creature;
}
#endif

View File

@@ -27,7 +27,7 @@ SpeciesLibrary* TestLibrary::BuildSpeciesLibrary() {
0, "testSpecies1",
new SpeciesVariant("default", 1, 1, 10, {0, 1}, StatisticSet<uint16_t>(10, 10, 10, 10, 10, 10),
{"testTalent"}, {"testSecretTalent"}, new LearnableAttacks(100)),
0.5f, "testGrowthRate", 5, 100));
0.5f, "testGrowthRate", 5));
return l;
}