KF2-Server-Extension/ServerExt/Classes/Ext_TraitZedTExt.uc

24 lines
593 B
Ucode
Raw Normal View History

Class Ext_TraitZedTExt extends Ext_TraitBase;
2020-11-28 20:04:55 +00:00
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkCommando(Perk).ZTExtCount = Level;
}
2020-11-28 20:04:55 +00:00
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkCommando(Perk).ZTExtCount = Level;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkCommando'
NumLevels=6
DefLevelCosts(0)=15
DefLevelCosts(1)=25
DefLevelCosts(2)=35
DefLevelCosts(3)=45
DefLevelCosts(4)=55
DefLevelCosts(5)=65
DefMinLevel=15
}