KF2-Server-Extension/ServerExt/Classes/Ext_TraitToxicDart.uc
2017-10-19 21:00:49 -05:00

26 lines
687 B
Ucode

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
{
TraitName="Toxic Darts"
DefLevelCosts(0)=25
DefLevelCosts(1)=25
DefLevelCosts(2)=30
DartDamages(0)=15
DartDamages(1)=35
DartDamages(2)=70
NumLevels=3
Description="Make your healing darts poison the ZEDs, the damage is increased in a rate of:|Lv 1-3: +15, +35, +70 dmg"
}