Ritual blanket now has its own internal id but I'm sort of thinking it needs to be more like inventory::Model. Closes #47.

This commit is contained in:
Zed A. Shaw 2025-06-30 10:15:22 -04:00
parent cad51f4908
commit b28b76ee2d
5 changed files with 22 additions and 23 deletions

View file

@ -2,7 +2,6 @@
#include <iostream>
#include "rituals.hpp"
#include "simplefsm.hpp"
#include "dinkyecs.hpp"
#include "levelmanager.hpp"
#include "ai_debug.hpp"
@ -107,8 +106,8 @@ TEST_CASE("the ritual belt works", "[rituals]") {
TEST_CASE("ritual blanket basic operations", "[rituals-blanket]") {
ritual::Blanket blanket;
DinkyECS::Entity other = blanket.add("rusty_nails");
DinkyECS::Entity ent = blanket.add("severed_finger");
ritual::Entity other = blanket.add("rusty_nails");
ritual::Entity ent = blanket.add("severed_finger");
auto& name = blanket.get(ent);
REQUIRE(name == "severed_finger");