Elin Decompiled Documentation
EA 23.356.1 Nightly
Loading...
Searching...
No Matches
TraitWeightScale.cs
Go to the documentation of this file.
1
public
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
}
Biography.height
int height
Definition:
Biography.cs:53
Biography.weight
int weight
Definition:
Biography.cs:41
Card.PlaySound
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition:
Card.cs:6645
Card.bio
Biography bio
Definition:
Card.cs:45
Card.Name
string Name
Definition:
Card.cs:2191
Card.TalkRaw
void TalkRaw(string text, string ref1=null, string ref2=null, bool forceSync=false)
Definition:
Card.cs:7246
Card.Say
void Say(string lang, string ref1=null, string ref2=null)
Definition:
Card.cs:7324
Chara
Definition:
Chara.cs:10
TraitHeightMeasure
Definition:
TraitHeightMeasure.cs:2
TraitWeightScale
Definition:
TraitWeightScale.cs:2
TraitWeightScale.OnStepped
override void OnStepped(Chara c)
Definition:
TraitWeightScale.cs:3
Trait
Definition:
Trait.cs:7
Trait.owner
Card owner
Definition:
Trait.cs:28
Elin
TraitWeightScale.cs
Generated by
1.9.6