Deprecate the stream operator

This commit is contained in:
Arokha Sieyes
2020-02-12 17:26:44 -05:00
committed by Leshana
parent c8a8987610
commit 47ccc655db
762 changed files with 4492 additions and 4464 deletions

View File

@@ -27,13 +27,13 @@
/obj/machinery/shieldwallgen/attack_hand(mob/user as mob)
if(state != 1)
user << "<font color='red'>The shield generator needs to be firmly secured to the floor first.</font>"
to_chat(user, "<font color='red'>The shield generator needs to be firmly secured to the floor first.</font>")
return 1
if(src.locked && !istype(user, /mob/living/silicon))
user << "<font color='red'>The controls are locked!</font>"
to_chat(user, "<font color='red'>The controls are locked!</font>")
return 1
if(power != 1)
user << "<font color='red'>The shield generator needs to be powered by wire underneath.</font>"
to_chat(user, "<font color='red'>The shield generator needs to be powered by wire underneath.</font>")
return 1
if(src.active >= 1)
@@ -159,29 +159,29 @@
/obj/machinery/shieldwallgen/attackby(obj/item/W, mob/user)
if(W.is_wrench())
if(active)
user << "Turn off the field generator first."
to_chat(user, "Turn off the field generator first.")
return
else if(state == 0)
state = 1
playsound(src, W.usesound, 75, 1)
user << "You secure the external reinforcing bolts to the floor."
to_chat(user, "You secure the external reinforcing bolts to the floor.")
src.anchored = 1
return
else if(state == 1)
state = 0
playsound(src, W.usesound, 75, 1)
user << "You undo the external reinforcing bolts."
to_chat(user, "You undo the external reinforcing bolts.")
src.anchored = 0
return
if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda))
if (src.allowed(user))
src.locked = !src.locked
user << "Controls are now [src.locked ? "locked." : "unlocked."]"
to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]")
else
user << "<font color='red'>Access denied.</font>"
to_chat(user, "<font color='red'>Access denied.</font>")
else
src.add_fingerprint(user)

View File

@@ -48,7 +48,7 @@
/obj/machinery/shield_gen/emag_act(var/remaining_charges, var/mob/user)
if(prob(75))
src.locked = !src.locked
user << "Controls are now [src.locked ? "locked." : "unlocked."]"
to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]")
. = 1
updateDialog()
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
@@ -60,10 +60,10 @@
var/obj/item/weapon/card/id/C = W
if(access_captain in C.access || access_security in C.access || access_engine in C.access)
src.locked = !src.locked
user << "Controls are now [src.locked ? "locked." : "unlocked."]"
to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]")
updateDialog()
else
user << "<font color='red'>Access denied.</font>"
to_chat(user, "<font color='red'>Access denied.</font>")
else if(W.is_wrench())
src.anchored = !src.anchored
playsound(src, W.usesound, 75, 1)
@@ -213,7 +213,7 @@
return
else if( href_list["toggle"] )
if (!active && !anchored)
usr << "<font color='red'>The [src] needs to be firmly secured to the floor first.</font>"
to_chat(usr, "<font color='red'>The [src] needs to be firmly secured to the floor first.</font>")
return
toggle()
else if( href_list["change_radius"] )
@@ -248,7 +248,7 @@
covered_turfs = null
for(var/mob/M in view(5,src))
M << "\icon[src] You hear heavy droning start up."
to_chat(M, "\icon[src] You hear heavy droning start up.")
for(var/obj/effect/energy_field/E in field) // Update the icons here to ensure all the shields have been made already.
E.update_icon()
else
@@ -258,7 +258,7 @@
qdel(D)
for(var/mob/M in view(5,src))
M << "\icon[src] You hear heavy droning fade out."
to_chat(M, "\icon[src] You hear heavy droning fade out.")
/obj/machinery/shield_gen/update_icon()
if(stat & BROKEN)