Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneEventBeggerChest.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2
4{
5 [JsonProperty]
6 public int uidChest;
7
8 [JsonProperty]
9 public int shiver;
10
11 public Thing chest => EClass._map.things.Find((Thing a) => a.uid == uidChest);
12
13 public override int hoursToKill => 96;
14
15 public override void OnTickRound()
16 {
17 if (EClass.rnd(10) == 0 && chest != null)
18 {
19 if (chest.c_lockLv == 0)
20 {
21 Kill();
22 }
23 else
24 {
25 chest.PlayAnime(AnimeID.Shiver);
26 }
27 }
28 }
29}
AnimeID
Definition: AnimeID.cs:2
int c_lockLv
Definition: Card.cs:924
int uid
Definition: Card.cs:118
void PlayAnime(AnimeID id, bool force=false)
Definition: Card.cs:5423
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50
static Map _map
Definition: EClass.cs:18
List< Thing > things
Definition: Map.cs:49
Definition: Thing.cs:8
override void OnTickRound()
void Kill()
Definition: ZoneEvent.cs:115