Skip to content

Commit

Permalink
Ghosts now notified when larva are about to chestburst out of un-nest…
Browse files Browse the repository at this point in the history
…ed (#3947)

# About the pull request

This PR tells ghosts when someone is about to be chestbursted (only if
not nested)

# Explain why it's good for the game

It is good to have interesting events like chestbursts be told to ghosts
before it happens, letting them observe the event in advance

# Testing Photographs and Procedure


![image](https://github.com/cmss13-devs/cmss13/assets/91219575/ca2b486f-f9ed-41cb-a249-fd4ddd8e4d91)

# Changelog
:cl:
qol: Ghosts now informed when a non-nested host is about to chestburst
/:cl:
  • Loading branch information
Ben10083 committed Jul 21, 2023
1 parent 34df407 commit fee91f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/Embryo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@
to_chat(new_xeno, "Talk in Hivemind using <strong>;</strong> (e.g. ';My life for the queen!')")
playsound_client(new_xeno.client, 'sound/effects/xeno_newlarva.ogg', 25, 1)

// Inform observers to grab some popcorn if it isnt nested
if(!HAS_TRAIT(affected_mob, TRAIT_NESTED))
var/area/burst_area = get_area(src)
if(burst_area)
for(var/mob/dead/observer/observer as anything in GLOB.observer_list)
to_chat(observer, SPAN_DEADSAY("A <b>[new_xeno.hive.prefix]Larva</b> is about to chestburst out of <b>[affected_mob]</b> at \the <b>[burst_area]!</b> [OBSERVER_JMP(observer, affected_mob)]"))
to_chat(src, SPAN_DEADSAY("A <b>[new_xeno.hive.prefix]Larva</b> is about to chestburst out of <b>[affected_mob]</b> at \the <b>[burst_area]!</b>"))
else
for(var/mob/dead/observer/observer as anything in GLOB.observer_list)
to_chat(observer, SPAN_DEADSAY("A <b>[new_xeno.hive.prefix]Larva</b> is about to chestburst out of <b>[affected_mob]!</b> [OBSERVER_JMP(observer, affected_mob)]"))
to_chat(src, SPAN_DEADSAY("A <b>[new_xeno.hive.prefix]Larva</b> is about to chestburst out of <b>[affected_mob]!</b>"))

stage = 6

/mob/living/carbon/xenomorph/larva/proc/cause_unbearable_pain(mob/living/carbon/victim)
Expand Down

0 comments on commit fee91f7

Please sign in to comment.