Update to latest Arbutils, use new integer defines

This commit is contained in:
2022-03-23 13:56:45 +01:00
parent 52127f6555
commit 3cc19de61f
102 changed files with 687 additions and 742 deletions

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);
}

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);
}