MCPcopy Create free account
hub / github.com/davemoore22/sorcery / get_flag

Method get_flag

src/core/controller.cpp:698–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

containsMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected