KF2-Server-Extension/ServerExt/Classes/Ext_TraitGrenadeSUpg.uc
2020-06-26 03:55:53 +03:00

17 lines
419 B
Ucode

Class Ext_TraitGrenadeSUpg extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
if( Level==1 )
Perk.GrenadeClass = Perk.SuperGrenade;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Perk.GrenadeClass = Perk.Default.GrenadeClass;
}
defaultproperties
{
DefLevelCosts(0)=50
DefMinLevel=50
}