RitualUI is mostly working, but need to make the consumption of items work in the UI.
This commit is contained in:
parent
6269d10807
commit
dab0e092e6
5 changed files with 109 additions and 86 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue