KF2-Server-Extension/ServerExt/Classes/Ext_TraitArmorRep.uc
2020-06-26 03:55:53 +03:00

21 lines
544 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'
NumLevels=5
DefLevelCosts(0)=10
DefLevelCosts(1)=15
DefLevelCosts(2)=20
DefLevelCosts(3)=25
DefLevelCosts(4)=35
}