From 97b758707ec40faa37ee5b076f72215a7a635430 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Sat, 22 May 2021 16:54:03 -0400 Subject: [PATCH] Removes the early classified announcement from the blob gamemode (#16049) * Removes the early classified announcement * removes the lies of the 30 seconds * who needs sleep * Apply suggestions from code review Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * compensating Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/game/gamemodes/blob/blob.dm | 26 ++++++------------------- code/game/gamemodes/blob/blob_finish.dm | 1 - code/game/gamemodes/blob/blob_report.dm | 13 ------------- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/code/game/gamemodes/blob/blob.dm b/code/game/gamemodes/blob/blob.dm index 60d854a7832..ba674aae658 100644 --- a/code/game/gamemodes/blob/blob.dm +++ b/code/game/gamemodes/blob/blob.dm @@ -15,7 +15,6 @@ GLOBAL_LIST_EMPTY(blob_nodes) recommended_enemies = 1 restricted_jobs = list("Cyborg", "AI") - var/declared = 0 var/burst = 0 var/cores_to_spawn = 1 @@ -75,8 +74,7 @@ GLOBAL_LIST_EMPTY(blob_nodes) log_game("[key_name(blob)] has been selected as a Blob") greet_blob(blobmind) to_chat(blob, "You feel very tired and bloated! You don't have long before you burst!") - spawn(600) - burst_blob(blobmind) + addtimer(CALLBACK(src, .proc/burst_blob, blobmind), 60 SECONDS) return 1 /datum/game_mode/blob/proc/make_blobs(count) @@ -128,8 +126,7 @@ GLOBAL_LIST_EMPTY(blob_nodes) if(!warned) to_chat(C, "You feel ready to burst, but this isn't an appropriate place! You must return to the station!") message_admins("[key_name_admin(C)] was in space when the blobs burst, and will die if [C.p_they()] [C.p_do()] not return to the station.") - spawn(300) - burst_blob(blob, 1) + addtimer(CALLBACK(src, .proc/burst_blob, blob, 1), 30 SECONDS) else burst++ log_admin("[key_name(C)] was in space when attempting to burst as a blob.") @@ -173,33 +170,22 @@ GLOBAL_LIST_EMPTY(blob_nodes) show_message("You feel like you are about to burst.") - sleep(wait_time / 2) - - burst_blobs() - - // Stage 0 - sleep(wait_time) - stage(0) + addtimer(CALLBACK(src, .proc/burst_blobs), (wait_time / 2)) // Stage 1 - sleep(wait_time) - stage(1) + addtimer(CALLBACK(src, .proc/stage, 1), (wait_time * 2 + wait_time / 2)) // Stage 2 - sleep(30000) - stage(2) + addtimer(CALLBACK(src, .proc/stage, 2), 50 MINUTES) return ..() /datum/game_mode/blob/proc/stage(stage) switch(stage) - if(0) - send_intercept(1) - declared = 1 if(1) GLOB.event_announcement.Announce("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak5.ogg') if(2) - send_intercept(2) + send_intercept(1) /datum/game_mode/proc/update_blob_icons_added(datum/mind/mob_mind) var/datum/atom_hud/antag/antaghud = GLOB.huds[ANTAG_HUD_BLOB] diff --git a/code/game/gamemodes/blob/blob_finish.dm b/code/game/gamemodes/blob/blob_finish.dm index d14069b9d24..c95c0fb2539 100644 --- a/code/game/gamemodes/blob/blob_finish.dm +++ b/code/game/gamemodes/blob/blob_finish.dm @@ -26,7 +26,6 @@ to_chat(world, "The staff has won!") to_chat(world, "The alien organism has been eradicated from the station") log_game("Blob mode completed with a crew victory.") - to_chat(world, "Rebooting in 30s") ..() return 1 diff --git a/code/game/gamemodes/blob/blob_report.dm b/code/game/gamemodes/blob/blob_report.dm index 670c9ea8aa4..ad3cedafb85 100644 --- a/code/game/gamemodes/blob/blob_report.dm +++ b/code/game/gamemodes/blob/blob_report.dm @@ -5,19 +5,6 @@ if(0) return if(1) - interceptname = "Level 5-6 Biohazard Response Procedures" - intercepttext += "Nanotrasen Update: Biohazard Alert.
" - intercepttext += "Reports indicate the probable transfer of a biohazardous agent onto [station_name()] during the last crew deployment cycle.
" - intercepttext += "Preliminary analysis of the organism classifies it as a level 5 biohazard. Its origin is unknown.
" - intercepttext += "Nanotrasen has issued a directive 7-10 for [station_name()]. The station is to be considered quarantined.
" - intercepttext += "Orders for all [station_name()] personnel follows:
" - intercepttext += " 1. Do not leave the quarantine area.
" - intercepttext += " 2. Locate any outbreaks of the organism on the station.
" - intercepttext += " 3. If found, use any neccesary means to contain the organism.
" - intercepttext += " 4. Avoid damage to the capital infrastructure of the station.
" - intercepttext += "
Note in the event of a quarantine breach or uncontrolled spread of the biohazard, the directive 7-10 may be upgraded to a directive 7-12.
" - intercepttext += "Message ends." - if(2) var/nukecode = rand(10000, 99999) for(var/obj/machinery/nuclearbomb/bomb in GLOB.machines) if(bomb && bomb.r_code)