Away missions load cables, pipes, and templates OK now

This commit is contained in:
Crazylemon64
2017-03-27 00:37:24 -07:00
parent 0a17cf80d0
commit babe5eb074
3 changed files with 14 additions and 1 deletions
+5
View File
@@ -18,6 +18,11 @@
template_name = tname
if(template_name)
template = map_templates[template_name]
// Catches the interim-zone of worldstart and roundstart
// I want both the ticker to exist (so mapped-in maploaders don't trip this)
// but also not have started yet (since the zlevel system would handle this on its own otherwise)
if((ticker && ticker.current_state < GAME_STATE_PLAYING))
attempt_init()
/obj/effect/landmark/map_loader/initialize()
..()
+7 -1
View File
@@ -74,6 +74,12 @@ By design, d1 is the smallest direction and d2 is the highest
if(level==1) hide(T.intact)
cable_list += src //add it to the global cable list
// Catches the interim-zone of worldstart and roundstart
// I want both the ticker to exist (so mapped-in cables don't trip this)
// but also not have started yet (since the zlevel system would handle this on its own otherwise)
if((ticker && ticker.current_state < GAME_STATE_PLAYING))
attempt_init()
/obj/structure/cable/Destroy() // called when a cable is deleted
if(powernet)
@@ -807,4 +813,4 @@ var/global/list/datum/stack_recipe/cable_coil_recipes = list(
/obj/item/stack/cable_coil/cyborg/attack_self(mob/user)
var/cablecolor = input(user,"Pick a cable color.","Cable Color") in list("red","yellow","green","blue","pink","orange","cyan","white")
color = cablecolor
update_icon()
update_icon()