Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Nov 16, 2023
1 parent a73d186 commit 1e891fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,12 @@

/mob/living/carbon/xenomorph/Initialize(mapload, mob/living/carbon/xenomorph/old_xeno, hivenumber)

var/datum/hive_status/hive
if(old_xeno && old_xeno.hivenumber)
hive = GLOB.hive_datum[old_xeno.hivenumber]
src.hivenumber = old_xeno.hivenumber
else if(hivenumber)
hive = GLOB.hive_datum[hivenumber]
src.hivenumber = hivenumber

var/datum/hive_status/hive = GLOB.hive_datum[src.hivenumber]

if(hive)
hive.add_xeno(src)
Expand All @@ -365,7 +366,6 @@

///Handle transferring things from the old Xeno if we have one in the case of evolve, devolve etc.
if(old_xeno)
src.hivenumber = old_xeno.hivenumber
src.nicknumber = old_xeno.nicknumber
src.life_kills_total = old_xeno.life_kills_total
src.life_damage_taken_total = old_xeno.life_damage_taken_total
Expand Down

0 comments on commit 1e891fe

Please sign in to comment.