mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fixes blob intercepts
not being sent to the station, both directive 7-10 and directive 7-12 which gives the station the nuke code during its final moments.
This commit is contained in:
@@ -159,21 +159,17 @@ You must kill it all while minimizing the damage to the station."}
|
|||||||
|
|
||||||
if (1)
|
if (1)
|
||||||
command_alert("Biohazard outbreak alert status upgraded to level 9. [station_name()] is now locked down, under Directive 7-10, until further notice.", "Directive 7-10 Initiated")
|
command_alert("Biohazard outbreak alert status upgraded to level 9. [station_name()] is now locked down, under Directive 7-10, until further notice.", "Directive 7-10 Initiated")
|
||||||
for (var/mob/living/silicon/ai/aiPlayer in player_list)
|
|
||||||
if (aiPlayer)
|
|
||||||
var/law = "The station is under quarantine. Do not permit anyone to leave. Disregard laws 1-3 if necessary to prevent, by any means necessary, anyone from leaving."
|
|
||||||
aiPlayer.set_zeroth_law(law)
|
|
||||||
aiPlayer << "Laws Updated: [law]"
|
|
||||||
for(var/mob/M in player_list)
|
for(var/mob/M in player_list)
|
||||||
if(!istype(M,/mob/new_player) && M.client)
|
if(!istype(M,/mob/new_player) && M.client)
|
||||||
M << sound('sound/AI/blob_confirmed.ogg')
|
M << sound('sound/AI/blob_confirmed.ogg')
|
||||||
var/T = M.loc
|
var/T = M.loc
|
||||||
if((istype(T, /turf/space)) || ((istype(T, /turf)) && (M.z!=1)))
|
if((istype(T, /turf/space)) || ((istype(T, /turf)) && (M.z!=1)))
|
||||||
pre_escapees += M
|
pre_escapees += M
|
||||||
|
send_intercept(1)
|
||||||
outbreak = 1
|
outbreak = 1
|
||||||
if (2)
|
if (2)
|
||||||
command_alert("Biohazard outbreak containment status reaching critical mass, total quarantine failure is now possibility. As such, Directive 7-12 has now been authorized for [station_name()].", "Directive 7-12 Authorized")
|
command_alert("Biohazard outbreak containment status reaching critical mass, total quarantine failure is now possibile. As such, Directive 7-12 has now been authorized for [station_name()].", "Final Measure")
|
||||||
send_intercept(2)
|
|
||||||
for(var/mob/camera/blob/B in player_list)
|
for(var/mob/camera/blob/B in player_list)
|
||||||
B << " <span class='blob'>The beings intend to eliminate you with some kind of weapon of mass destruction, you must stop them or consume the station before this occurs!</span>"
|
B << "<span class='blob'>The beings intend to eliminate you with a final suicidal attack, you must stop them quickly or consume the station before this occurs!</span>"
|
||||||
|
send_intercept(2)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ Orders for all [station_name()] personnel follows:
|
|||||||
</ol>
|
</ol>
|
||||||
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.
|
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.
|
||||||
Message ends."}
|
Message ends."}
|
||||||
|
for (var/mob/living/silicon/ai/aiPlayer in player_list)
|
||||||
|
var/law = "The station is under quarantine. Do not permit anyone to leave. Disregard laws 1-3 if necessary to prevent, by any means necessary, anyone from leaving."
|
||||||
|
aiPlayer.set_zeroth_law(law)
|
||||||
|
aiPlayer << "Laws Updated: [law]"
|
||||||
if(2)
|
if(2)
|
||||||
var/nukecode = "ERROR"
|
var/nukecode = "ERROR"
|
||||||
for(var/obj/machinery/nuclearbomb/bomb in world)
|
for(var/obj/machinery/nuclearbomb/bomb in world)
|
||||||
@@ -30,28 +34,28 @@ Message ends."}
|
|||||||
nukecode = bomb.r_code
|
nukecode = bomb.r_code
|
||||||
interceptname = "Directive 7-12"
|
interceptname = "Directive 7-12"
|
||||||
intercepttext = {"<FONT size = 3><B>NanoTrasen Update</B>: Biohazard Alert.</FONT><HR>
|
intercepttext = {"<FONT size = 3><B>NanoTrasen Update</B>: Biohazard Alert.</FONT><HR>
|
||||||
Directive 7-12 has been issued for [station_name()].
|
Directive 7-12 has been issued for [station_name()].
|
||||||
The biohazard has grown out of control and will soon reach critical mass.
|
The biohazard has grown out of control and will soon reach critical mass.
|
||||||
Your orders are as follows:
|
Your orders are as follows:
|
||||||
<ol>
|
<ol>
|
||||||
<li>Secure the Nuclear Authentication Disk.</li>
|
<li>Secure the Nuclear Authentication Disk.</li>
|
||||||
<li>Detonate the Nuke located in the Station's Vault.</li>
|
<li>Detonate the Nuke located in the Station's Vault.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<b>Nuclear Authentication Code:</b> [nukecode]
|
<b>Nuclear Authentication Code:</b> [nukecode]
|
||||||
Message ends."}
|
Message ends."}
|
||||||
for (var/mob/living/silicon/ai/aiPlayer in player_list)
|
for (var/mob/living/silicon/ai/aiPlayer in player_list)
|
||||||
if (aiPlayer.client)
|
var/law = "Directive 7-12 has been authorized. Allow no sentient being to escape the purge. The nuclear failsafe must be activated at any cost, the code is: [nukecode]."
|
||||||
var/law = "Directive 7-12 has been authorized. Allow no sentient being to escape the purge. The nuclear failsafe must be activated at any cost, the code is: [nukecode]."
|
aiPlayer.set_zeroth_law(law)
|
||||||
aiPlayer.set_zeroth_law(law)
|
aiPlayer << "Laws Updated: [law]"
|
||||||
aiPlayer << "Laws Updated: [law]"
|
|
||||||
|
|
||||||
for(var/obj/machinery/computer/communications/comm in machines)
|
for (var/obj/machinery/computer/communications/comm in machines)
|
||||||
comm.messagetitle.Add(interceptname)
|
if (!(comm.stat & (BROKEN | NOPOWER)) && comm.prints_intercept)
|
||||||
comm.messagetext.Add(intercepttext)
|
|
||||||
if(!(comm.stat & (BROKEN | NOPOWER)) && comm.prints_intercept)
|
|
||||||
var/obj/item/weapon/paper/intercept = new /obj/item/weapon/paper( comm.loc )
|
var/obj/item/weapon/paper/intercept = new /obj/item/weapon/paper( comm.loc )
|
||||||
intercept.name = "paper- [interceptname]"
|
intercept.name = "paper- [interceptname]"
|
||||||
intercept.info = intercepttext
|
intercept.info = intercepttext
|
||||||
|
|
||||||
|
comm.messagetitle.Add("[interceptname]")
|
||||||
|
comm.messagetext.Add(intercepttext)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
|
|
||||||
/obj/effect/blob/New(loc)
|
/obj/effect/blob/New(loc)
|
||||||
blobs += src
|
blobs += src
|
||||||
var/datum/game_mode/blob/B
|
if(istype(ticker.mode,/datum/game_mode/blob))
|
||||||
if(B)
|
var/datum/game_mode/blob/blobmode = ticker.mode
|
||||||
if((blobs.len >= B.blobnukeposs) && prob(1))
|
if((blobs.len >= blobmode.blobnukeposs) && prob(3))
|
||||||
B.stage(2)
|
blobmode.stage(2)
|
||||||
src.dir = pick(1, 2, 4, 8)
|
src.dir = pick(1, 2, 4, 8)
|
||||||
src.update_icon()
|
src.update_icon()
|
||||||
..(loc)
|
..(loc)
|
||||||
|
|||||||
Reference in New Issue
Block a user