if (state == 9) exit; if (acting == 101) { d_rectangle_color(camerax() + 240, cameray() + 290, (camerax() + 210 + 210) - (acttimer * 0.9), cameray() + 300, 16776960, 16776960, 16776960, 16776960, 0); draw_sprite_ext(spr_poppup_hourglass, 0, camerax() + 240, cameray() + 295, 2, 2, 0, c_white, image_alpha); d3d_set_fog(true, c_white, 0, 0); if (button1_p() == 1) draw_sprite_ext(spr_poppup_hourglass, 0, camerax() + 240, cameray() + 295, 2, 2, 0, c_white, image_alpha); d3d_set_fog(false, c_white, 0, 0); } xoff = 0; animsiner += 1; if (blown == 1) image_xscale = 2; if (image_xscale < 2) xoff = (originalwidth - sprite_width) / 2; blowanimtimer--; if (blowanimtimer > 6) { if (onoff == 2) onoff = 0; if (onoff == 1.5) onoff = 2; if (onoff == 0.5) onoff = 1; if (onoff == 0) { ashake = -shakeamt; onoff = 0.5; } if (onoff == 1) { ashake = shakeamt; if (shakeamt > 0) shakeamt -= 1; onoff = 1.5; } if (blown) { if (pinneddown) { if (global.mercymod[myself] >= global.mercymax[myself]) { if (image_xscale > 1.5) draw_sprite_ext(spr_leafling_serious_spare, 0, (x + xoff + ashake) - 4, y + 0, image_xscale, image_yscale, 0, c_white, 1); else draw_sprite_ext(spr_leafling_serious_spare, 1, (x + xoff + ashake) - 4, y + 0, image_xscale + 0.5, image_yscale, 0, c_white, 1); } else if (image_xscale > 1.5) { draw_sprite_ext(spr_leafling_serious_idle, 0, (x + xoff + ashake) - 4, y + 0, image_xscale, image_yscale, 0, c_white, 1); } else { draw_sprite_ext(spr_leafling_serious_idle, 1, (x + xoff + ashake) - 4, y + 0, image_xscale + 0.5, image_yscale, 0, c_white, 1); } } else if (global.mercymod[myself] >= global.mercymax[myself]) { if (image_xscale > 1.5) draw_sprite_ext(spr_leafling_spare2, 0, x + xoff + ashake + 4, y - 0, image_xscale, image_yscale, 0, c_white, 1); else draw_sprite_ext(spr_leafling_spare2, 1, x + xoff + ashake + 4, y - 0, image_xscale + 0.5, image_yscale, 0, c_white, 1); } else if (image_xscale > 1.5) { draw_sprite_ext(spr_leafling_idle2, 0, x + xoff + ashake + 4, y - 0, image_xscale, image_yscale, 0, c_white, 1); } else { draw_sprite_ext(spr_leafling_idle2, 1, x + xoff + ashake + 4, y - 0, image_xscale + 0.5, image_yscale, 0, c_white, 1); } exit; } } if (state == 10) { if (global.mercymod[myself] >= global.mercymax[myself]) draw_sprite_ext(spr_leafling_idle_squish_spare, 0, x + 20, y + 66, 2, 1, 0, c_white, 1); else draw_sprite_ext(spr_leafling_idle_squish, 0, x + 20, y + 66, 2, 1, 0, c_white, 1); } else if (state == 11) { if (global.mercymod[myself] >= global.mercymax[myself]) draw_sprite_ext(spr_leafling_serious_squish_spare, 0, x + 20, y + 72, 2, 1, 0, c_white, 1); else draw_sprite_ext(spr_leafling_serious_squish, 0, x + 20, y + 72, 2, 1, 0, c_white, 1); } else if (state == 12) { shrinktimer++; if (global.mercymod[myself] >= global.mercymax[myself]) draw_sprite_ext(spr_leafling_serious_squish_spare, 0, x + 22, y + 62, 2, 1 + (shrinktimer / 5), 0, c_white, 1); else draw_sprite_ext(spr_leafling_serious_squish, 0, x + 22, y + 62, 2, 1 + (shrinktimer / 5), 0, c_white, 1); if (shrinktimer == 6) { state = 0; exit; } } scr_enemy_drawhurt_generic(); if (custom_draw_example == 0) { if (global.mercymod[myself] >= global.mercymax[myself] && pinneddown) scr_enemy_drawidle_generic(0.08333333333333333); else scr_enemy_drawidle_generic(0.16666666666666666); } else if (state == 0) { if (flash == 1) fsiner++; siner += 0.16666666666666666; if (global.mercymod[myself] >= global.mercymax[myself]) draw_monster_body_part(sparedsprite, siner, x, y); } if (becomeflash == 0) flash = 0; becomeflash = 0;