8 public virtual string idMsg
18 public virtual string idSound
28 public virtual string idTalk
37 public override bool IdleUse(
Chara c,
int dist)
47 if (!this.idSound.IsEmpty())
49 c.PlaySound(this.idSound, 1f,
true);
51 if (!this.idTalk.IsEmpty())
53 EClass.player.forceTalk =
true;
54 c.Talk(this.idTalk,
null,
null,
false);
56 if (!this.idMsg.IsEmpty())
58 c.Say(this.idMsg, c, this.owner,
null,
null);
60 bool flag =
EClass.rnd(2) == 0;
63 int a = (1 +
EClass.rnd(10)) * (flag ? 1 : -1);
64 this.owner.ModCurrency(a,
"money");
65 if (flag &&
EClass.rnd(20) == 0)
67 this.owner.ModCurrency(1,
"casino_coin");
72 this.owner.ShowEmo(Emo.happy, 0f,
true);
78 public override bool CanUse(
Chara c)
80 return this.owner.IsInstalled && (this.Electricity <= 0 || this.owner.isOn);
84 public override bool OnUse(
Chara c)
86 return this.IdleUse(c, 0);