mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge branch 'master' into vplk-shuttle-construction
This commit is contained in:
@@ -17,7 +17,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
|
||||
return 1
|
||||
|
||||
/obj/machinery/computer/ship/proc/sync_linked(var/user = null)
|
||||
var/obj/effect/overmap/visitable/ship/sector = map_sectors["[z]"]
|
||||
var/obj/effect/overmap/visitable/ship/sector = get_overmap_sector(z)
|
||||
if(!sector)
|
||||
return
|
||||
. = attempt_hook_up_recursive(sector)
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
. = ..()
|
||||
|
||||
/obj/effect/shuttle_landmark/ship/Destroy()
|
||||
var/obj/effect/overmap/visitable/ship/landable/ship = map_sectors["[z]"]
|
||||
var/obj/effect/overmap/visitable/ship/landable/ship = get_overmap_sector(z)
|
||||
if(istype(ship) && ship.landmark == src)
|
||||
ship.landmark = null
|
||||
. = ..()
|
||||
@@ -141,7 +141,7 @@
|
||||
on_landing(from, into)
|
||||
|
||||
/obj/effect/overmap/visitable/ship/landable/proc/on_landing(obj/effect/shuttle_landmark/from, obj/effect/shuttle_landmark/into)
|
||||
var/obj/effect/overmap/visitable/target = map_sectors["[into.z]"]
|
||||
var/obj/effect/overmap/visitable/target = get_overmap_sector(get_z(into))
|
||||
var/datum/shuttle/shuttle_datum = SSshuttles.shuttles[shuttle]
|
||||
if(into.landmark_tag == shuttle_datum.motherdock) // If our motherdock is a landable ship, it won't be found properly here so we need to find it manually.
|
||||
for(var/obj/effect/overmap/visitable/ship/landable/landable in SSshuttles.ships)
|
||||
|
||||
Reference in New Issue
Block a user