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

23 lines
720 B
Ucode

Class Ext_TraitArmorRep extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).RepairArmorRate = float(Level)*0.05f;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).RepairArmorRate = 0;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkFieldMedic'
TraitName="Armor Repair"
NumLevels=5
DefLevelCosts(0)=10
DefLevelCosts(1)=15
DefLevelCosts(2)=20
DefLevelCosts(3)=25
DefLevelCosts(4)=35
Description="With this trait you will repair armor as you heal, for each level will repair armor with a rate of:|Lv1-5: +5%, +10%, +15%, +20%, +25%"
}