Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitFortuneCookie.cs
1
using
System;
2
3
// Token: 0x02000350 RID: 848
4
public
class
TraitFortuneCookie
:
TraitFood
5
{
6
// Token: 0x06001A70 RID: 6768 RVA: 0x000A4E78 File Offset: 0x000A3078
7
public
override
void
OnEat(
Chara
c)
8
{
9
if
(!c.IsPC)
10
{
11
return
;
12
}
13
Msg
.Say(
"read_fortune"
, c,
null
,
null
,
null
);
14
bool
flag = this.owner.blessedState < BlessedState.Blessed && (this.owner.blessedState <= BlessedState.Cursed ||
EClass
.rnd(2) == 0);
15
string
text = Lang.GetDialog(
"rumor"
,
"fortune"
+ (flag ?
"_false"
:
""
)).RandomItem<
string
>();
16
Msg
.SetColor(
Msg
.colors.Talk);
17
Msg
.SayRaw(text);
18
}
19
}
Chara
Definition
Chara.cs:12
EClass
Definition
EClass.cs:7
Msg
Definition
Msg.cs:7
TraitFood
Definition
TraitFood.cs:5
TraitFortuneCookie
Definition
TraitFortuneCookie.cs:5
Elin
TraitFortuneCookie.cs
Generated by
1.12.0