The rituals can now craft from items taken from dead enemies and they go into the blanket right away.

This commit is contained in:
Zed A. Shaw 2025-04-27 13:48:35 -04:00
parent 1a9e068d02
commit 9d55b2954a
4 changed files with 12 additions and 2 deletions

View file

@ -39,7 +39,7 @@ namespace gui {
$gui.world().set_the<Background>({$gui.$parser, ColorValue::DARK_MID});
auto& the_belt = $level.world->get_the<ritual::Belt>();
for(int slot = 0; slot < 4; slot++) {
for(int slot = 0; slot < the_belt.max_slots; slot++) {
if(the_belt.has(slot)) {
std::string name = fmt::format("button_{}", slot);
auto& ritual = the_belt.get(slot);