You can now load the cyberiad with the map-loader

This commit is contained in:
Crazylemon64
2016-07-02 22:50:45 -07:00
parent 0e50e4f27a
commit f2b48c7c67
14 changed files with 167 additions and 102 deletions
@@ -2,6 +2,8 @@
set category = "Debug"
set name = "Map template - Place"
if(!holder)
return
var/datum/map_template/template
var/map = input(usr, "Choose a Map Template to place at your CURRENT LOCATION","Place Map Template") as null|anything in map_templates
@@ -13,6 +15,10 @@
if(!T)
return
if(!template.fits_in_map_bounds(T, centered = TRUE))
to_chat(usr, "Map is too large to fit in bounds. Map's dimensions: ([template.width], [template.height])")
return
var/list/preview = list()
for(var/S in template.get_affected_turfs(T,centered = TRUE))
preview += image('icons/turf/overlays.dmi',S,"greenOverlay")