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

26 lines
739 B
Ucode
Raw Normal View History

Class Ext_TraitZedTExt extends Ext_TraitBase;
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkCommando(Perk).ZTExtCount = Level;
}
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'
TraitName="ZED Time Extensions"
NumLevels=6
DefLevelCosts(0)=15
DefLevelCosts(1)=25
DefLevelCosts(2)=35
DefLevelCosts(3)=45
DefLevelCosts(4)=55
DefLevelCosts(5)=65
DefMinLevel=15
Description="Adds ZED Time extensions to your perk. The amount of extensions is increased by 1 every level"
}