Skip to content

Commit

Permalink
For the Hive! ghost notification (#4329)
Browse files Browse the repository at this point in the history
# About the pull request

This PR adds a ghost notification for Acid Runner For the Hive! ability.

# Explain why it's good for the game

Observer QoL

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog

:cl: Morrow
add: Added a ghost notification for Acid Runner For the Hive! ability.
/:cl:
  • Loading branch information
morrowwolf committed Sep 5, 2023
1 parent 6ce8ab4 commit 9a07432
Showing 1 changed file with 18 additions and 16 deletions.
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

0 comments on commit 9a07432

Please sign in to comment.