|
1
|
var _flash = 0;
|
|
2
|
with (obj_berdlyplug_enemy)
|
|
3
|
flash = 0;
|
|
4
|
with (obj_herokris)
|
|
5
|
flash = 0;
|
|
6
|
with (obj_herosusie)
|
|
7
|
flash = 0;
|
|
8
|
with (obj_heroralsei)
|
|
9
|
flash = 0;
|
|
10
|
if (global.bmenuno == 9 || global.bmenuno == 9)
|
|
11
|
{
|
|
12
|
if (global.bmenucoord[9][global.charturn] != 4 && global.bmenucoord[9][global.charturn] != 5 && shieldacthp <= 0)
|
|
13
|
_flash = 1;
|
|
14
|
if (global.bmenucoord[9][global.charturn] != 4 && global.bmenucoord[9][global.charturn] != 5 && shieldhp <= 0)
|
|
15
|
_flash = 1;
|
|
16
|
if (!instance_exists(obj_queenshield_enemy) && global.bmenucoord[9][global.charturn] == 3)
|
|
17
|
_flash = 0;
|
|
18
|
if ((global.bmenucoord[9][global.charturn] == 4 && !instance_exists(obj_queenshield_enemy)) || (global.bmenucoord[9][global.charturn] == 3 && instance_exists(obj_queenshield_enemy)))
|
|
19
|
{
|
|
20
|
with (obj_herokris)
|
|
21
|
flash = 1;
|
|
22
|
with (obj_herosusie)
|
|
23
|
flash = 1;
|
|
24
|
with (obj_heroralsei)
|
|
25
|
flash = 1;
|
|
26
|
flash = 0;
|
|
27
|
}
|
|
28
|
}
|
|
29
|
if (global.bmenuno == 13 && global.bmenucoord[2][global.charturn] == 0 && shieldacthp <= 0)
|
|
30
|
_flash = 1;
|
|
31
|
if (global.bmenuno == 13 && global.bmenucoord[2][global.charturn] == 0 && shieldhp <= 0)
|
|
32
|
_flash = 1;
|
|
33
|
if (global.charturn == 2 && global.bmenuno == 13 && global.bmenucoord[2][global.charturn] == 1 && shieldacthp <= 0)
|
|
34
|
_flash = 1;
|
|
35
|
if (global.charturn == 2 && global.bmenuno == 13 && global.bmenucoord[2][global.charturn] == 1 && shieldhp <= 0)
|
|
36
|
_flash = 1;
|
|
37
|
if (_flash == 1)
|
|
38
|
{
|
|
39
|
if (instance_exists(obj_berdlyplug_enemy))
|
|
40
|
obj_berdlyplug_enemy.flash = 1;
|
|
41
|
flash = 0;
|
|
42
|
}
|
|
43
|
if (state == 3)
|
|
44
|
{
|
|
45
|
}
|
|
46
|
if (sprite_index == spr_queen_drunk || sprite_index == spr_queen_throw_wineglass || sprite_index == spr_queen_hurt || (sprite_index == idlesprite && state == 3))
|
|
47
|
{
|
|
48
|
image_index += 0.16666666666666666;
|
|
49
|
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
50
|
fsiner++;
|
|
51
|
if (flash == 1)
|
|
52
|
draw_sprite_ext_flash(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, (-cos(fsiner / 5) * 0.4) + 0.6);
|
|
53
|
if (endcon > 0 && sprite_index == spr_queen_throw_wineglass)
|
|
54
|
draw_sprite_ext(spr_queen_wine_box1, 0, x + 29, y + 10, 0.4, 0.6, 0, c_white, 1);
|
|
55
|
}
|
|
56
|
else if (scr_queen_buffercheckscr_queen_buffercheck
function scr_queen_buffercheck()
{
return instance_exists(obj_queen_buffercontroller) && obj_queen_buffercontroller.buffering == 1;
} ())
|
|
57
|
{
|
|
58
|
draw_sprite_ext(thissprite, siner, x, y, image_xscale, image_yscale, image_angle, c_gray, image_alpha);
|
|
59
|
draw_sprite(spr_queen_buffering, obj_queen_buffercontroller.bufferbar % 8, x + 66, y + 76);
|
|
60
|
}
|
|
61
|
else
|
|
62
|
{
|
|
63
|
scr_enemy_drawidle_genericscr_enemy_drawidle_generic
function scr_enemy_drawidle_generic(arg0)
{
if (state == 0)
{
fsiner += 1;
siner += arg0;
thissprite = idlesprite;
if (global.mercymod[myself] >= global.mercymax[myself])
thissprite = sparedsprite;
draw_monster_body_part(thissprite, siner, x, y);
}
} (0.16666666666666666);
|
|
64
|
}
|
|
65
|
if (becomeflash == 0)
|
|
66
|
flash = 0;
|
|
67
|
becomeflash = 0;
|