Skip to content

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 the exp of every remanining enemy party members should be added to expreward
  • skipids: If addexp is true, the list of enemy party members index to not have their exp added to expreward. This is ignored if addexp is false

Procedure

  • If addexp is true, all enemy party members's exp except the ones whose index is in skipids are added to expreward followed by a RefreshEXP call
  • enemydata is reset to a new empty array
  • cancelupdate 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