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
+5 -5
View File
@@ -11,7 +11,7 @@
if(contents.len <= 0)
for (var/mob/M in viewers(src))
M.show_message("<span class='warning'>You hear a hollow crackle.</span>", 1)
M.show_message(span_warning("You hear a hollow crackle."), 1)
return
else
if(!isemptylist(src.search_contents_for(/obj/item/disk/nuclear)))
@@ -20,17 +20,17 @@
for(var/I in contents)
if(!(I in allowed_items))
to_chat(user, "<span class='notice'>\The [src] cannot cremate while there are items inside!</span>")
to_chat(user, span_notice("\The [src] cannot cremate while there are items inside!"))
return
if(istype(I, /mob/living))
var/mob/living/cremated = I
for(var/Z in cremated.contents)
if(!(Z in allowed_items))
to_chat(user, "<span class='notice'>\The [src] cannot cremate while there are items inside!</span>")
to_chat(user, span_notice("\The [src] cannot cremate while there are items inside!"))
return
for (var/mob/M in viewers(src))
M.show_message("<span class='warning'>You hear a roar as the crematorium activates.</span>", 1)
M.show_message(span_warning("You hear a roar as the crematorium activates."), 1)
cremating = 1
locked = 1
@@ -56,4 +56,4 @@
cremating = 0
locked = 0
playsound(src, 'sound/machines/ding.ogg', 50, 1)
return
return