Elin Decompiled Documentation EA 23.102 Nightly
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
14
15 public override void OnBeforeDeactivate()
16 {
17 int num = 0;
18 foreach (Thing thing in EClass._map.things)
19 {
20 num += thing.ChildrenAndSelfWeight;
21 if (num >= 10000000 || num < 0)
22 {
23 num = 10000000;
24 break;
25 }
26 }
27 SetInt(1, num);
28 }
29}
int ChildrenAndSelfWeight
Definition: Card.cs:1917
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
List< Thing > things
Definition: Map.cs:49
void SetInt(int id, int value=0)
Definition: Spatial.cs:566
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 void OnBeforeDeactivate()
Definition: Zone_Tent.cs:15
override ZoneTransition.EnterState RegionEnterState
Definition: Zone_Tent.cs:13
override bool PetFollow
Definition: Zone_Tent.cs:3
Definition: Zone.cs:12
int Evalue(int ele)
Definition: Zone.cs:518