2.4.3 End of turn status handling - jmcx532/FFX-2-TurnBased GitHub Wiki

ATBRecovery_StatusHandling.cs

MsStatusProcess()

Vanilla FFX-2 uses this function to process status' time remaining, and to apply Poison/Regen ticks, decrement Doom Count etc. This function has been stubbed out and custom functions are used to handled statuses as required.

TbStatusProcess() - decrement status' turns remaining and trigger Poison tick

This function is similar to the base game MsStatusProcess, however it's functionality has been extracted from a do{} while() loop that iterated over all characters, and it doesn't handle Regen. It is called when a character completes a turn.

TbRegenProcess() - trigger Regen tick

This function does loop over all characters and triggers a Regen tick for them if they're under Regen. Called immediately after TbStatusProcess().