The whole boss fight scene is now configurable with json.

This commit is contained in:
Zed A. Shaw 2025-09-27 11:58:44 -04:00
parent 06f6098281
commit 06a174040f
5 changed files with 29 additions and 43 deletions

View file

@ -52,10 +52,4 @@ TEST_CASE("make sure json_mods works", "[components]") {
auto boss = world.get<BossFight>(rat_king);
REQUIRE(boss.floor != std::nullopt);
// now load the other one for the other way optional is used
auto devils_fingers = world.entity();
components::configure_entity(world, devils_fingers, config["DEVILS_FINGERS"]["components"]);
auto boss2 = world.get<BossFight>(devils_fingers);
REQUIRE(boss2.floor != std::nullopt);
}