Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitFortuneCookie.cs
1using System;
2
3// Token: 0x02000350 RID: 848
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}
Definition Chara.cs:12
Definition Msg.cs:7