Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitMiniPool.cs
Go to the documentation of this file.
1public class TraitMiniPool : Trait
2{
3 public override void OnStepped(Chara c)
4 {
5 if (c.IsPC)
6 {
7 if (c.pccData.state == PCCState.Undie)
8 {
9 c.SetPCCState(PCCState.Normal);
10 c.Say("cloth_wear", c);
11 }
12 else
13 {
14 c.SetPCCState(PCCState.Undie);
15 c.Say("cloth_remove", c);
16 }
17 c.PlaySound("Material/leather_drop");
18 }
19 }
20}
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
override bool IsPC
Definition: Chara.cs:597
PCCData pccData
Definition: Chara.cs:64
void SetPCCState(PCCState state)
Definition: Chara.cs:6038
override void OnStepped(Chara c)
Definition: TraitMiniPool.cs:3
Definition: Trait.cs:7