Better UI for the ritual crafting that almost works, but need to get the selected items to move down. Might need some state machine love soon.

This commit is contained in:
Zed A. Shaw 2025-04-28 13:21:10 -04:00
parent 9d55b2954a
commit 14619558fa
9 changed files with 99 additions and 48 deletions

View file

@ -4,6 +4,7 @@
#include "fsm.hpp"
#include "dinkyecs.hpp"
#include "levelmanager.hpp"
#include "ai_debug.hpp"
TEST_CASE("ritual::Engine basic tests", "[rituals]") {
ritual::Engine re("assets/rituals.json");
@ -68,7 +69,7 @@ TEST_CASE("craft_state can be finalized for the end result", "[rituals]") {
}
TEST_CASE("the ritual belt works", "[rituals]") {
TEST_CASE("the ritual belt works", "[rituals-belt]") {
ritual::Belt the_belt;
ritual::Engine re;
auto craft_state = re.start();
@ -93,6 +94,12 @@ TEST_CASE("the ritual belt works", "[rituals]") {
the_belt.unequip(0);
REQUIRE(!the_belt.has(0));
}
craft_state.reset();
REQUIRE(craft_state.plan.script.size() == 0);
REQUIRE(!craft_state.plan.complete);
REQUIRE(craft_state.start == craft_state.original);
REQUIRE(!craft_state.is_combined());
}
TEST_CASE("ritual blanket basic operations", "[rituals]") {