Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Zone_WindRest.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using UnityEngine;
3
4public class Zone_WindRest : Zone
5{
6 public override bool IsSnowCovered => false;
7
8 public override void OnGenerateMap()
9 {
10 base.OnGenerateMap();
11 List<Dictionary<string, string>> list = new ExcelData("Data/Raw/dagger_graves", 1).BuildList();
12 list.RemoveAt(0);
13 int num = 0;
14 foreach (Thing thing in EClass._map.things)
15 {
16 if (thing.id != "grave_dagger1" && thing.id != "grave_dagger2")
17 {
18 continue;
19 }
20 thing.isOn = false;
21 if (num < list.Count)
22 {
23 Dictionary<string, string> dictionary = list[num];
24 int num2 = dictionary["id"].ToInt();
25 num++;
26 if (num2 != 0)
27 {
28 thing.c_note = dictionary["First_" + (Lang.isJP ? "JP" : "EN")];
29 thing.c_context = dictionary["Full"];
30 thing.c_idBacker = num2;
31 thing.isModified = true;
32 }
33 }
34 }
35 Debug.Log(num + "/" + list.Count);
36 }
37
38 public override void OnAfterSimulate()
39 {
40 base.OnAfterSimulate();
41 if (base.HourSinceLastActive >= 168)
42 {
43 TryRevive("eureka", 60, 61);
44 TryRevive("billy", 35, 64);
45 }
46 static void TryRevive(string id, int x, int y)
47 {
48 if (EClass.game.cards.globalCharas.Find(id) == null)
49 {
50 bool flag = false;
51 foreach (Chara chara in EClass._map.charas)
52 {
53 if (chara.id == id)
54 {
55 flag = true;
56 }
57 }
58 if (!flag)
59 {
61 }
62 }
63 }
64 }
65}
Chara Find(string id)
Definition: CardManager.cs:20
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:31
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
List< Dictionary< string, string > > BuildList(string sheetName="_default")
Definition: ExcelData.cs:92
CardManager cards
Definition: Game.cs:155
List< Thing > things
Definition: Map.cs:49
List< Chara > charas
Definition: Map.cs:81
int y
Definition: Spatial.cs:106
int x
Definition: Spatial.cs:94
Definition: Thing.cs:8
override bool IsSnowCovered
Definition: Zone_WindRest.cs:6
override void OnGenerateMap()
Definition: Zone_WindRest.cs:8
override void OnAfterSimulate()
Definition: Zone.cs:12
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893