mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
refactors most spans
This commit is contained in:
@@ -25,21 +25,21 @@
|
||||
if(istype(O, /obj/machinery/power/apc))
|
||||
var/obj/machinery/power/apc/A = O
|
||||
if(A.emagged || A.hacker)
|
||||
to_chat(user, "<span class='warning'>There is a software error with the device.</span>")
|
||||
to_chat(user, span_warning("There is a software error with the device."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>The device's software appears to be fine.</span>")
|
||||
to_chat(user, span_notice("The device's software appears to be fine."))
|
||||
return 1
|
||||
if(istype(O, /obj/machinery/door))
|
||||
var/obj/machinery/door/D = O
|
||||
if(D.operating == -1)
|
||||
to_chat(user, "<span class='warning'>There is a software error with the device.</span>")
|
||||
to_chat(user, span_warning("There is a software error with the device."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>The device's software appears to be fine.</span>")
|
||||
to_chat(user, span_notice("The device's software appears to be fine."))
|
||||
return 1
|
||||
else if(istype(O, /obj/machinery))
|
||||
var/obj/machinery/A = O
|
||||
if(A.emagged)
|
||||
to_chat(user, "<span class='warning'>There is a software error with the device.</span>")
|
||||
to_chat(user, span_warning("There is a software error with the device."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>The device's software appears to be fine.</span>")
|
||||
to_chat(user, span_notice("The device's software appears to be fine."))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user