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
+4 -4
View File
@@ -87,7 +87,7 @@
visible_message("\The [src] pops open!")
else
for(var/mob/M in src)
to_chat(M, "<span class='danger'>You've landed! Open the hatch if you think it's safe! \The [src] has enough air to last for a while...</span>")
to_chat(M, span_danger("You've landed! Open the hatch if you think it's safe! \The [src] has enough air to last for a while..."))
/obj/structure/drop_pod/proc/open_pod()
if(finished)
@@ -103,7 +103,7 @@
/obj/structure/drop_pod/attack_hand(mob/living/user)
if(istype(user) && (Adjacent(user) || (user in src)) && !user.incapacitated())
if(finished)
to_chat(user, "<span class='warning'>Nothing left to do with it now. Maybe you can break it down into materials.</span>")
to_chat(user, span_warning("Nothing left to do with it now. Maybe you can break it down into materials."))
else
open_pod()
user.visible_message("<b>[user]</b> opens \the [src]!","You open \the [src]!")
@@ -111,13 +111,13 @@
/obj/structure/drop_pod/attackby(obj/item/O, mob/user)
if(O.has_tool_quality(TOOL_WRENCH))
if(finished)
to_chat(user, "<span class='notice'>You start breaking down \the [src].</span>")
to_chat(user, span_notice("You start breaking down \the [src]."))
if(do_after(user, 10 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE))
new /obj/item/stack/material/plasteel(loc, 10)
playsound(user, O.usesound, 50, 1)
qdel(src)
else
to_chat(user, "<span class='warning'>\The [src] hasn't been opened yet. Do that first.</span>")
to_chat(user, span_warning("\The [src] hasn't been opened yet. Do that first."))
return ..()
/obj/structure/drop_pod/return_air()