-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPRISM.as
52 lines (42 loc) · 1.41 KB
/
PRISM.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package classes {
import starling.events.Event;
import classes.FFParticleSystem.FFParticleSystem;
public class PRISM extends Combatant{
public var idleMc:SuperMovieClip = new SuperMovieClip('oracleLight', GV.COMBATANT_SPRITESHEET);
public var projectileMc:SuperMovieClip = new SuperMovieClip('invisImg', GV.COMBATANT_SPRITESHEET, 0, 0, true);
public function PRISM(){
introMessage = introMessageRandomizer(new <String>["It all must end."]);
floats = true;
particleEffect = FX.showParticleEffect(FX.oraclePool, x + 3, y + 45, 0);
}
public function uniqueAi():void{
startAbility(slots[BLUE]);
attackAI();
if(GV.arena.currEnemyNum < GV.MAX_ENEMY_NUM){
startAbility(slots[GREEN], GV.arena.getRandomFreePos());
}
}
public function uniqueNullItAll():void{
superNull(idleMc); idleMc = null;
superNull(projectileMc); projectileMc = null;
}
public function attackAnimation():void{
projectileTrailPool = FX.prismTrailPool;
}
public function uniqueIdleAnimation():void{
changeAnimation(idleMc);
}
public function uniqueRunAfterInit():void{
particleEffect.emitterX = x + 3;
particleEffect.emitterY = y + 45;
}
public function summonAnimation():void{
projectileTrailPool = FX.redMisslePool;
}
public function uniqueTeleportAbility():void{
randomTeleportAbility();
particleEffect.emitterX = x + 3;
particleEffect.emitterY = y + 45;
}
}
}