modular map loader

yep
This commit is contained in:
BongaTheProto
2023-08-18 20:04:20 -05:00
parent f58785708c
commit b6dc33fb2e
7 changed files with 248 additions and 1 deletions
+8 -1
View File
@@ -32,11 +32,17 @@
if(!cached_map)
return
discover_port_offset()
//SPLURT EDIT
var/offset = discover_offset(/obj/docking_port/mobile)
port_x_offset = offset[1]
port_y_offset = offset[2]
//SPLURT EDIT END
if(!cached_map)
cached_map = null
/* SPLURT EDIT - Refractored in modular
/datum/map_template/shuttle/proc/discover_port_offset()
var/key
var/list/models = cached_map.grid_models
@@ -56,6 +62,7 @@
return
++xcrd
--ycrd
*/
/datum/map_template/shuttle/load(turf/T, centered = FALSE, orientation = SOUTH, annihilate = default_annihilate, force_cache = FALSE, rotate_placement_to_orientation = FALSE, register = TRUE)
. = ..()