2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_TraitAirborne extends Ext_TraitBase;
|
|
|
|
|
|
|
|
var array<float> HealRates;
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
Ext_PerkFieldMedic(Perk).AirborneAgentHealRate = Default.HealRates[Level-1];
|
|
|
|
Ext_PerkFieldMedic(Perk).AirborneAgentLevel = (Level<4 ? 1 : 2);
|
|
|
|
}
|
2020-11-28 21:54:57 +00:00
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00: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
|
|
|
|
}
|