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 theexp
of every remanining enemy party members should be added toexpreward
skipids
: Ifaddexp
is true, the list of enemy party members index to not have theirexp
added toexpreward
. This is ignored ifaddexp
is false
Procedure¶
- If addexp is true, all enemy party members's
exp
except the ones whose index is inskipids
are added toexpreward
followed by a RefreshEXP call enemydata
is reset to a new empty arraycancelupdate
is 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