CHL_SetupActionsForBeginTurn

Tracking Issue: #1325

A function located in XComGameState_Unit. This variant of the vanilla SetupActionsForBeginTurn comes with a slew of optional parameters to allow for greater control. If none of the parameters are used, it'll default to behaving like the vanilla SetupActionsForBeginTurn function. Below is the definitions of these parameters and what they are for:

optional bool GiveActionPoints = true - Controls whether or not a unit will gain the default 2 standard action points.

optional bool ResetUntouchable = true - Controls whether or not the units with untouchable will be reset and able to be acquired again.

optional bool ResetGotFreeFireAction = true - Controls whether or not hair trigger procs reset.

optional bool HandleMovesUnitValues = true - Units have some movement related unit values get manipulated in the vanilla SetupActionsForBeginTurn function. This determines if that happens or not.

optional bool CleanupBeginTurnUnitValues = true - Controls whether or not unit values with eCleanup_BeginTurn get reset.

optional bool UpdateTurnStartLocation = true - Controls whether or not the unit's turn start location gets updated.

optional bool ResetPanicTestsPerformedThisTurn = true - Controls whether or not the tracker for the amount of panic tests performed gets reset.

Source code references