MCPcopy Create free account
hub / github.com/EasyRPG/Player / DoItem

Method DoItem

src/scene_debug.cpp:1035–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035void Scene_Debug::DoItem() {
1036 const auto item_id = GetFrame(1).value;
1037 auto delta = GetFrame().value - Main_Data::game_party->GetItemCount(item_id);
1038
1039 Main_Data::game_party->AddItem(item_id, delta);
1040
1041 Game_Map::SetNeedRefresh(true);
1042
1043 Pop();
1044}
1045
1046void Scene_Debug::DoBattle() {
1047 auto troop_id = GetFrame(0).value;

Callers

nothing calls this directly

Calls 2

AddItemMethod · 0.80
GetItemCountMethod · 0.45

Tested by

no test coverage detected