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
+9 -9
View File
@@ -51,7 +51,7 @@
return
if(user.unEquip(O, 0, src))
loaded_star = O
to_chat(user, "<span class='notice'>You insert the firework star into \the [src].</span>")
to_chat(user, span_notice("You insert the firework star into \the [src]."))
add_fingerprint(user)
update_icon()
return
@@ -67,7 +67,7 @@
if(!user || user.stat != 0)
return
if(!loaded_star)
to_chat(user, "<span class='notice'>There is no firework star loaded in \the [src].</span>")
to_chat(user, span_notice("There is no firework star loaded in \the [src]."))
return
else
loaded_star.forceMove(get_turf(src))
@@ -77,32 +77,32 @@
/obj/machinery/firework_launcher/attack_hand(mob/user) // Maybe this proc could be better as entirely its own proc, called from attack_hand, but also I don't really see the point
if(panel_open)
to_chat(user, "<span class='warning'>Close the panel first!</span>")
to_chat(user, span_warning("Close the panel first!"))
return
if(!loaded_star)
to_chat(user, "<span class='notice'>There is no firework star loaded in \the [src].</span>")
to_chat(user, span_notice("There is no firework star loaded in \the [src]."))
return
if((world.time - last_launch) <= launch_cooldown)
to_chat(user, "<span class='notice'>\The [src] is still re-priming for launch.</span>")
to_chat(user, span_notice("\The [src] is still re-priming for launch."))
return
if(!anchored)
to_chat(user, "<span class='warning'>\The [src] must be firmly secured to the ground before firework can be launched!</span>")
to_chat(user, span_warning("\The [src] must be firmly secured to the ground before firework can be launched!"))
return
var/datum/planet/P = get_planet()
if(!P || !(P.weather_holder)) // There are potential cases of being outside but not on planet. And checking whether planet has weather at all is more sanity thing than anything.
to_chat(user, "<span class='warning'>\The [src] beeps as its safeties seem to prevent launch in the current location.</span>")
to_chat(user, span_warning("\The [src] beeps as its safeties seem to prevent launch in the current location."))
return
var/datum/weather_holder/WH = P.weather_holder
if(WH.firework_override && istype(loaded_star, /obj/item/firework_star/weather)) // Enable weather-based events to not be ruined
to_chat(user, "<span class='warning'>\The [src] beeps as it seems some interference is preventing launch of this type of firework.</span>")
to_chat(user, span_warning("\The [src] beeps as it seems some interference is preventing launch of this type of firework."))
return
to_chat(user, "<span class='notice'>You launch the firework!</span>")
to_chat(user, span_notice("You launch the firework!"))
playsound(get_turf(src), 'sound/weapons/rpg.ogg', 75, 1)
loaded_star.trigger_firework(WH)
qdel(loaded_star)