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

21 lines
544 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
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'
NumLevels=5
DefLevelCosts(0)=10
DefLevelCosts(1)=15
DefLevelCosts(2)=20
DefLevelCosts(3)=25
DefLevelCosts(4)=35
}