Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
Zone_Field.cs
Go to the documentation of this file.
1public class Zone_Field : Zone
2{
3 public override bool WillAutoSave => false;
4
5 public bool IsBridge
6 {
7 get
8 {
9 if (base.lv == 0)
10 {
11 return base.Tile.IsBridge;
12 }
13 return false;
14 }
15 }
16
17 public override bool HasLaw => IsBridge;
18
19 public override float ChanceSpawnNeutral
20 {
21 get
22 {
23 if (!IsBridge)
24 {
25 return base.ChanceSpawnNeutral;
26 }
27 return 0.5f;
28 }
29 }
30
31 public override bool UseFog
32 {
33 get
34 {
35 if (!base.IsPCFaction || base.lv != 0)
36 {
37 return base.lv <= 0;
38 }
39 return false;
40 }
41 }
42
43 public override ZoneFeatureType FeatureType => ZoneFeatureType.RandomField;
44
45 public override int DangerLvFix => base.Tile.source.dangerLv;
46
47 public override string IdBiome
48 {
49 get
50 {
51 if (map != null)
52 {
53 return map.config.idBiome.IsEmpty(base.Tile.source.idBiome.IsEmpty("Plain"));
54 }
55 return "Plain";
56 }
57 }
58
59 public override float PrespawnRate => 1.2f;
60
61 public override bool isClaimable => EClass.pc.homeBranch != null;
62
63 public override bool CanFastTravel => base.IsPCFaction;
64
65 public override string idExport
66 {
67 get
68 {
69 if (!IsBridge)
70 {
71 return base.idExport;
72 }
73 return "bridge";
74 }
75 }
76
77 public override float BigDaddyChance => 0.02f;
78
79 public override float EvolvedChance => 0.05f;
80
81 public override float OreChance => 5f;
82
83 public override float ShrineChance
84 {
85 get
86 {
87 if (!EClass.debug.test)
88 {
89 return 0.04f;
90 }
91 return 1f;
92 }
93 }
94
95 public override string IDBaseLandFeat
96 {
97 get
98 {
99 if (!base.isBeach)
100 {
101 return base.IDBaseLandFeat;
102 }
103 return "bfBeach";
104 }
105 }
106
107 public override bool IsUnderwater => IdBiome == "Undersea";
108
109 public override void OnGenerateMap()
110 {
111 base.OnGenerateMap();
112 if (base.lv == 0)
113 {
114 base.idPrefix = EClass.sources.zoneAffixes.rows.RandomItem().id;
115 base.dateExpire = EClass.world.date.GetRaw() + 10080;
116 }
117 bool draw = EClass.pc.HasCondition<ConDrawBacker>();
118 ApplyBackerPet(draw);
119 map.AddBackerTree(draw);
120 if (IsBridge)
121 {
122 EClass._map.ForeachCell(delegate(Cell c)
123 {
124 c.isSeen = true;
125 });
126 }
127 }
128}
ZoneFeatureType
Definition: Cell.cs:7
bool HasCondition(string alias)
Definition: Chara.cs:8716
bool test
Definition: CoreDebug.cs:169
int GetRaw(int offsetHours=0)
Definition: Date.cs:322
Definition: EClass.cs:5
static World world
Definition: EClass.cs:40
static Map _map
Definition: EClass.cs:18
static SourceManager sources
Definition: EClass.cs:42
static Chara pc
Definition: EClass.cs:14
static CoreDebug debug
Definition: EClass.cs:48
string idBiome
Definition: MapConfig.cs:26
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2324
void AddBackerTree(bool draw)
Definition: Map.cs:1563
MapConfig config
Definition: Map.cs:37
SourceZoneAffix zoneAffixes
GameDate date
Definition: World.cs:6
override ZoneFeatureType FeatureType
Definition: Zone_Field.cs:43
bool IsBridge
Definition: Zone_Field.cs:6
override int DangerLvFix
Definition: Zone_Field.cs:45
override float EvolvedChance
Definition: Zone_Field.cs:79
override float OreChance
Definition: Zone_Field.cs:81
override bool isClaimable
Definition: Zone_Field.cs:61
override bool CanFastTravel
Definition: Zone_Field.cs:63
override float PrespawnRate
Definition: Zone_Field.cs:59
override bool UseFog
Definition: Zone_Field.cs:32
override void OnGenerateMap()
Definition: Zone_Field.cs:109
override string IDBaseLandFeat
Definition: Zone_Field.cs:96
override bool WillAutoSave
Definition: Zone_Field.cs:3
override string idExport
Definition: Zone_Field.cs:66
override float ShrineChance
Definition: Zone_Field.cs:84
override float ChanceSpawnNeutral
Definition: Zone_Field.cs:20
override bool IsUnderwater
Definition: Zone_Field.cs:107
override bool HasLaw
Definition: Zone_Field.cs:17
override string IdBiome
Definition: Zone_Field.cs:48
override float BigDaddyChance
Definition: Zone_Field.cs:77
Definition: Zone.cs:12
void ApplyBackerPet(bool draw)
Definition: Zone.cs:3592
Map map
Definition: Zone.cs:60