27 lines
795 B
Ucode
27 lines
795 B
Ucode
|
Class Ext_TraitArmorReg extends Ext_TraitHealthReg;
|
||
|
|
||
|
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
||
|
{
|
||
|
local Ext_T_ArmorRegHelp H;
|
||
|
|
||
|
H = Player.Spawn(class'Ext_T_ArmorRegHelp',Player);
|
||
|
if( H!=None )
|
||
|
H.RegCount = Default.RegenValues[Level-1];
|
||
|
}
|
||
|
static function CancelEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
||
|
{
|
||
|
local Ext_T_ArmorRegHelp H;
|
||
|
|
||
|
foreach Player.ChildActors(class'Ext_T_ArmorRegHelp',H)
|
||
|
H.Destroy();
|
||
|
}
|
||
|
|
||
|
defaultproperties
|
||
|
{
|
||
|
TraitName="Armor Regeneration"
|
||
|
Description="With this trait your armor will regen every 10 seconds at a rate of:|Lvl1-3: +7pts, +12pts, +25pts"
|
||
|
RegenValues.Empty()
|
||
|
RegenValues.Add(7)
|
||
|
RegenValues.Add(12)
|
||
|
RegenValues.Add(25)
|
||
|
}
|