Fixed the Heavy Armor trait

This commit is contained in:
Forrest Keller 2017-10-21 04:04:19 -05:00
parent 43186c5e28
commit aec79de0d4

View File

@ -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"