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.
cancelupdateis set to true changing to a terminal flowcurrentturnis set topartypointer[0](the front member)- A second is yielded
- If MainManager.
battlelosseventis false,gameoveris 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.
battleresultis set to false (the battle was still lost) - A ReturnToOverworld coroutine starts
- MainManager.
forceattackis reset to -1 (there are no valid player party members target anyway)mainturnis set to null