26 lines
694 B
Ucode
Raw Normal View History

2017-10-19 21:00:49 -05:00
Class Ext_TraitSupply extends Ext_TraitBase;
var() Texture2D SupplyIcon;
2020-11-28 23:04:55 +03:00
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-19 21:00:49 -05:00
{
Ext_TraitSupplyData(Data).SpawnSupplier(Player);
}
2020-11-29 00:54:57 +03:00
2020-11-28 23:04:55 +03:00
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-19 21:00:49 -05:00
{
Ext_TraitSupplyData(Data).RemoveSupplier();
}
2020-11-29 00:54:57 +03:00
2020-11-28 23:04:55 +03:00
static function PlayerDied(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-19 21:00:49 -05:00
{
Ext_TraitSupplyData(Data).RemoveSupplier();
}
defaultproperties
{
DefLevelCosts(0)=50
TraitData=class'Ext_TraitSupplyData'
SupplyIcon=Texture2D'UI_World_TEX.Support_Supplier_HUD'
}