Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneEventBeggerChest.cs
Go to the documentation of this file.
1
using
Newtonsoft.Json;
2
3
public
class
ZoneEventBeggerChest
:
ZoneEvent
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
AnimeID
Definition:
AnimeID.cs:2
Card.c_lockLv
int c_lockLv
Definition:
Card.cs:924
Card.uid
int uid
Definition:
Card.cs:118
Card.PlayAnime
void PlayAnime(AnimeID id, bool force=false)
Definition:
Card.cs:5423
EClass
Definition:
EClass.cs:5
EClass.rnd
static int rnd(int a)
Definition:
EClass.cs:50
EClass._map
static Map _map
Definition:
EClass.cs:18
Map.things
List< Thing > things
Definition:
Map.cs:49
Thing
Definition:
Thing.cs:8
ZoneEventBeggerChest
Definition:
ZoneEventBeggerChest.cs:4
ZoneEventBeggerChest.uidChest
int uidChest
Definition:
ZoneEventBeggerChest.cs:6
ZoneEventBeggerChest.chest
Thing chest
Definition:
ZoneEventBeggerChest.cs:11
ZoneEventBeggerChest.hoursToKill
override int hoursToKill
Definition:
ZoneEventBeggerChest.cs:13
ZoneEventBeggerChest.OnTickRound
override void OnTickRound()
Definition:
ZoneEventBeggerChest.cs:15
ZoneEventBeggerChest.shiver
int shiver
Definition:
ZoneEventBeggerChest.cs:9
ZoneEvent
Definition:
ZoneEvent.cs:4
ZoneEvent.Kill
void Kill()
Definition:
ZoneEvent.cs:115
Elin
ZoneEventBeggerChest.cs
Generated by
1.9.6