Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitFoodPreparedPackage.cs
Go to the documentation of this file.
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 {
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;
29 return true;
30 }
31}
bool isNPCProperty
Definition: Card.cs:526
virtual Thing Thing
Definition: Card.cs:1934
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
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static void SetDirty(Thing t)
override bool OnUse(Chara c)
override bool CanUse(Chara c)
override bool CanEat(Chara c)
Card owner
Definition: Trait.cs:26
virtual bool IsUserZone
Definition: Zone.cs:264