RitualUI is mostly working, but need to make the consumption of items work in the UI.

This commit is contained in:
Zed A. Shaw 2025-05-01 23:46:30 -04:00
parent 6269d10807
commit dab0e092e6
5 changed files with 109 additions and 86 deletions

View file

@ -192,4 +192,10 @@ namespace ritual {
bool Blanket::no_selections() {
return selected.size() == 0;
}
void Blanket::consume_crafting() {
for(auto [item_id, setting] : selected) {
contents.erase(item_id);
}
}
}