2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_TraitGrenadeCap extends Ext_TraitCarryCap;
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data);
|
|
|
|
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data);
|
2017-10-20 02:00:49 +00:00
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
Perk.PerkManager.SetGrenadeCap(Default.CarryAdds[Level-1]);
|
|
|
|
}
|
2020-11-28 20:04:55 +00:00
|
|
|
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
Perk.PerkManager.SetGrenadeCap(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
DefLevelCosts(0)=40
|
|
|
|
DefLevelCosts(1)=55
|
|
|
|
DefLevelCosts(2)=70
|
|
|
|
DefLevelCosts(3)=90
|
|
|
|
DefLevelCosts(4)=150
|
|
|
|
CarryAdds(0)=1
|
|
|
|
CarryAdds(1)=2
|
|
|
|
CarryAdds(2)=3
|
|
|
|
CarryAdds(3)=5
|
|
|
|
CarryAdds(4)=8
|
|
|
|
}
|