Removes some variables that are better handled in implementations.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user