| 696 | _game->characters.at(_characters[Enums::CharacterSlot::STORE])}; |
| 697 | const auto gold{who.get_gold()}; |
| 698 | |
| 699 | // Data is the item type |
| 700 | const auto item_type{_ctx.resources->items->get_item_type( |
| 701 | enum_cast<Enums::Items::TypeID>(data).value())}; |
| 702 | if (gold < item_type.get_value()) |
| 703 | return true; |
| 704 | }; |
| 705 | } else if (component == "store_menu") { |
| 706 | |
| 707 | // No gold, can't buy anything |