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

Method DoFullHeal

src/scene_debug.cpp:1080–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080void Scene_Debug::DoFullHeal() {
1081 const auto id = GetFrame(0).value;
1082
1083 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_UseItem));
1084 auto actors = Main_Data::game_party->GetActors();
1085 if (id <= 1) {
1086 for (auto& actor: actors) {
1087 actor->FullHeal();
1088 }
1089 } else {
1090 int idx = id - 2;
1091 if (idx < static_cast<int>(actors.size())) {
1092 actors[idx]->FullHeal();
1093 }
1094 }
1095 var_window->UpdateList(1);
1096 var_window->Refresh();
1097}
1098
1099void Scene_Debug::DoLevel() {
1100 const auto id = GetFrame(1).value;

Callers

nothing calls this directly

Calls 6

SePlayMethod · 0.80
FullHealMethod · 0.80
UpdateListMethod · 0.80
GetActorsMethod · 0.45
sizeMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected