KF2-Server-Extension/ServerExt/Classes/Ext_TraitGrenadeSUpg.uc

19 lines
553 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
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
}