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

19 lines
456 B
Ucode
Raw Permalink Normal View History

Class Ext_TraitDoorRepair extends Ext_TraitBase;
2020-11-28 20:04:55 +00:00
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkSupport(Perk).bCanRepairDoors = true;
}
2020-11-28 20:04:55 +00:00
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkSupport(Perk).bCanRepairDoors = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkSupport'
NumLevels=1
DefLevelCosts(0)=30
DefMinLevel=25
}