Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConBurning.cs
Go to the documentation of this file.
1public class ConBurning : BadCondition
2{
3 public override int GetPhase()
4 {
5 return 0;
6 }
7
8 public override void Tick()
9 {
10 if (base.value > 10)
11 {
12 base.value = 10;
13 }
14 if (EClass.rnd(2) == 0)
15 {
16 owner.PlayEffect("fire_step");
17 owner.PlaySound("fire_step");
18 owner.DamageHP(1 + EClass.rnd(owner.MaxHP / (owner.IsPowerful ? 200 : 20) + 3), AttackSource.Condition);
19 }
20 Mod(-1);
21 }
22}
AttackSource
Definition: AttackSource.cs:2
void Mod(int a, bool force=false)
void DamageHP(int dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
Definition: Card.cs:3735
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5438
bool IsPowerful
Definition: Card.cs:1970
override int MaxHP
Definition: Chara.cs:693
override int GetPhase()
Definition: ConBurning.cs:3
override void Tick()
Definition: ConBurning.cs:8
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50