Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitMiniPool.cs
1using System;
2
3// Token: 0x02000317 RID: 791
4public class TraitMiniPool : Trait
5{
6 // Token: 0x06001982 RID: 6530 RVA: 0x000A2B3C File Offset: 0x000A0D3C
7 public override void OnStepped(Chara c)
8 {
9 if (!c.IsPC)
10 {
11 return;
12 }
13 if (c.pccData.state == PCCState.Undie)
14 {
15 return;
16 }
17 c.PlaySound("Material/leather_drop", 1f, true);
18 c.SetPCCState(PCCState.Undie);
19 c.Say("cloth_remove", c, null, null);
20 }
21
22 // Token: 0x06001983 RID: 6531 RVA: 0x000A2B88 File Offset: 0x000A0D88
23 public override void OnSteppedOut(Chara c)
24 {
25 if (!c.IsPC)
26 {
27 return;
28 }
29 if (c.pccData.state == PCCState.Normal)
30 {
31 return;
32 }
33 c.PlaySound("Material/leather_drop", 1f, true);
34 c.SetPCCState(PCCState.Normal);
35 c.Say("cloth_wear", c, null, null);
36 }
37}
Definition Chara.cs:12
Definition Trait.cs:9