[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -30,7 +30,7 @@
icon = 'icons/obj/props/items.dmi'
icon_state = icon_state_on
if(user)
user.visible_message("<span class='notice'>[text_activated]</span>")
user.visible_message(span_notice("[text_activated]"))
update_icon()
if(effect == 1)
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
@@ -71,7 +71,7 @@
O.Weaken(flash_time)
if(effect == 4)
var/atom/o = new object(get_turf(user))
src.visible_message("<span class='notice'>[src] has produced [o]!</span>")
src.visible_message(span_notice("[src] has produced [o]!"))
if(sound_activated)
playsound(src, sound_activated, 50, 1)
else if(togglable)
@@ -85,7 +85,7 @@
else
icon = 'icons/obj/props/items.dmi'
if(user)
user.visible_message("<span class='notice'>[text_deactivated]</span>")
user.visible_message(span_notice("[text_deactivated]"))
update_icon()
return ..()

View File

@@ -35,7 +35,7 @@
else
icon = 'icons/obj/props/decor.dmi'
icon_state = icon_state_on
src.visible_message("<span class='notice'>[text_activated]</span>")
src.visible_message(span_notice("[text_activated]"))
update_icon()
if(effect == 1)
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
@@ -76,7 +76,7 @@
O.Weaken(flash_time)
if(effect == 4)
var/atom/o = new object(get_turf(src))
src.visible_message("<span class='notice'>[src] has produced [o]!</span>")
src.visible_message(span_notice("[src] has produced [o]!"))
if(effect == 5)
for (var/mob/O in viewers(src, null))
if(get_dist(src, O) > 7)
@@ -97,14 +97,14 @@
icon = icon_off
else
icon = 'icons/obj/props/decor.dmi'
src.visible_message("<span class='notice'>[text_deactivated]</span>")
src.visible_message(span_notice("[text_deactivated]"))
update_icon()
return ..()
/obj/structure/generic_structure/attackby(obj/item/W as obj, mob/user as mob)
if(wrenchable && W.has_tool_quality(TOOL_WRENCH))
add_fingerprint(user)
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored
/client/proc/generic_structure()

View File

@@ -124,12 +124,12 @@
var/z = params["z"]
if(!name)
to_chat(usr, "<span class='warning'>Name cannot be empty.</span>")
to_chat(usr, span_warning("Name cannot be empty."))
return FALSE
var/turf/T = locate(x, y, z)
if(!T)
to_chat(usr, "<span class='warning'>Those coordinates are outside the boundaries of the map.</span>")
to_chat(usr, span_warning("Those coordinates are outside the boundaries of the map."))
return FALSE
for(var/i = 0, i < amount, i++)
@@ -180,7 +180,7 @@
M.size_multiplier = size_mul
M.update_icon()
else
to_chat(usr, "<span class='warning'>Size Multiplier not applied: ([size_mul]) is not a valid input.</span>")
to_chat(usr, span_warning("Size Multiplier not applied: ([size_mul]) is not a valid input."))
M.forceMove(T)