CovertAction_OverrideRewardScalar

Tracking Issue: #807

Tags: events

Allows listeners to override the multiplier covert actions use to determine how many resources to award. The game uses 0.5 by default, which means CAs award half the supplies/intel/etc. you would get from a POI.

CovertAction_OverrideRewardScalar event

Param Value
EventID CovertAction_OverrideRewardScalar
EventData XComLWTuple
EventSource XComGameState_CovertAction
NewGameState none

Tuple contents

Index Name Type Direction
0 DefaultRewardScalar float inout
1 RewardState XComGameState_Reward in

Listener template

static function EventListenerReturn OnCovertAction_OverrideRewardScalar(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_CovertAction ActionState;
    local XComLWTuple Tuple;
    local float DefaultRewardScalar;
    local XComGameState_Reward RewardState;

    ActionState = XComGameState_CovertAction(EventSource);
    Tuple = XComLWTuple(EventData);

    DefaultRewardScalar = Tuple.Data[0].f;
    RewardState = XComGameState_Reward(Tuple.Data[1].o);

    // Your code here

    Tuple.Data[0].f = DefaultRewardScalar;

    return ELR_NoInterrupt;
}

Source code references