Nuke code is now publicly broadcast in blob mode

This commit is contained in:
alex-gh
2014-01-05 20:01:40 +01:00
parent 221f3a7e05
commit e85bf6ebcd
2 changed files with 13 additions and 11 deletions

View File

@@ -55,6 +55,13 @@ var/list/blob_nodes = list()
return 1
/datum/game_mode/blob/proc/get_nuke_code()
var/nukecode = "ERROR"
for(var/obj/machinery/nuclearbomb/bomb in world)
if(bomb && bomb.r_code && bomb.z == 1)
nukecode = bomb.r_code
return nukecode
/datum/game_mode/blob/announce()
world << "<B>The current game mode is - <font color='green'>Blob</font>!</B>"
@@ -175,9 +182,10 @@ var/list/blob_nodes = list()
return
if (2)
command_alert("The biohazard has grown out of control and will soon reach critical mass. Activate the nuclear failsafe to mantain quarantine.", "Biohazard Alert")
set_security_level("delta")
command_alert("The biohazard has grown out of control and will soon reach critical mass. Activate the nuclear failsafe to mantain quarantine. The Nuclear Authentication Code is [get_nuke_code()] ", "Biohazard Alert")
set_security_level("gamma")
send_intercept(2)
spawn(10) world << sound('sound/effects/siren.ogg')
return
return