Update to latest Arbutils, use new integer defines
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user