Removes a bunch of sleeps/spawns and makes a few booleans defines
This commit is contained in:
committed by
CitadelStationBot
parent
b200389630
commit
b20e5916ea
@@ -114,6 +114,11 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
corrupt()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/proc/AI_notify_hack()
|
||||
var/turf/location = get_turf(src)
|
||||
var/alertstr = "<span class='userdanger'>Network Alert: Hacking attempt detected[location?" in [location]":". Unable to pinpoint location"]</span>."
|
||||
for(var/mob/living/silicon/ai/AI in GLOB.player_list)
|
||||
to_chat(AI, alertstr)
|
||||
|
||||
//RDCONSOLE//
|
||||
/obj/machinery/computer/rdconsole/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
|
||||
@@ -123,10 +128,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
. = DRAIN_RD_HACK_FAILED
|
||||
|
||||
to_chat(H, "<span class='notice'>Hacking \the [src]...</span>")
|
||||
spawn(0)
|
||||
var/turf/location = get_turf(H)
|
||||
for(var/mob/living/silicon/ai/AI in GLOB.player_list)
|
||||
to_chat(AI, "<span class='userdanger'>Network Alert: Hacking attempt detected[location?" in [location]":". Unable to pinpoint location"]</span>.")
|
||||
AI_notify_hack()
|
||||
|
||||
if(files && files.known_tech.len)
|
||||
for(var/datum/tech/current_data in S.stored_research)
|
||||
@@ -145,7 +147,6 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
|
||||
to_chat(H, "<span class='notice'>Data analyzed. Process finished.</span>")
|
||||
|
||||
|
||||
//RD SERVER//
|
||||
//Shamelessly copypasted from above, since these two used to be the same proc, but with MANY colon operators
|
||||
/obj/machinery/r_n_d/server/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
|
||||
@@ -155,10 +156,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
. = DRAIN_RD_HACK_FAILED
|
||||
|
||||
to_chat(H, "<span class='notice'>Hacking \the [src]...</span>")
|
||||
spawn(0)
|
||||
var/turf/location = get_turf(H)
|
||||
for(var/mob/living/silicon/ai/AI in GLOB.player_list)
|
||||
to_chat(AI, "<span class='userdanger'>Network Alert: Hacking attempt detected[location?" in [location]":". Unable to pinpoint location"]</span>.")
|
||||
AI_notify_hack()
|
||||
|
||||
if(files && files.known_tech.len)
|
||||
for(var/datum/tech/current_data in S.stored_research)
|
||||
|
||||
Reference in New Issue
Block a user