KF2-Server-Extension/ServerExt/Classes/Ext_TraitGrenadeSUpg.uc
2017-10-19 21:00:49 -05:00

19 lines
553 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
{
TraitName="Grenade Upgrade"
DefLevelCosts(0)=50
Description="With this upgrade you will upgrade to your perk specific grenades.|Level 1: SUPER grenade"
DefMinLevel=50
}