mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fixes in-chat icons being broken in oldchat
This commit is contained in:
@@ -259,14 +259,14 @@
|
||||
return
|
||||
|
||||
if (src.active)
|
||||
user.visible_message("<font color='blue'>[bicon(src)] [user] deactivated the shield generator.</font>", \
|
||||
"<font color='blue'>[bicon(src)] You deactivate the shield generator.</font>", \
|
||||
user.visible_message("<font color='blue'>\icon[src][bicon(src)] [user] deactivated the shield generator.</font>", \
|
||||
"<font color='blue'>\icon[src][bicon(src)] You deactivate the shield generator.</font>", \
|
||||
"You hear heavy droning fade out.")
|
||||
src.shields_down()
|
||||
else
|
||||
if(anchored)
|
||||
user.visible_message("<font color='blue'>[bicon(src)] [user] activated the shield generator.</font>", \
|
||||
"<font color='blue'>[bicon(src)] You activate the shield generator.</font>", \
|
||||
user.visible_message("<font color='blue'>\icon[src][bicon(src)] [user] activated the shield generator.</font>", \
|
||||
"<font color='blue'>\icon[src][bicon(src)] You activate the shield generator.</font>", \
|
||||
"You hear heavy droning.")
|
||||
src.shields_up()
|
||||
else
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
else if(W.is_wrench())
|
||||
src.anchored = !src.anchored
|
||||
playsound(src, W.usesound, 75, 1)
|
||||
src.visible_message("<font color='blue'>[bicon(src)] [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].</font>")
|
||||
src.visible_message("<font color='blue'>\icon[src][bicon(src)] [src] has been [anchored ? "bolted to the floor" : "unbolted from the floor"] by [user].</font>")
|
||||
|
||||
if(anchored)
|
||||
spawn(0)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
else if(W.is_wrench())
|
||||
src.anchored = !src.anchored
|
||||
playsound(src, W.usesound, 75, 1)
|
||||
src.visible_message("<font color='blue'>[bicon(src)] [src] has been [anchored?"bolted to the floor":"unbolted from the floor"] by [user].</font>")
|
||||
src.visible_message("<font color='blue'>\icon[src][bicon(src)] [src] has been [anchored?"bolted to the floor":"unbolted from the floor"] by [user].</font>")
|
||||
|
||||
if(active)
|
||||
toggle()
|
||||
@@ -122,7 +122,7 @@
|
||||
"failing" = (C.time_since_fail <= 2),
|
||||
)))
|
||||
lockedData["capacitors"] = caps
|
||||
|
||||
|
||||
lockedData["active"] = active
|
||||
lockedData["failing"] = (time_since_fail <= 2)
|
||||
lockedData["radius"] = field_radius
|
||||
@@ -242,7 +242,7 @@
|
||||
covered_turfs = null
|
||||
|
||||
for(var/mob/M in view(5,src))
|
||||
to_chat(M, "[bicon(src)] You hear heavy droning start up.")
|
||||
to_chat(M, "\icon[src][bicon(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
|
||||
@@ -252,7 +252,7 @@
|
||||
qdel(D)
|
||||
|
||||
for(var/mob/M in view(5,src))
|
||||
to_chat(M, "[bicon(src)] You hear heavy droning fade out.")
|
||||
to_chat(M, "\icon[src][bicon(src)] You hear heavy droning fade out.")
|
||||
|
||||
/obj/machinery/shield_gen/update_icon()
|
||||
if(stat & BROKEN)
|
||||
|
||||
Reference in New Issue
Block a user