refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
@@ -23,7 +23,7 @@
playsound(src, 'sound/items/Crowbar.ogg', 50, 1)
opened = !opened
EA.opened = opened
to_chat(user, "<span class='notice'>You [opened ? "opened" : "closed"] \the [src].</span>")
to_chat(user, span_notice("You [opened ? "opened" : "closed"] \the [src]."))
secured = 1
update_icon()
@@ -81,4 +81,3 @@
if(!CanInteract(user, state = GLOB.tgui_deep_inventory_state))
return 0
return 1
@@ -209,12 +209,12 @@
return
var/turf/T = get_turf(user)
if(!istype(T, /turf/simulated/floor))
to_chat(user, "<span class='warning'>You cannot place \the [src] on this spot!</span>")
to_chat(user, span_warning("You cannot place \the [src] on this spot!"))
return
playsound(src, 'sound/machines/click.ogg', 75, 1)
user.visible_message("\The [user] attaches \the [src] to the wall.",
"<span class='notice'>You attach \the [src] to the wall.</span>",
"<span class='italics'>You hear clicking.</span>")
span_notice("You attach \the [src] to the wall."),
span_italics("You hear clicking."))
if(istype(user, /mob/living/silicon/robot)) //Robots cannot unequip/drop items, for Safety Reasons.
forceMove(T)
user.drop_item(T)
@@ -260,4 +260,4 @@
to allow it to stick to walls."
w_class = ITEMSIZE_TINY
max_components = IC_COMPONENTS_BASE / 2
max_complexity = IC_COMPLEXITY_BASE / 2
max_complexity = IC_COMPLEXITY_BASE / 2