OverrideNumUpgradeSlots
Tracking Issue: #93
Tags: events
This event allows mods to modify the number of upgrade slots for each individual item state.
OverrideNumUpgradeSlots event
Param | Value |
---|---|
EventID | OverrideNumUpgradeSlots |
EventData | XComLWTuple |
EventSource | XComGameState_Item |
NewGameState | none |
Tuple contents
Index | Name | Type | Direction |
---|---|---|---|
0 | NumUpgradeSlots | int | inout |
Listener template
static function EventListenerReturn OnOverrideNumUpgradeSlots(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
local XComGameState_Item ItemState;
local XComLWTuple Tuple;
local int NumUpgradeSlots;
ItemState = XComGameState_Item(EventSource);
Tuple = XComLWTuple(EventData);
NumUpgradeSlots = Tuple.Data[0].i;
// Your code here
Tuple.Data[0].i = NumUpgradeSlots;
return ELR_NoInterrupt;
}