This commit is contained in:
LetterN
2021-03-15 21:02:50 +08:00
parent 42c04ea087
commit a478555dbd
25 changed files with 1279 additions and 1278 deletions

View File

@@ -58,8 +58,8 @@
set waitfor = FALSE
if(!AM || istype(AM, /obj/docking_port))
return
if(AM.loc != src) // Multi-tile objects are "in" multiple locs but its loc is it's true placement.
return // Don't move multi tile objects if their origin isnt in transit
if(AM.loc != src) // Multi-tile objects are "in" multiple locs but its loc is it's true placement.
return // Don't move multi tile objects if their origin isn't in transit
var/max = world.maxx-TRANSITIONEDGE
var/min = 1+TRANSITIONEDGE
@@ -68,6 +68,10 @@
var/datum/space_level/D = A
if (D.linkage == CROSSLINKED)
possible_transtitons += D.z_value
if(!length(possible_transtitons)) //No space to throw them to - try throwing them onto mining
possible_transtitons = SSmapping.levels_by_trait(ZTRAIT_MINING)
if(!length(possible_transtitons)) //Just throw them back on station, if not just runtime.
possible_transtitons = SSmapping.levels_by_trait(ZTRAIT_STATION)
var/_z = pick(possible_transtitons)
//now select coordinates for a border turf