Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitFoodPreparedPackage.cs
Go to the documentation of this file.
1
public
class
TraitFoodPreparedPackage
:
TraitFood
2
{
3
public
override
string
LangUse
=>
"actContainer"
;
4
5
public
override
bool
CanEat
(
Chara
c)
6
{
7
if
(c.
IsPC
)
8
{
9
return
owner.idSkin == 1;
10
}
11
return
true
;
12
}
13
14
public
override
bool
CanUse
(
Chara
c)
15
{
16
if
(
EClass
.
_zone
.
IsUserZone
&&
owner
.
isNPCProperty
)
17
{
18
return
false
;
19
}
20
return
owner.idSkin == 0;
21
}
22
23
public
override
bool
OnUse
(
Chara
c)
24
{
25
SE.Play(
"open"
);
26
c.
Say
(
"openDoor"
, c,
owner
);
27
owner.idSkin = 1;
28
LayerInventory
.
SetDirty
(
owner
.
Thing
);
29
return
true
;
30
}
31
}
Card.isNPCProperty
bool isNPCProperty
Definition:
Card.cs:526
Card.Thing
virtual Thing Thing
Definition:
Card.cs:1934
Card.Say
void Say(string lang, string ref1=null, string ref2=null)
Definition:
Card.cs:6046
Chara
Definition:
Chara.cs:10
Chara.IsPC
override bool IsPC
Definition:
Chara.cs:597
EClass
Definition:
EClass.cs:5
EClass._zone
static Zone _zone
Definition:
EClass.cs:20
LayerInventory
Definition:
LayerInventory.cs:6
LayerInventory.SetDirty
static void SetDirty(Thing t)
Definition:
LayerInventory.cs:87
TraitFoodPreparedPackage
Definition:
TraitFoodPreparedPackage.cs:2
TraitFoodPreparedPackage.OnUse
override bool OnUse(Chara c)
Definition:
TraitFoodPreparedPackage.cs:23
TraitFoodPreparedPackage.LangUse
override string LangUse
Definition:
TraitFoodPreparedPackage.cs:3
TraitFoodPreparedPackage.CanUse
override bool CanUse(Chara c)
Definition:
TraitFoodPreparedPackage.cs:14
TraitFoodPreparedPackage.CanEat
override bool CanEat(Chara c)
Definition:
TraitFoodPreparedPackage.cs:5
TraitFood
Definition:
TraitFood.cs:2
Trait.owner
Card owner
Definition:
Trait.cs:26
Zone.IsUserZone
virtual bool IsUserZone
Definition:
Zone.cs:264
Elin
TraitFoodPreparedPackage.cs
Generated by
1.9.6