From ef63e5e8a7bc5ebd921138890cc7b1708dd46eb7 Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Fri, 31 Oct 2014 23:49:41 +0000 Subject: [PATCH] BST things --- code/modules/aurora/bluespacetech.dm | 40 +++++++++++++++++++--------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/code/modules/aurora/bluespacetech.dm b/code/modules/aurora/bluespacetech.dm index e0054bdf..e39ccc3a 100644 --- a/code/modules/aurora/bluespacetech.dm +++ b/code/modules/aurora/bluespacetech.dm @@ -125,21 +125,22 @@ spawn(5) del(s) if(species.name != "Tajaran") - if(species.name == "Machine") + if(species.name == "Machine" && key) h_style = "blue IPC screen" regenerate_icons() - var/mob/dead/observer/ghost = new(src) //Transfer safety to observer spawning proc. - ghost.key = key - if(species.name == "Machine") - ghost.mind.name = "Bluespace Bot" - ghost.name = "Bluespace Bot" - ghost.real_name = "Bluespace Bot" - ghost.voice_name = "Bluespace Bot" - else - ghost.mind.name = "[ghost.key] BSTech" - ghost.name = "[ghost.key] BSTech" - ghost.real_name = "[ghost.key] BSTech" - ghost.voice_name = "[ghost.key] BSTech" + if(key) + var/mob/dead/observer/ghost = new(src) //Transfer safety to observer spawning proc. + ghost.key = key + if(species.name == "Machine") + ghost.mind.name = "Bluespace Bot" + ghost.name = "Bluespace Bot" + ghost.real_name = "Bluespace Bot" + ghost.voice_name = "Bluespace Bot" + else + ghost.mind.name = "[ghost.key] BSTech" + ghost.name = "[ghost.key] BSTech" + ghost.real_name = "[ghost.key] BSTech" + ghost.voice_name = "[ghost.key] BSTech" del(src) proc/bsc(var/kill = 0) //because we all have our unrealistic snowflakes right? @@ -155,6 +156,19 @@ key = null suicide() + proc/bsb(var/kill = 0) + if(set_species("Machine")) + h_style = "blue IPC screen" + name = "Bluespace Bot" + voice_name = "Bluespace Bot" + real_name = "Bluespace Bot" + mind.name = "Bluespace Bot" + regenerate_icons() + else + ghostize(0) + key = null + suicide() + say(var/message) var/verb = "says in a subdued tone" ..(message, verb)