Elin Decompiled Documentation EA 23.356.1 Nightly
Loading...
Searching...
No Matches
TraitWeightScale.cs
Go to the documentation of this file.
1public class TraitWeightScale : Trait
2{
3 public override void OnStepped(Chara c)
4 {
5 c.PlaySound("trap");
6 c.Say("trap", c, owner);
7 if (this is TraitHeightMeasure)
8 {
9 owner.TalkRaw("heightMeasure".langGame(c.Name, c.bio.height.ToFormat() ?? ""));
10 }
11 else
12 {
13 owner.TalkRaw("weightScale".langGame(c.Name, c.bio.weight.ToFormat() ?? ""));
14 }
15 }
16}
int height
Definition: Biography.cs:53
int weight
Definition: Biography.cs:41
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6645
Biography bio
Definition: Card.cs:45
string Name
Definition: Card.cs:2191
void TalkRaw(string text, string ref1=null, string ref2=null, bool forceSync=false)
Definition: Card.cs:7246
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:7324
Definition: Chara.cs:10
override void OnStepped(Chara c)
Definition: Trait.cs:7
Card owner
Definition: Trait.cs:28