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

29 lines
722 B
Ucode
Raw Normal View History

2017-10-19 21:00:49 -05:00
Class Ext_TraitAirborne extends Ext_TraitBase;
var array<float> HealRates;
2020-11-28 23:04:55 +03:00
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-19 21:00:49 -05:00
{
Ext_PerkFieldMedic(Perk).AirborneAgentHealRate = Default.HealRates[Level-1];
Ext_PerkFieldMedic(Perk).AirborneAgentLevel = (Level<4 ? 1 : 2);
}
2020-11-29 00:54:57 +03:00
2020-11-28 23:04:55 +03:00
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-19 21:00:49 -05:00
{
Ext_PerkFieldMedic(Perk).AirborneAgentLevel = 0;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkFieldMedic'
DefLevelCosts(0)=20
DefLevelCosts(1)=10
DefLevelCosts(2)=10
DefLevelCosts(3)=60
HealRates(0)=0.05
HealRates(1)=0.1
HealRates(2)=0.2
HealRates(3)=0.15
NumLevels=4
DefMinLevel=50
}