Elin Decompiled Documentation EA 23.222 Stable nyan
Loading...
Searching...
No Matches
ActMissileBarrage.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Linq;
3
5{
6 public override bool Perform()
7 {
8 List<Point> list = new List<Point>();
9 for (int i = 0; i < 10; i++)
10 {
12 if (p != null)
13 {
14 IEnumerable<Point> enumerable = list.Where((Point _p) => _p.Equals(p));
15 if (enumerable != null && enumerable.Count() == 0)
16 {
17 list.Add(p);
18 }
19 }
20 }
21 if (list.Count > 0)
22 {
23 Act.CC.Say("abMissileBarrage", Act.CC);
24 Act.CC.PlaySound("missile");
25 Chara cC = Act.CC;
26 foreach (Point item in list)
27 {
28 Act.CC = cC;
29 Act.TP.Set(item);
30 ActEffect.ProcAt(EffectId.Rocket, GetPower(Act.CC), BlessedState.Normal, Act.CC, null, Act.TP, isNeg: true, new ActRef
31 {
32 origin = Act.CC.Chara,
33 aliasEle = "eleImpact"
34 });
35 ActEffect.RapidDelay = 0.075f;
37 }
38 }
39 return true;
40 }
41}
BlessedState
Definition: BlessedState.cs:2
EffectId
Definition: EffectId.cs:2
override int GetPower(Card c)
Definition: ABILITY.cs:309
static int RapidCount
Definition: ActEffect.cs:17
static void ProcAt(EffectId id, int power, BlessedState state, Card cc, Card tc, Point tp, bool isNeg, ActRef actRef=default(ActRef))
Definition: ActEffect.cs:440
override bool Perform()
Definition: ACT.cs:62
static Point TP
Definition: ACT.cs:81
static Chara CC
Definition: ACT.cs:77
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6009
Point pos
Definition: Card.cs:59
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6661
Definition: Chara.cs:10
Definition: Point.cs:9
Point Set(int _x, int _z)
Definition: Point.cs:491
bool Equals(int _x, int _z)
Definition: Point.cs:948
Point GetRandomPointInRadius(int minRadius, int maxRadius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=2000)
Definition: Point.cs:771
Definition: ActRef.cs:2