| 1078 | } |
| 1079 | |
| 1080 | void 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 | |
| 1099 | void Scene_Debug::DoLevel() { |
| 1100 | const auto id = GetFrame(1).value; |