Elin Decompiled Documentation EA 23.130 Nightly
Loading...
Searching...
No Matches
AI_PracticeDummy.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4{
5 public Card target;
6
8
9 public bool range;
10
11 public override IEnumerable<Status> Run()
12 {
14 yield return DoProgress();
15 }
16
17 public override AIProgress CreateProgress()
18 {
19 return new Progress_Custom
20 {
21 canProgress = () => !isFail(),
22 onProgressBegin = delegate
23 {
24 },
25 onProgress = delegate(Progress_Custom p)
26 {
27 if (p.progress % 10 == 0)
28 {
29 target.animeCounter = 0.01f;
30 }
31 if (throwItem != null)
32 {
34 {
35 p.Cancel();
36 return;
37 }
39 }
40 else if (range && owner.GetCondition<ConReload>() == null)
41 {
43 {
44 p.Cancel();
45 return;
46 }
48 {
49 p.Cancel();
50 }
51 }
52 else
53 {
55 }
56 turn++;
57 if (owner != null && EClass.rnd(5) < 2)
58 {
59 owner.stamina.Mod(-1);
60 }
61 if (owner != null && owner.stamina.value < 0)
62 {
63 p.Cancel();
64 }
65 },
66 onProgressComplete = delegate
67 {
68 }
69 }.SetDuration(10000);
70 }
71}
Definition: ACT.cs:6
static ActRanged Ranged
Definition: ACT.cs:17
static ActMelee Melee
Definition: ACT.cs:15
virtual Status Cancel()
Definition: AIAct.cs:291
new Chara owner
Definition: AIAct.cs:14
Func< bool > isFail
Definition: AIAct.cs:28
Status DoProgress()
Definition: AIAct.cs:517
int progress
Definition: AIProgress.cs:5
override IEnumerable< Status > Run()
override AIProgress CreateProgress()
override bool Perform()
Definition: ActMelee.cs:91
override bool Perform()
Definition: ActRanged.cs:65
override bool CanPerform()
Definition: ActRanged.cs:44
static EffectIRenderer Throw(Card c, Point p, Thing t, ThrowMethod method=ThrowMethod.Default, float failChance=0f)
Definition: ActThrow.cs:93
static bool CanThrow(Chara c, Thing t, Card target, Point p=null)
Definition: ActThrow.cs:60
Definition: Card.cs:11
Point pos
Definition: Card.cs:55
virtual bool IsAliveInCurrentZone
Definition: Card.cs:2027
Stats stamina
Definition: Chara.cs:960
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:58
static Chara pc
Definition: EClass.cs:14
virtual void Mod(int a)
Definition: Stats.cs:135
virtual int value
Definition: Stats.cs:56
Definition: Thing.cs:8