2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_TraitArmorReg extends Ext_TraitHealthReg;
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
local Ext_T_ArmorRegHelp H;
|
|
|
|
|
|
|
|
H = Player.Spawn(class'Ext_T_ArmorRegHelp',Player);
|
2020-11-28 20:12:58 +00:00
|
|
|
if (H!=None)
|
2017-10-20 02:00:49 +00:00
|
|
|
H.RegCount = Default.RegenValues[Level-1];
|
|
|
|
}
|
2020-11-28 21:54:57 +00:00
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
local Ext_T_ArmorRegHelp H;
|
|
|
|
|
|
|
|
foreach Player.ChildActors(class'Ext_T_ArmorRegHelp',H)
|
|
|
|
H.Destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
RegenValues.Empty()
|
|
|
|
RegenValues.Add(7)
|
|
|
|
RegenValues.Add(12)
|
|
|
|
RegenValues.Add(25)
|
|
|
|
}
|