From aec79de0d4d8e2c30ece3e534a22c16a4b49bf76 Mon Sep 17 00:00:00 2001 From: Forrest Keller Date: Sat, 21 Oct 2017 04:04:19 -0500 Subject: [PATCH] Fixed the Heavy Armor trait --- ServerExt/Classes/Ext_TraitHeavyArmor.uc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ServerExt/Classes/Ext_TraitHeavyArmor.uc b/ServerExt/Classes/Ext_TraitHeavyArmor.uc index c9f6370..2e67d49 100644 --- a/ServerExt/Classes/Ext_TraitHeavyArmor.uc +++ b/ServerExt/Classes/Ext_TraitHeavyArmor.uc @@ -9,6 +9,14 @@ static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_Tra Perk.bHeavyArmor = false; } +static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data ) +{ + if( Level <= 1 ) + return; + + Level == 2 ? Player.AddArmor(50) : Player.AddArmor(Player.MaxArmor); +} + defaultproperties { TraitName="Heavy Armor"