Floor is now just a fixture.

This commit is contained in:
Zed A. Shaw 2025-10-23 14:12:04 -04:00
parent 23f54bd4fe
commit e5fa76b03c
6 changed files with 20 additions and 25 deletions

View file

@ -37,8 +37,6 @@ TEST_CASE("make sure json_mods works", "[components]") {
for(auto& comp_data : config["RAT_KING"]["components"]) {
if(comp_data["_type"] == "AnimatedScene") {
auto comp = components::convert<components::AnimatedScene>(comp_data);
// the boss fight for the rat king doesn't have a stage so false=optional
REQUIRE(comp.floor == std::nullopt);
}
}
@ -49,7 +47,5 @@ TEST_CASE("make sure json_mods works", "[components]") {
auto rat_king = world.entity();
components::configure_entity(world, rat_king, config["RAT_KING"]["components"]);
auto boss = world.get<AnimatedScene>(rat_king);
REQUIRE(boss.floor == std::nullopt);
}