Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For the Hive! ghost notification #4329

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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()
Expand Down
Loading