Skip to content

Commit

Permalink
Egg item too
Browse files Browse the repository at this point in the history
  • Loading branch information
private-tristan committed Dec 29, 2023
1 parent c817416 commit 2738e5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/egg_item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
set_hive_data(src, hivenumber)
. = ..()

if(hivenumber == XENO_HIVE_NORMAL)
RegisterSignal(SSdcs, COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING, PROC_REF(forsaken_handling))

/obj/item/xeno_egg/proc/forsaken_handling()
SIGNAL_HANDLER
if(is_ground_level(z))
hivenumber = XENO_HIVE_FORSAKEN
set_hive_data(src, XENO_HIVE_FORSAKEN)

UnregisterSignal(SSdcs, COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING)

/obj/item/xeno_egg/get_examine_text(mob/user)
. = ..()
if(isxeno(user))
Expand Down

0 comments on commit 2738e5a

Please sign in to comment.