Elin Decompiled Documentation EA 23.303 Nightly
Loading...
Searching...
No Matches
ConHOT.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3public class ConHOT : Timebuff
4{
5 public override void Tick()
6 {
7 if (owner.hp < owner.MaxHP)
8 {
9 Dice dice = Dice.Create("SpHOT", base.power);
10 owner.HealHP(dice.Roll(), HealSource.HOT);
11 }
12 Mod(-1);
13 }
14
15 public override void OnWriteNote(List<string> list)
16 {
17 Dice dice = Dice.Create("SpHOT", base.power);
18 list.Add("hintHOT".lang(dice.ToString()));
19 }
20}
HealSource
Definition: HealSource.cs:2
void Mod(int a, bool force=false)
virtual void HealHP(int a, HealSource origin=HealSource.None)
Definition: Card.cs:4091
int hp
Definition: Card.cs:245
override int MaxHP
Definition: Chara.cs:722
Definition: ConHOT.cs:4
override void OnWriteNote(List< string > list)
Definition: ConHOT.cs:15
override void Tick()
Definition: ConHOT.cs:5
Definition: Dice.cs:5
static int Roll(int num, int sides, int bonus=0, Card card=null)
Definition: Dice.cs:48
override string ToString()
Definition: Dice.cs:115
static Dice Create(Element ele, Card c)
Definition: Dice.cs:120