Elin Modding Docs Doc
Loading...
Searching...
No Matches
Zone_WindRest.cs
1using System;
2using System.Collections.Generic;
3using System.Runtime.CompilerServices;
4using UnityEngine;
5
6// Token: 0x020006FD RID: 1789
7public class Zone_WindRest : Zone
8{
9 // Token: 0x17000F9B RID: 3995
10 // (get) Token: 0x060033FF RID: 13311 RVA: 0x0011BBF3 File Offset: 0x00119DF3
11 public override bool IsSnowCovered
12 {
13 get
14 {
15 return false;
16 }
17 }
18
19 // Token: 0x06003400 RID: 13312 RVA: 0x0011BBF8 File Offset: 0x00119DF8
20 public override void OnGenerateMap()
21 {
22 base.OnGenerateMap();
23 List<Dictionary<string, string>> list = new ExcelData("Data/Raw/dagger_graves", 1).BuildList("_default");
24 list.RemoveAt(0);
25 int num = 0;
26 foreach (Thing thing in EClass._map.things)
27 {
28 if (!(thing.id != "grave_dagger1") || !(thing.id != "grave_dagger2"))
29 {
30 thing.isOn = false;
31 if (num < list.Count)
32 {
33 Dictionary<string, string> dictionary = list[num];
34 int num2 = dictionary["id"].ToInt();
35 num++;
36 if (num2 != 0)
37 {
38 thing.c_note = dictionary["First_" + (Lang.isJP ? "JP" : "EN")];
39 thing.c_context = dictionary["Full"];
40 thing.c_idBacker = num2;
41 thing.isModified = true;
42 }
43 }
44 }
45 }
46 Debug.Log(num.ToString() + "/" + list.Count.ToString());
47 }
48
49 // Token: 0x06003401 RID: 13313 RVA: 0x0011BD3C File Offset: 0x00119F3C
50 public override void OnAfterSimulate()
51 {
52 base.OnAfterSimulate();
53 if (base.HourSinceLastActive >= 168)
54 {
55 Zone_WindRest.<OnAfterSimulate>g__TryRevive|3_0("eureka", 60, 61);
56 Zone_WindRest.<OnAfterSimulate>g__TryRevive|3_0("billy", 35, 64);
57 }
58 }
59
60 // Token: 0x06003403 RID: 13315 RVA: 0x0011BD78 File Offset: 0x00119F78
61 [CompilerGenerated]
62 internal static void <OnAfterSimulate>g__TryRevive|3_0(string id, int x, int y)
63 {
64 if (EClass.game.cards.globalCharas.Find(id) == null)
65 {
66 bool flag = false;
67 using (List<Chara>.Enumerator enumerator = EClass._map.charas.GetEnumerator())
68 {
69 while (enumerator.MoveNext())
70 {
71 if (enumerator.Current.id == id)
72 {
73 flag = true;
74 }
75 }
76 }
77 if (!flag)
78 {
79 EClass._zone.AddCard(CharaGen.Create(id, -1), x, y);
80 }
81 }
82 }
83}
Definition Thing.cs:10
Definition Zone.cs:14