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

21 lines
545 B
Ucode
Raw Normal View History

Class Ext_TraitDoorRepair extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkSupport(Perk).bCanRepairDoors = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkSupport(Perk).bCanRepairDoors = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkSupport'
TraitName="Door Repair"
NumLevels=1
DefLevelCosts(0)=30
DefMinLevel=25
Description="Allows you to repair doors using the welder."
}