| 1097 | } |
| 1098 | |
| 1099 | void Scene_Debug::DoLevel() { |
| 1100 | const auto id = GetFrame(1).value; |
| 1101 | const auto level = GetFrame(0).value; |
| 1102 | |
| 1103 | auto actors = Main_Data::game_party->GetActors(); |
| 1104 | int idx = id - 1; |
| 1105 | if (idx < static_cast<int>(actors.size())) { |
| 1106 | if (actors[idx]->GetLevel() != level) { |
| 1107 | actors[idx]->ChangeLevel(level, nullptr); |
| 1108 | } |
| 1109 | } |
| 1110 | |
| 1111 | Pop(); |
| 1112 | } |
| 1113 | |
| 1114 | void Scene_Debug::DoMoveSpeed() { |
| 1115 | Main_Data::game_player->SetMoveSpeed(Utils::Clamp<int>(GetFrame().value, 1, 7)); |
nothing calls this directly
no test coverage detected