Elin Modding Docs Doc
Loading...
Searching...
No Matches
ConBurning.cs
1using System;
2using UnityEngine;
3
4// Token: 0x020002BA RID: 698
5public class ConBurning : BadCondition
6{
7 // Token: 0x060016B4 RID: 5812 RVA: 0x00096F25 File Offset: 0x00095125
8 public override int GetPhase()
9 {
10 return 0;
11 }
12
13 // Token: 0x060016B5 RID: 5813 RVA: 0x00096F28 File Offset: 0x00095128
14 public override void Tick()
15 {
16 if (base.value > 10)
17 {
18 base.value = 10;
19 }
20 if (EClass.rnd(2) == 0)
21 {
22 this.owner.PlayEffect("fire_step", true, 0f, default(Vector3));
23 this.owner.PlaySound("fire_step", 1f, true);
24 this.owner.DamageHP(1 + EClass.rnd(this.owner.MaxHP / (this.owner.IsPowerful ? 200 : 20) + 3), AttackSource.Condition, null);
25 }
26 base.Mod(-1, false);
27 }
28}