Skip to content

Commit

Permalink
fixes leader tracker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Nov 24, 2023
1 parent cdb956a commit b40e603
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,6 @@
old_xeno.drop_inv_item_on_ground(item)
old_xeno.empty_gut()

//Set leader to the new mob
if(hive && IS_XENO_LEADER(old_xeno))
hive.replace_hive_leader(old_xeno, src)

if(old_xeno.iff_tag)
iff_tag = old_xeno.iff_tag
iff_tag.forceMove(src)
Expand Down Expand Up @@ -452,15 +448,20 @@
add_abilities()
create_reagents(100)
regenerate_icons()
toggle_xeno_mobhud() //This is a verb, but fuck it, it just werks

toggle_xeno_hostilehud()
recalculate_everything()

//Begin SStracking
SStracking.start_tracking("hive_[hivenumber]", src)
toggle_xeno_mobhud() //This is a verb, but fuck it, it just werks

. = ..()

//Set leader to the new mob
if(old_xeno && hive && IS_XENO_LEADER(old_xeno))
hive.replace_hive_leader(old_xeno, src)

//Begin SStracking
SStracking.start_tracking("hive_[src.hivenumber]", src)

GLOB.living_xeno_list += src
GLOB.xeno_mob_list += src

Expand Down

0 comments on commit b40e603

Please sign in to comment.