Elin Modding Docs Doc
Loading...
Searching...
No Matches
ZoneEventPhone.cs
1
using
System;
2
using
Newtonsoft.Json;
3
4
// Token: 0x02000746 RID: 1862
5
public
class
ZoneEventPhone
:
ZoneEvent
6
{
7
// Token: 0x17001099 RID: 4249
8
// (get) Token: 0x06003601 RID: 13825 RVA: 0x001255F6 File Offset: 0x001237F6
9
public
override
int
hoursToKill
10
{
11
get
12
{
13
return
24;
14
}
15
}
16
17
// Token: 0x1700109A RID: 4250
18
// (get) Token: 0x06003602 RID: 13826 RVA: 0x001255FA File Offset: 0x001237FA
19
public
TraitPhone
Phone
20
{
21
get
22
{
23
Thing
thing =
EClass
._map.things.Find((
Thing
a) => a.uid ==
this
.uidPhone);
24
return
((thing !=
null
) ? thing.trait :
null
) as
TraitPhone
;
25
}
26
}
27
28
// Token: 0x06003603 RID: 13827 RVA: 0x00125628 File Offset: 0x00123828
29
public
override
void
OnInit()
30
{
31
this.ring =
EClass
.rnd(4) + 3;
32
}
33
34
// Token: 0x06003604 RID: 13828 RVA: 0x00125638 File Offset: 0x00123838
35
public
override
void
OnTickRound()
36
{
37
TraitPhone
phone = this.Phone;
38
if
(phone ==
null
)
39
{
40
base.Kill();
41
return
;
42
}
43
this.ring--;
44
phone.owner.TalkRaw(Lang.Game.Get(
"phone_boss"
),
null
,
null
,
false
);
45
phone.owner.PlayAnime(AnimeID.Shiver,
false
);
46
phone.ev =
this
;
47
if
(this.ring < 0)
48
{
49
base.Kill();
50
}
51
}
52
53
// Token: 0x06003605 RID: 13829 RVA: 0x001256A4 File Offset: 0x001238A4
54
public
override
void
OnKill()
55
{
56
if
(this.Phone !=
null
)
57
{
58
this.Phone.ev =
null
;
59
}
60
}
61
62
// Token: 0x04001C96 RID: 7318
63
[JsonProperty]
64
public
int
uidPhone;
65
66
// Token: 0x04001C97 RID: 7319
67
[JsonProperty]
68
public
int
ring;
69
}
EClass
Definition
EClass.cs:7
Thing
Definition
Thing.cs:10
TraitPhone
Definition
TraitPhone.cs:5
ZoneEvent
Definition
ZoneEvent.cs:6
ZoneEventPhone
Definition
ZoneEventPhone.cs:6
Elin
ZoneEventPhone.cs
Generated by
1.12.0