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

18 lines
520 B
Ucode
Raw Normal View History

Class Ext_TraitSirenResistance extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkDemolition(Perk).bSirenResistance = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkDemolition(Perk).bSirenResistance = false;
}
defaultproperties
{
TraitName="Siren Resistance"
DefLevelCosts(0)=50
DefMinLevel=75
Description="Make all your projectiles resistant to siren screams."
}