Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitDeliveryChest.cs
Go to the documentation of this file.
1using System.Linq;
2
4{
5 public override int GuidePriotiy => 2;
6
7 public override bool IsSpecialContainer => true;
8
9 public override bool ShowOpenActAsCrime => false;
10
11 public override bool CanOpenContainer
12 {
13 get
14 {
16 {
18 {
19 return EClass._zone is Zone_Casino;
20 }
21 return true;
22 }
23 return false;
24 }
25 }
26
27 public override bool ShowChildrenNumber => false;
28
29 public override bool UseAltTiles => EClass.game.cards.container_deliver.things.Count > 0;
30
31 public override bool CanBeShipped => false;
32
33 public override void Prespawn(int lv)
34 {
35 }
36
37 public override void TrySetAct(ActPlan p)
38 {
39 base.TrySetAct(p);
40 if (owner.things.Count <= 0)
41 {
42 return;
43 }
44 p.TrySetAct("Eject", delegate
45 {
46 foreach (Thing item in owner.things.ToList())
47 {
48 EClass.pc.PickOrDrop(EClass.pc.pos, item);
49 }
50 return false;
51 });
52 }
53}
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:344
ThingContainer things
Definition: Card.cs:34
bool IsInstalled
Definition: Card.cs:2241
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
Definition: Thing.cs:8
override void TrySetAct(ActPlan p)
override bool UseAltTiles
override bool ShowOpenActAsCrime
override void Prespawn(int lv)
override int GuidePriotiy
override bool IsSpecialContainer
override bool CanBeShipped
override bool CanOpenContainer
override bool ShowChildrenNumber
Card owner
Definition: Trait.cs:26
virtual bool IsTown
Definition: Zone.cs:220
bool IsPCFaction
Definition: Zone.cs:464