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

Method SetupNewGame

src/player.cpp:1258–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1256}
1257
1258void Player::SetupNewGame() {
1259 Main_Data::game_system->BgmFade(800, true);
1260 Main_Data::game_system->ResetFrameCounter();
1261 auto title = Scene::Find(Scene::Title);
1262 if (title) {
1263 static_cast<Scene_Title*>(title.get())->OnGameStart();
1264 }
1265
1266 Main_Data::game_system->SetAtbMode(static_cast<Game_System::AtbMode>(lcf::Data::battlecommands.easyrpg_default_atb_mode));
1267
1268 Main_Data::game_party->SetupNewGame();
1269 SetupPlayerSpawn();
1270 Scene::Push(std::make_shared<Scene_Map>(0));
1271}
1272
1273void Player::SetupPlayerSpawn() {
1274 int map_id = Player::start_map_id == -1 ?

Callers 1

MockActorMethod · 0.45

Calls 5

BgmFadeMethod · 0.80
ResetFrameCounterMethod · 0.80
OnGameStartMethod · 0.80
SetAtbModeMethod · 0.80
getMethod · 0.45

Tested by 1

MockActorMethod · 0.36