Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitPlamoBox.cs
1
using
System;
2
3
// Token: 0x0200042B RID: 1067
4
public
class
TraitPlamoBox
:
TraitItem
5
{
6
// Token: 0x17000967 RID: 2407
7
// (get) Token: 0x06001E36 RID: 7734 RVA: 0x000AE430 File Offset: 0x000AC630
8
public
override
string
LangUse
9
{
10
get
11
{
12
return
"actOpen"
;
13
}
14
}
15
16
// Token: 0x06001E37 RID: 7735 RVA: 0x000AE438 File Offset: 0x000AC638
17
public
override
bool
OnUse(
Chara
c)
18
{
19
if
(this.owner.isNPCProperty)
20
{
21
Msg
.Say(
"notGood"
);
22
return
false
;
23
}
24
EClass
.pc.Say(
"openDoor"
,
EClass
.pc,
this
.owner,
null
,
null
);
25
Thing
thing =
ThingGen
.Create(
"plamo"
, -1, -1);
26
thing.DyeRandom();
27
EClass
.pc.Pick(thing,
true
,
true
);
28
this.owner.ModNum(-1,
true
);
29
return
base.OnUse(c);
30
}
31
}
Chara
Definition
Chara.cs:12
EClass
Definition
EClass.cs:7
Msg
Definition
Msg.cs:7
ThingGen
Definition
ThingGen.cs:9
Thing
Definition
Thing.cs:10
TraitItem
Definition
TraitItem.cs:5
TraitPlamoBox
Definition
TraitPlamoBox.cs:5
Elin
TraitPlamoBox.cs
Generated by
1.12.0