Skip to content

Commit

Permalink
TGS Test Merge (#7451)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Oct 31, 2024
2 parents 291d73f + 567ae79 commit bbcaee5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@
var/datum/construction_template/xenomorph/structure_template = new structure_type()

if(!spacecheck(X, T, structure_template))
// spacecheck already cleans up the template
return FALSE

if((choice == XENO_STRUCTURE_EGGMORPH) && locate(/obj/structure/flora/grass/tallgrass) in T)
Expand All @@ -665,16 +666,21 @@
return FALSE

if(!spacecheck(X, T, structure_template)) //doublechecking
// spacecheck already cleans up the template
return FALSE

if(choice == XENO_STRUCTURE_CORE && AR.unoviable_timer)
to_chat(X, SPAN_WARNING("This area does not feel right for you to build this in."))
qdel(structure_template)
return FALSE

if((choice == XENO_STRUCTURE_CORE) && isqueen(X) && X.hive.has_structure(XENO_STRUCTURE_CORE))
if(X.hive.hive_location.hardcore || world.time > XENOMORPH_PRE_SETUP_CUTOFF)
to_chat(X, SPAN_WARNING("We can't rebuild this structure!"))
qdel(structure_template)
return FALSE
if(alert(X, "Are we sure that we want to move the hive and destroy the old hive core?", , "Yes", "No") != "Yes")
qdel(structure_template)
return FALSE
qdel(X.hive.hive_location)
else if(!X.hive.can_build_structure(choice))
Expand Down

0 comments on commit bbcaee5

Please sign in to comment.