Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConFaint.cs
Go to the documentation of this file.
1public class ConFaint : BadCondition
2{
3 public override Emo2 EmoIcon => Emo2.paralyzed;
4
5 public override bool ConsumeTurn => true;
6
7 public override int GetPhase()
8 {
9 return 0;
10 }
11
12 public override void SetOwner(Chara _owner, bool onDeserialize = false)
13 {
14 base.SetOwner(_owner);
15 owner.isFainted = true;
16 if (owner.renderer != null)
17 {
19 }
20 }
21
22 public override void OnRemoved()
23 {
24 owner.isFainted = false;
26 if (owner.IsPC)
27 {
28 Tutorial.Play("first");
29 }
30 }
31}
Emo2
Definition: Emo2.cs:2
void RefreshSprite()
CardRenderer renderer
Definition: Card.cs:57
Definition: Chara.cs:10
override bool IsPC
Definition: Chara.cs:597
override void SetOwner(Chara _owner, bool onDeserialize=false)
Definition: ConFaint.cs:12
override bool ConsumeTurn
Definition: ConFaint.cs:5
override void OnRemoved()
Definition: ConFaint.cs:22
override int GetPhase()
Definition: ConFaint.cs:7
override Emo2 EmoIcon
Definition: ConFaint.cs:3
static void Play(string idStep)
Definition: Tutorial.cs:7