From 767b4d3c3d332001bd38fff664819db390f377e1 Mon Sep 17 00:00:00 2001 From: Aurorablade Date: Fri, 26 Aug 2016 21:57:52 -0400 Subject: [PATCH] will rework the map changes later... --- code/_globalvars/mapping.dm | 3 ++- code/datums/helper_datums/map_template.dm | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/code/_globalvars/mapping.dm b/code/_globalvars/mapping.dm index 44b678a8f67..65e6cf95fbb 100644 --- a/code/_globalvars/mapping.dm +++ b/code/_globalvars/mapping.dm @@ -52,4 +52,5 @@ var/list/datum/map_template/map_templates = list() var/list/datum/map_template/ruins_templates = list() var/list/datum/map_template/space_ruins_templates = list() //var/list/datum/map_template/lava_ruins_templates = list() -var/list/datum/map_template/shelter_templates = list() \ No newline at end of file +var/list/datum/map_template/shelter_templates = list() +var/list/datum/map_template/shuttle_templates = list() \ No newline at end of file diff --git a/code/datums/helper_datums/map_template.dm b/code/datums/helper_datums/map_template.dm index d58ecd6e287..fc0fe700a86 100644 --- a/code/datums/helper_datums/map_template.dm +++ b/code/datums/helper_datums/map_template.dm @@ -152,3 +152,17 @@ shelter_templates[S.shelter_id] = S map_templates[S.shelter_id] = S + +/proc/preloadShuttleTemplates() + for(var/item in subtypesof(/datum/map_template/shuttle)) + var/datum/map_template/shuttle/shuttle_type = item + if(!(initial(shuttle_type.suffix))) + continue + + + + + var/datum/map_template/shuttle/S = new shuttle_type() + + shuttle_templates[S.shuttle_id] = S + map_templates[S.shuttle_id] = S \ No newline at end of file