Update to latest Arbutils, use new integer defines

This commit is contained in:
Deukhoofd committed 2022-03-23 13:56:45 +01:00
1 parent 52127f6555
commit 3cc19de61f
102 files changed
+687 -742

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ TEST_CASE("Bool EffectParameter") {
}
TEST_CASE("Int EffectParameter") {
auto p = EffectParameter((int64_t)684);
auto p = EffectParameter((i64)684);
REQUIRE(p.AsInt() == 684);
REQUIRE(p.AsFloat() == 684);
}
+2 -2
View File
@@ -6,9 +6,9 @@
using namespace CreatureLib::Library;
TEST_CASE("Set Variant") {
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
auto c = CreatureSpecies(0, "foo", defaultVariant, 0, "", 0);
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
c.SetVariant("second"_cnc, secondVariant);
}
+1 -1
View File
@@ -25,7 +25,7 @@ SpeciesLibrary* TestLibrary::BuildSpeciesLibrary(const TalentLibrary* talentLibr
l->Insert("testSpecies1"_cnc.GetHash(),
new CreatureSpecies(
0, "testSpecies1"_cnc,
new SpeciesVariant("default"_cnc, 1, 1, 10, {0, 1}, StatisticSet<uint16_t>(10, 10, 10, 10, 10, 10),
new SpeciesVariant("default"_cnc, 1, 1, 10, {0, 1}, StatisticSet<u16>(10, 10, 10, 10, 10, 10),
{talentLibrary->Get("testTalent"_cnc)},
{talentLibrary->Get("testSecretTalent"_cnc)}, new LearnableAttacks(100)),
0.5f, "testGrowthRate"_cnc, 5));