Elin Modding Docs Doc
Loading...
Searching...
No Matches
ConFear.cs
1using System;
2
3// Token: 0x020002BB RID: 699
4public class ConFear : BadCondition
5{
6 // Token: 0x17000657 RID: 1623
7 // (get) Token: 0x060016B7 RID: 5815 RVA: 0x00096FCE File Offset: 0x000951CE
8 public override Emo2 EmoIcon
9 {
10 get
11 {
12 return Emo2.fear;
13 }
14 }
15
16 // Token: 0x17000658 RID: 1624
17 // (get) Token: 0x060016B8 RID: 5816 RVA: 0x00096FD1 File Offset: 0x000951D1
18 public override bool ConsumeTurn
19 {
20 get
21 {
22 return !this.owner.IsPC;
23 }
24 }
25
26 // Token: 0x060016B9 RID: 5817 RVA: 0x00096FE1 File Offset: 0x000951E1
27 public override int GetPhase()
28 {
29 return 0;
30 }
31
32 // Token: 0x060016BA RID: 5818 RVA: 0x00096FE4 File Offset: 0x000951E4
33 public override void Tick()
34 {
35 base.Mod(-1, false);
36 foreach (Condition condition in this.owner.conditions)
37 {
38 if (condition.ConsumeTurn && condition != this)
39 {
40 return;
41 }
42 }
43 if (!this.owner.IsPC && !EClass._zone.IsRegion)
44 {
45 this.owner.TryMoveFrom((this.owner.enemy != null) ? this.owner.enemy.pos : EClass.pc.pos);
46 }
47 }
48}