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

Method get_can_undo

src/core/controller.cpp:568–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 const auto &who{
567 _game->characters.at(_characters[Enums::CharacterSlot::STORE])};
568#pragma GCC diagnostic push
569#pragma GCC diagnostic ignored "-Wsign-compare"
570 if (selection < who.inventory.items().size()) {
571 const auto item{who.inventory.items().at(selection)};
572 return item.get_equipped() && item.get_cursed();
573 } else
574 return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected