Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitPillowStrange.cs
Go to the documentation of this file.
2{
3 public override bool IsOn
4 {
5 get
6 {
7 if (owner.dir != 0)
8 {
9 return owner.dir == 2;
10 }
11 return true;
12 }
13 }
14
15 public override int radius
16 {
17 get
18 {
19 if (!IsOn)
20 {
21 return 5;
22 }
23 return 0;
24 }
25 }
26
27 public override void TrySetAct(ActPlan p)
28 {
30 {
31 p.TrySetAct("actUse", delegate
32 {
33 owner.SetDir((owner.dir == 0) ? 1 : ((owner.dir != 1) ? ((owner.dir == 2) ? 3 : 2) : 0));
34 SE.Rotate();
35 return false;
36 }, owner);
37 }
38 }
39}
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
virtual void SetDir(int d)
Definition: Card.cs:5460
bool IsInstalled
Definition: Card.cs:2241
int dir
Definition: Card.cs:142
override void TrySetAct(ActPlan p)
Card owner
Definition: Trait.cs:26