2017-10-20 02:00:49 +00:00
Class Ext _TraitHeavyArmor extends Ext _TraitBase ;
static function TraitActivate ( Ext _PerkBase Perk , byte Level , optional Ext _TraitDataStore Data )
{
Perk . bHeavyArmor = true ;
}
static function TraitDeActivate ( Ext _PerkBase Perk , byte Level , optional Ext _TraitDataStore Data )
{
Perk . bHeavyArmor = false ;
}
2017-10-21 09:04:19 +00:00
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 ) ;
}
2017-10-20 02:00:49 +00:00
defaultproperties
{
TraitName = "Heavy Armor"
NumLevels = 3
DefLevelCosts ( 0 ) = 50
DefLevelCosts ( 1 ) = 20
DefLevelCosts ( 2 ) = 60
DefMinLevel = 50
Description = "Makes your armor stop all damage (except for Siren scream and fall damage).|Level 2 makes you in addition spawn with 50 points of armor.|Level 3 makes you spawn with full armor."
}