@@ -60,6 +60,7 @@ GLOBAL_LIST_EMPTY(chosen_station_templates)
6060 stack_trace (" Station room spawner [ src ] at ( [ T. x] , [ T. y] , [ T. z] ) has a null template." )
6161 if (! template_name || template_name == EMPTY_SPAWN )
6262 GLOB . stationroom_landmarks -= src
63+ qdel (src )
6364 return FALSE
6465 GLOB . chosen_station_templates += template_name
6566 var /datum /map_template/template = SSmapping. station_room_templates[template_name]
@@ -69,7 +70,7 @@ GLOBAL_LIST_EMPTY(chosen_station_templates)
6970 template. load(T, centered = FALSE )
7071 template. loaded++
7172 GLOB . stationroom_landmarks -= src
72- // qdel(src)
73+ qdel (src )
7374 return TRUE
7475
7576// Proc to allow you to add conditions for choosing templates, instead of just randomly picking from the template list.
@@ -91,40 +92,22 @@ GLOBAL_LIST_EMPTY(chosen_station_templates)
9192 template_names = current_templates
9293 return chosen_template
9394
94- / obj / effect/ landmark/ stationroom/ box
95- // /Should this landmark load a template during setup? You might not want to in the case of the chapel or clerk office that uses
96- // /player preferences to determine which template loads on roundstart
97- var /load_on_init = TRUE
98-
99- / obj / effect/ landmark/ stationroom/ box/ load(template_name)
100- GLOB . stationroom_landmarks -= src
101- if (! load_on_init)
102- // don't actually load anything, we're going to do that ourselves
103- return TRUE
104- . = .. ()
105-
10695/ obj / effect/ landmark/ stationroom/ box/ bar
107- load_on_init = FALSE
10896 template_names = list (
10997 " Bar Trek" , " Bar Spacious" , " Bar Box" , " Bar Casino" , " Bar Citadel" ,
11098 " Bar Conveyor" , " Bar Diner" , " Bar Disco" , " Bar Purple" , " Bar Cheese" ,
11199 " Bar Clock" , " Bar Arcade" )
112100
113- / obj / effect/ landmark/ stationroom/ box/ bar/ Initialize(mapload )
114- . = .. ()
115- GLOB . bar_landmarks += src
101+ / obj / effect/ landmark/ stationroom/ box/ bar/ load(template_name )
102+ GLOB . stationroom_landmarks -= src
103+ return TRUE
116104
117105/ obj / effect/ landmark/ stationroom/ box/ clerk
118- load_on_init = FALSE
119106 template_names = list (" Clerk Box" , " Clerk Pod" , " Clerk Meta" , " Clerk Gambling Hall" )
120107
121- / obj / effect/ landmark/ stationroom/ box/ clerk/ Initialize(mapload)
122- . = .. ()
123- GLOB . clerk_office_landmarks += src
124-
125- // /obj/effect/landmark/stationroom/box/clerk/load(template_name)
126- // GLOB.stationroom_landmarks -= src
127- // return TRUE
108+ / obj / effect/ landmark/ stationroom/ box/ clerk/ load(template_name)
109+ GLOB . stationroom_landmarks -= src
110+ return TRUE
128111
129112/ obj / effect/ landmark/ stationroom/ box/ engine
130113 template_names = list (" Engine SM" = 40 , " Engine Singulo And Tesla" = 20 , " Engine Nuclear Reactor" = 20 ," Engine TEG" = 20 )
@@ -161,16 +144,11 @@ GLOBAL_LIST_EMPTY(chosen_station_templates)
161144 template_names = list (" Transfer 1" , " Transfer 2" , " Transfer 3" , " Transfer 4" , " Transfer 5" , " Transfer 6" , " Transfer 7" , " Transfer 8" , " Transfer 9" , " Transfer 10" )
162145
163146/ obj / effect/ landmark/ stationroom/ box/ chapel
164- load_on_init = FALSE
165147 template_names = list (" Chapel 1" , " Chapel 2" )
166148
167- / obj / effect/ landmark/ stationroom/ box/ chapel/ Initialize(mapload)
168- . = .. ()
169- GLOB . chapel_landmarks += src
170-
171- // /obj/effect/landmark/stationroom/box/chapel/load(template_name)
172- // GLOB.stationroom_landmarks -= src
173- // return TRUE
149+ / obj / effect/ landmark/ stationroom/ box/ chapel/ load(template_name)
150+ GLOB . stationroom_landmarks -= src
151+ return TRUE
174152
175153/ obj / effect/ landmark/ stationroom/ meta/ engine
176154 template_names = list (" Meta SM" = 25 , " Meta Nuclear Reactor" = 45 , " Meta TEG" = 25 ) // tesla is loud as fuck and singulo doesn't make sense, so SM/reactor only
0 commit comments