if (!regular_enemy) { plat_name = stringsetloc("Litebuster", "obj_plat_enm_aqua_miniboss_slash_Create_0_gml_4_0"); plat_desc = stringsetloc("This'll deal some damage.", "obj_plat_enm_aqua_miniboss_slash_Create_0_gml_5_0"); } event_inherited(); throwsign = 1; knives = 0; hp = 9; aim = 0; aim_error = 0; x_home = xstart; y_home = ystart; coindrops = 20; if (regular_enemy) { hp = 5; coindrops = 10; } attacking = false; lerpinst[0] = -4; nextlerp = 0; targetlerp = [[0, 0, 15], [0, 1, 15], [1, 0, 15], [1, 1, 15]]; con = 0; contimer = 0; if (x < (camerax() + (0.5 * camerawidth()))) { nextlerp = 2; xstart = x + 320; con = 1; } if (anchor_x != -1) { xstart = anchor_x; ystart = anchor_y; } remx = 0; remy = 0; attacktimer = -1; nextknife = 0; knifecount = 6; throwdir = 1; hit = 0; image_speed = 0.25; gtime = 10; windimmune = true; evadecon = 0; evadetimer = 0; evadedirection = 0; reteleport_timer = 50; petal_color = 16776960; get_hurt = function(arg0) { if (paused || custom_paused) exit; with (arg0) { if (!hit_check(other.id)) exit; } hp--; hit = 1; cancel_stun(); with (arg0) do_hbx_hit(-4, -1, 1.5 - ((0.5 * other.hp) / other.__max_hp)); spawn_hit_petals(3, point_direction(arg0.x, arg0.y, x, y), 1); if ((hp % 3) == 0 && !regular_enemy) { if (hp > 0) scr_afterimage_monochrome(16776960, true); instance_destroy(); } else { evadecon = 1; evadetimer = 0; if (reteleport_timer < 0) { instance_destroy(); } else { flash_hurt(255); evadedirection = sign(x - arg0.x); with (instance_create_depth(x, y, depth, obj_plat_vfx)) { sprite_index = spr_hit_vfx; image_speed = 1; } with (instance_create_depth(x, y, depth, obj_plat_vfx)) { sprite_index = spr_smokepuff; image_speed = 2; } if (hp <= 0) instance_destroy(); } } };