2017-10-20 07:02:53 +00:00
|
|
|
Class Ext_TraitMedShield extends Ext_TraitBase;
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
Ext_PerkFieldMedic(Perk).HealingShieldPct = 10.0f + (5.f + ((float(Level) - 1.f) * 5.f));
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
Ext_PerkFieldMedic(Perk).HealingShieldPct = 10.0f;
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
Ext_PerkFieldMedic(Perk).bHealingShield = true;
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 07:02:53 +00:00
|
|
|
{
|
|
|
|
Ext_PerkFieldMedic(Perk).bHealingShield = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
SupportedPerk=class'Ext_PerkFieldMedic'
|
|
|
|
NumLevels=5
|
|
|
|
DefLevelCosts(0)=35
|
|
|
|
DefLevelCosts(1)=10
|
|
|
|
DefLevelCosts(2)=20
|
|
|
|
DefLevelCosts(3)=30
|
|
|
|
DefLevelCosts(4)=40
|
|
|
|
DefMinLevel=100
|
|
|
|
}
|