Support for learnable moves
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-24 11:04:19 +02:00
parent cfb7663d78
commit bb8978314f
15 changed files with 155 additions and 23 deletions

View File

@@ -11,7 +11,8 @@ static SpeciesLibrary* BuildSpeciesLibrary(){
l->LoadSpecies("testSpecies1", new CreatureSpecies(0, "testSpecies1",
new SpeciesVariant("default", 1,1, 10, {"fire", "water"},
StatisticSet<uint16_t >(10,10,10,10,10,10),
{"testTalent"}, {"testSecretTalent"}),
{"testTalent"}, {"testSecretTalent"},
new LearnableAttacks(100)),
0.5f, "testGrowthRate", 5, 100));
return l;
}
@@ -33,7 +34,8 @@ static GrowthRateLibrary* BuildGrowthRateLibrary(){
static DataLibrary* BuildLibrary(){
auto l = new DataLibrary(BuildSpeciesLibrary(), BuildAttackLibrary(), BuildItemLibrary(), BuildGrowthRateLibrary());
auto l = new DataLibrary(LibrarySettings(100, 4), BuildSpeciesLibrary(), BuildAttackLibrary(),
BuildItemLibrary(), BuildGrowthRateLibrary());
return l;
}
@@ -44,9 +46,4 @@ static DataLibrary* GetLibrary(){
}
return __library;
}
#ifndef LIBRARY_BUILD_TESTS
#define LIBRARY_BUILD_TESTS
#endif
#endif