From 064a1192000ecf6d9daaa6bed57eb615110177c9 Mon Sep 17 00:00:00 2001 From: Morrow Date: Sun, 3 Sep 2023 21:55:33 -0400 Subject: [PATCH] Initial --- .../abilities/runner/runner_powers.dm | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/runner/runner_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/runner/runner_powers.dm index 6835fb724294..98131c36a19e 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/runner/runner_powers.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/runner/runner_powers.dm @@ -146,30 +146,30 @@ /datum/action/xeno_action/activable/acider_for_the_hive/use_ability(atom/A) - var/mob/living/carbon/xenomorph/X = owner + var/mob/living/carbon/xenomorph/xeno = owner - if(!istype(X)) + if(!istype(xeno)) return - if(!isturf(X.loc)) - to_chat(X, SPAN_XENOWARNING("It is too cramped in here to activate this!")) + if(!isturf(xeno.loc)) + to_chat(xeno, SPAN_XENOWARNING("It is too cramped in here to activate this!")) return - var/area/xeno_area = get_area(X) + var/area/xeno_area = get_area(xeno) if(xeno_area.flags_area & AREA_CONTAINMENT) - to_chat(X, SPAN_XENOWARNING("You can't activate this here!")) + to_chat(xeno, SPAN_XENOWARNING("You can't activate this here!")) return - if(!X.check_state()) + if(!xeno.check_state()) return if(!action_cooldown_check()) return - if(X.mutation_type != RUNNER_ACIDER) + if(xeno.mutation_type != RUNNER_ACIDER) return - var/datum/behavior_delegate/runner_acider/BD = X.behavior_delegate + var/datum/behavior_delegate/runner_acider/BD = xeno.behavior_delegate if(!istype(BD)) return @@ -178,20 +178,22 @@ return if(BD.acid_amount < minimal_acid) - to_chat(X, SPAN_XENOWARNING("Not enough acid built up for an explosion.")) + to_chat(xeno, SPAN_XENOWARNING("Not enough acid built up for an explosion.")) return - to_chat(X, SPAN_XENOWARNING("Your stomach starts turning and twisting, getting ready to compress the built up acid.")) - X.color = "#22FF22" - X.set_light_color("#22FF22") - X.set_light_range(3) + notify_ghosts(header = "For the Hive!", message = "[xeno] is going to explode for the Hive!", source = xeno, action = NOTIFY_ORBIT) + + to_chat(xeno, SPAN_XENOWARNING("Your stomach starts turning and twisting, getting ready to compress the built up acid.")) + xeno.color = "#22FF22" + xeno.set_light_color("#22FF22") + xeno.set_light_range(3) BD.caboom_trigger = TRUE BD.caboom_left = BD.caboom_timer BD.caboom_last_proc = 0 - X.set_effect(BD.caboom_timer*2, SUPERSLOW) + xeno.set_effect(BD.caboom_timer*2, SUPERSLOW) - X.say(";FOR THE HIVE!!!") + xeno.say(";FOR THE HIVE!!!") return ..() /datum/action/xeno_action/activable/acider_for_the_hive/proc/cancel_ability()