-
Notifications
You must be signed in to change notification settings - Fork 0
/
TwitchChatEnemy.as
53 lines (44 loc) · 1.37 KB
/
TwitchChatEnemy.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
53
package classes {
import starling.events.Event;
import flash.utils.*;
public class TwitchChatEnemy extends Combatant {
public var idleMc:SuperMovieClip = new SuperMovieClip('twitchChatIdle', GV.COMBATANT_SPRITESHEET, 0, -10, false, 10);
public var projectileMc:SuperMovieClip = new SuperMovieClip('invisImg', GV.COMBATANT_SPRITESHEET, 0, 0, true);
public function TwitchChatEnemy(){
floats = true;
introMessage = introMessageRandomizer(new <String>["Fresh meat, boys!", "Kappa.", "ENTERTAIN ME."]);
}
public function uniqueAi():void{
if(GV.arena.summonIsDecoy){
if(slots[BLUE].startable) movementAI();
}else{
if(slots[BLUE].startable) evasionAI();
}
attackAI();
healAI();
}
public function uniqueNullItAll():void{
superNull(idleMc); idleMc = null;
superNull(projectileMc); projectileMc = null;
}
public function uniqueIdleAnimation():void{
changeAnimation(idleMc);
skewX = 0;
shadow.skewX = skewX;
}
public function hateAnimation():void{
projectileTrailPool = FX.hatePool;
spinAnimationInert();
}
public function supportAnimation():void{
projectileTrailPool = FX.lovePool;
spinAnimationInert();
}
public function summonExitAnimation():void{
showRandomMsg([
'LOL. GG. SALT. POGCHAMP. POGCHAMP. KAPPA. BIBLETHUMP.',
'KAPPA. POGCHAMP. KAPPA. KAPPA. BIBLETHUMP. LMAO.',
]);
}
}
}