Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitMagicChest.cs
Go to the documentation of this file.
2{
3 public override int Electricity => base.Electricity + ((IsFridge ? 50 : 0) + owner.c_containerUpgrade.cap / 5) * -1;
4
5 public override bool IsHomeItem => true;
6
7 public override bool IsSpecialContainer => true;
8
9 public override bool CanBeOnlyBuiltInHome => true;
10
11 public override bool CanOpenContainer
12 {
13 get
14 {
16 {
17 return owner.IsInstalled;
18 }
19 return false;
20 }
21 }
22
23 public override bool IsFridge => owner.c_containerUpgrade.cool > 0;
24
25 public override bool UseAltTiles => owner.isOn;
26
27 public override int DecaySpeedChild
28 {
29 get
30 {
31 if (!IsFridge || !owner.isOn)
32 {
33 return base.DecaySpeedChild;
34 }
35 return 0;
36 }
37 }
38
39 public override bool CanSearchContent
40 {
41 get
42 {
44 {
46 }
47 return false;
48 }
49 }
50
51 public override void SetName(ref string s)
52 {
53 if (IsFridge)
54 {
55 s = "chest_fridge".lang(s);
56 }
57 }
58}
ContainerUpgrade c_containerUpgrade
Definition: Card.cs:1769
bool IsInstalled
Definition: Card.cs:2241
bool isOn
Definition: Card.cs:514
bool IsGameStarted
Definition: Core.cs:84
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
static Zone _zone
Definition: EClass.cs:20
override bool UseAltTiles
override bool IsFridge
override bool CanBeOnlyBuiltInHome
override int DecaySpeedChild
override void SetName(ref string s)
override bool CanSearchContent
override bool IsSpecialContainer
override bool IsHomeItem
override bool CanOpenContainer
override int Electricity
Card owner
Definition: Trait.cs:26
bool IsPCFaction
Definition: Zone.cs:464