Elin Decompiled Documentation EA 23.326 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
13 public override bool IsUnderwater => elements.Has(3606);
14
15 public override int DangerLv => 1;
16
18
19 public override void OnBeforeDeactivate()
20 {
21 int num = 0;
22 foreach (Thing thing in EClass._map.things)
23 {
24 num += thing.ChildrenAndSelfWeight;
25 if (num >= 10000000 || num < 0)
26 {
27 num = 10000000;
28 break;
29 }
30 }
31 SetInt(1, num);
32 }
33}
int ChildrenAndSelfWeight
Definition: Card.cs:2093
Definition: EClass.cs:6
static Map _map
Definition: EClass.cs:19
bool Has(int ele)
List< Thing > things
Definition: Map.cs:49
void SetInt(int id, int value=0)
Definition: Spatial.cs:580
Definition: Thing.cs:8
override int DangerLv
Definition: Zone_Tent.cs:15
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:19
override ZoneTransition.EnterState RegionEnterState
Definition: Zone_Tent.cs:17
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:572