8 public override int Electricity
12 return base.Electricity + ((this.IsFridge ? 50 : 0) + this.owner.c_containerUpgrade.cap / 5) * -1;
18 public override bool IsHomeItem
28 public override bool IsSpecialContainer
38 public override bool CanBeOnlyBuiltInHome
48 public override bool CanOpenContainer
52 return EClass._zone.IsPCFaction && this.owner.IsInstalled;
58 public override bool IsFridge
62 return this.owner.c_containerUpgrade.cool > 0;
68 public override bool UseAltTiles
72 return this.owner.isOn;
78 public override int DecaySpeedChild
82 if (!this.IsFridge || !this.owner.isOn)
84 return base.DecaySpeedChild;
92 public override bool CanSearchContents
96 return EClass.core.IsGameStarted && this.owner.IsInstalled &&
EClass._zone.IsPCFaction;
101 public override void SetName(ref
string s)
105 s =
"chest_fridge".lang(s,
null,
null,
null,
null);