OverrideInjuryClearingFatigueBehavior

Tracking Issue: #1126

Tags: events

Allows overriding The game's behavior regarding Removing Fatigue on Healing Default: Vanilla behavior will be used.

OverrideInjuryClearingFatigueBehavior event

Param Value
EventID OverrideInjuryClearingFatigueBehavior
EventData XComLWTuple
EventSource XComGameState_Unit
NewGameState yes

Tuple contents

Index Name Type Direction
0 ShouldOverride bool inout

Listener template

static function EventListenerReturn OnOverrideInjuryClearingFatigueBehavior(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_Unit UnitState;
    local XComLWTuple Tuple;
    local bool ShouldOverride;

    UnitState = XComGameState_Unit(EventSource);
    Tuple = XComLWTuple(EventData);

    ShouldOverride = Tuple.Data[0].b;

    // Your code here

    Tuple.Data[0].b = ShouldOverride;

    return ELR_NoInterrupt;
}

Source code references