Elin Decompiled Documentation EA 23.130 Nightly
Loading...
Searching...
No Matches
AI_Practice.cs
Go to the documentation of this file.
1public class AI_Practice : AIAct
2{
3 public long totalDamage;
4
5 public long turn;
6
7 public long hit;
8
10
11 public override bool HasProgress => true;
12
13 public override bool CanManualCancel()
14 {
15 return true;
16 }
17
18 public override void OnCancelOrSuccess()
19 {
20 base.OnCancelOrSuccess();
21 if (owner == EClass.pc && turn > 0)
22 {
23 long a = totalDamage / turn;
24 Msg.Say("trainingDPS", turn.ToFormat(), a.ToFormat(), hit.ToFormat() ?? "", totalDamage.ToFormat() ?? "");
25 }
26 }
27}
Definition: AIAct.cs:6
new Chara owner
Definition: AIAct.cs:14
override CursorInfo CursorIcon
Definition: AI_Practice.cs:9
override void OnCancelOrSuccess()
Definition: AI_Practice.cs:18
override bool CanManualCancel()
Definition: AI_Practice.cs:13
override bool HasProgress
Definition: AI_Practice.cs:11
long totalDamage
Definition: AI_Practice.cs:3
static CursorInfo IconMelee
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58