Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitWhistlePeace.cs
Go to the documentation of this file.
2{
3 public override bool IsTool => true;
4
5 public override bool ShowAsTool => true;
6
7 public override bool OnUse(Chara c)
8 {
9 EClass._zone.isPeace = !EClass._zone.isPeace;
10 EClass.pc.Say("whistle", EClass.pc, owner);
11 EClass.pc.Say("whistle_" + (EClass._zone.isPeace ? "peace" : "peace_end"));
12 EClass.pc.PlaySound("whistle" + (EClass._zone.isPeace ? "" : "_end"));
13 return false;
14 }
15}
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6046
Definition: Chara.cs:10
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static Chara pc
Definition: EClass.cs:14
bool isPeace
Definition: Spatial.cs:406
override bool OnUse(Chara c)
override bool IsTool
override bool ShowAsTool
Card owner
Definition: Trait.cs:26