2017-10-19 21:00:49 -05:00
|
|
|
Class Ext_TraitHeavyArmor extends Ext_TraitBase;
|
|
|
|
|
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
|
|
|
{
|
|
|
|
Perk.bHeavyArmor = true;
|
|
|
|
}
|
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
|
|
|
{
|
|
|
|
Perk.bHeavyArmor = false;
|
|
|
|
}
|
|
|
|
|
2020-11-28 23:04:55 +03:00
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-21 04:04:19 -05:00
|
|
|
{
|
2020-11-28 23:12:58 +03:00
|
|
|
if (Level <= 1)
|
2017-10-21 04:04:19 -05:00
|
|
|
return;
|
2023-05-14 05:49:12 +03:00
|
|
|
|
2017-10-21 04:04:19 -05:00
|
|
|
Level == 2 ? Player.AddArmor(50) : Player.AddArmor(Player.MaxArmor);
|
|
|
|
}
|
|
|
|
|
2017-10-19 21:00:49 -05:00
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
NumLevels=3
|
|
|
|
DefLevelCosts(0)=50
|
|
|
|
DefLevelCosts(1)=20
|
|
|
|
DefLevelCosts(2)=60
|
|
|
|
DefMinLevel=50
|
|
|
|
}
|