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

24 lines
542 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitToxicDart extends Ext_TraitBase;
var array<int> DartDamages;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Perk.ToxicDartDamage = Default.DartDamages[Level-1];
Perk.bToxicDart = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Perk.bToxicDart = false;
}
defaultproperties
{
DefLevelCosts(0)=25
DefLevelCosts(1)=25
DefLevelCosts(2)=30
DartDamages(0)=15
DartDamages(1)=35
DartDamages(2)=70
NumLevels=3
}