DeadParty¶
This is a wrapper terminal coroutine that will call GameOver or ReturnToOverworld depending on MainManager.battlelossevent
. It is called when the game finds out the party is fully dead.
cancelupdate
is set to true changing to a terminal flowcurrentturn
is set topartypointer[0]
(the front member)- A second is yielded
- If MainManager.
battlelossevent
is false,gameover
is set to a new GameOver call without skipsetup if it wasn't running already - Otherwise, this means the game requested the battle to not game over if lost:
- MainManager.
battleresult
is set to false (the battle was still lost) - A ReturnToOverworld coroutine starts
- MainManager.
forceattack
is reset to -1 (there are no valid player party members target anyway)mainturn
is set to null