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
+8 -8
View File
@@ -103,8 +103,8 @@
if(!shock(user, 90))
playsound(src, W.usesound, 100, 1)
anchored = !anchored
user.visible_message("<span class='notice'>[user] [anchored ? "fastens" : "unfastens"] the grille.</span>", \
"<span class='notice'>You have [anchored ? "fastened the grille to" : "unfastened the grille from"] the floor.</span>")
user.visible_message(span_notice("[user] [anchored ? "fastens" : "unfastens"] the grille."), \
span_notice("You have [anchored ? "fastened the grille to" : "unfastened the grille from"] the floor."))
return
//window placing begin //TODO CONVERT PROPERLY TO MATERIAL DATUM
@@ -129,23 +129,23 @@
else
dir_to_set = 4
else
to_chat(user, "<span class='notice'>You can't reach.</span>")
to_chat(user, span_notice("You can't reach."))
return //Only works for cardinal direcitons, diagonals aren't supposed to work like this.
for(var/obj/structure/window/WINDOW in loc)
if(WINDOW.dir == dir_to_set)
to_chat(user, "<span class='notice'>There is already a window facing this way there.</span>")
to_chat(user, span_notice("There is already a window facing this way there."))
return
to_chat(user, "<span class='notice'>You start placing the window.</span>")
to_chat(user, span_notice("You start placing the window."))
if(do_after(user,20))
for(var/obj/structure/window/WINDOW in loc)
if(WINDOW.dir == dir_to_set)//checking this for a 2nd time to check if a window was made while we were waiting.
to_chat(user, "<span class='notice'>There is already a window facing this way there.</span>")
to_chat(user, span_notice("There is already a window facing this way there."))
return
var/wtype = ST.material.created_window
if (ST.use(1))
var/obj/structure/window/WD = new wtype(loc, dir_to_set, 1)
to_chat(user, "<span class='notice'>You place the [WD] on [src].</span>")
to_chat(user, span_notice("You place the [WD] on [src]."))
WD.update_icon()
return
//window placing end
@@ -213,7 +213,7 @@
..()
/obj/structure/grille/attack_generic(var/mob/user, var/damage, var/attack_verb)
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
visible_message(span_danger("[user] [attack_verb] the [src]!"))
user.do_attack_animation(src)
health -= damage
spawn(1) healthcheck()