EndBattleWon¶
This method is a wrapper around AddExperience that is mainly used for EventDialogues to end the battle in a win.
private void EndBattleWon(bool addexp, int[] skipids)
Parameters¶
addexp: Whether theexpof every remanining enemy party members should be added toexprewardskipids: Ifaddexpis true, the list of enemy party members index to not have theirexpadded toexpreward. This is ignored ifaddexpis false
Procedure¶
- If addexp is true, all enemy party members's
expexcept the ones whose index is inskipidsare added toexprewardfollowed by a RefreshEXP call enemydatais reset to a new empty arraycancelupdateis set to true changing to a terminal flow (but it will already be changed to it anyway right after)- An AddExperience call starts which also makes sure to be in a terminal flow