Skip to content

Commit

Permalink
Fully unbanish xenos on queen death
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Dec 23, 2023
1 parent cddeb3e commit 2fb2793
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions code/modules/mob/living/carbon/xenomorph/castes/Queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -792,13 +792,24 @@
return TRUE

/mob/living/carbon/xenomorph/queen/death(cause, gibbed)
if(hive.living_xeno_queen == src)
if(src == hive?.living_xeno_queen)
hive.xeno_queen_timer = world.time + XENO_QUEEN_DEATH_DELAY
hive.banished_ckeys = list() // Reset the banished ckey list

// Reset the banished ckey list
if(length(hive.banished_ckeys))
for(var/mob/living/carbon/xenomorph/target_xeno in hive.totalXenos)
if(!target_xeno.ckey)
continue
for(var/mob_name in hive.banished_ckeys)
if(target_xeno.ckey == hive.banished_ckeys[mob_name])
target_xeno.banished = FALSE
target_xeno.hud_update_banished()
target_xeno.lock_evolve = FALSE
hive.banished_ckeys = list()

icon = queen_standing_icon
return ..()


/mob/living/carbon/xenomorph/queen/proc/mount_ovipositor()
if(ovipositor)
return //sanity check
Expand Down

0 comments on commit 2fb2793

Please sign in to comment.