Elin Decompiled Documentation EA 23.188 Stable Patch 2
Loading...
Searching...
No Matches
Zone_Tent.cs
Go to the documentation of this file.
1public class Zone_Tent : Zone
2{
3 public override bool PetFollow => false;
4
5 public override bool AllowNewZone => false;
6
7 public override bool UseFog => true;
8
9 public override bool GrowPlant => true;
10
11 public override int MaxSoil => 50 + Evalue(2200) * 5;
12
13 public override bool IsUnderwater => elements.Has(3606);
14
16
17 public override void OnBeforeDeactivate()
18 {
19 int num = 0;
20 foreach (Thing thing in EClass._map.things)
21 {
22 num += thing.ChildrenAndSelfWeight;
23 if (num >= 10000000 || num < 0)
24 {
25 num = 10000000;
26 break;
27 }
28 }
29 SetInt(1, num);
30 }
31}
int ChildrenAndSelfWeight
Definition: Card.cs:2003
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
bool Has(int ele)
List< Thing > things
Definition: Map.cs:49
void SetInt(int id, int value=0)
Definition: Spatial.cs:568
Definition: Thing.cs:8
override bool GrowPlant
Definition: Zone_Tent.cs:9
override bool UseFog
Definition: Zone_Tent.cs:7
override int MaxSoil
Definition: Zone_Tent.cs:11
override bool AllowNewZone
Definition: Zone_Tent.cs:5
override bool IsUnderwater
Definition: Zone_Tent.cs:13
override void OnBeforeDeactivate()
Definition: Zone_Tent.cs:17
override ZoneTransition.EnterState RegionEnterState
Definition: Zone_Tent.cs:15
override bool PetFollow
Definition: Zone_Tent.cs:3
Definition: Zone.cs:12
ElementContainerZone elements
Definition: Zone.cs:43
int Evalue(int ele)
Definition: Zone.cs:524