Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConPoison.cs
Go to the documentation of this file.
1public class ConPoison : BadCondition
2{
3 public override Emo2 EmoIcon => Emo2.poison;
4
5 public override bool UseElements => true;
6
7 public override bool PreventRegen => true;
8
9 public override void OnChangePhase(int lastPhase, int newPhase)
10 {
11 switch (newPhase)
12 {
13 case 1:
14 elements.SetBase(70, -10);
15 break;
16 case 2:
17 elements.SetBase(70, -10);
18 break;
19 case 3:
20 elements.SetBase(70, -15);
21 break;
22 default:
23 elements.SetBase(70, -5);
24 break;
25 }
26 }
27
28 public override void Tick()
29 {
30 if (EClass.rnd(5) == 0)
31 {
32 owner.DamageHP(EClass.rnd(owner.END / 10 + 2) + 1, AttackSource.Condition);
33 }
34 Mod(-1);
35 }
36}
AttackSource
Definition: AttackSource.cs:2
Emo2
Definition: Emo2.cs:2
void Mod(int a, bool force=false)
ElementContainer elements
int END
Definition: Card.cs:2197
void DamageHP(int dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
Definition: Card.cs:3735
override bool PreventRegen
Definition: ConPoison.cs:7
override void OnChangePhase(int lastPhase, int newPhase)
Definition: ConPoison.cs:9
override Emo2 EmoIcon
Definition: ConPoison.cs:3
override bool UseElements
Definition: ConPoison.cs:5
override void Tick()
Definition: ConPoison.cs:28
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50
Element SetBase(string alias, int v, int potential=0)