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
+12 -12
View File
@@ -31,7 +31,7 @@
if(nozzle)
user.remove_from_mob(nozzle)
return_nozzle()
to_chat(user, "<span class='notice'>\The [nozzle] retracts to its fueltank.</span>")
to_chat(user, span_notice("\The [nozzle] retracts to its fueltank."))
/obj/item/weldpack/proc/get_nozzle(var/mob/living/user)
if(!ishuman(user))
@@ -40,7 +40,7 @@
var/mob/living/carbon/human/H = user
if(H.hands_are_full()) //Make sure our hands aren't full.
to_chat(H, "<span class='warning'>Your hands are full. Drop something first.</span>")
to_chat(H, span_warning("Your hands are full. Drop something first."))
return 0
var/obj/item/F = nozzle
@@ -59,31 +59,31 @@
if(T.welding & prob(50))
message_admins("[key_name_admin(user)] triggered a fueltank explosion.")
log_game("[key_name(user)] triggered a fueltank explosion.")
to_chat(user, "<span class='danger'>That was stupid of you.</span>")
to_chat(user, span_danger("That was stupid of you."))
explosion(get_turf(src),-1,0,2)
if(src)
qdel(src)
return
else if(T.status)
if(T.welding)
to_chat(user, "<span class='danger'>That was close!</span>")
to_chat(user, span_danger("That was close!"))
src.reagents.trans_to_obj(W, T.max_fuel)
to_chat(user, "<span class='notice'>Welder refilled!</span>")
to_chat(user, span_notice("Welder refilled!"))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
else if(nozzle)
if(nozzle == W)
if(!user.unEquip(W))
to_chat(user, "<span class='notice'>\The [W] seems to be stuck to your hand.</span>")
to_chat(user, span_notice("\The [W] seems to be stuck to your hand."))
return
if(!nozzle_attached)
return_nozzle()
to_chat(user, "<span class='notice'>You attach \the [W] to the [src].</span>")
to_chat(user, span_notice("You attach \the [W] to the [src]."))
return
else
to_chat(user, "<span class='notice'>The [src] already has a nozzle!</span>")
to_chat(user, span_notice("The [src] already has a nozzle!"))
else
to_chat(user, "<span class='warning'>The tank scoffs at your insolence. It only provides services to welders.</span>")
to_chat(user, span_warning("The tank scoffs at your insolence. It only provides services to welders."))
return
/obj/item/weldpack/attack_hand(mob/user as mob)
@@ -94,7 +94,7 @@
if(!wearer.incapacitated())
get_nozzle(user)
else
to_chat(user, "<span class='notice'>\The [src] does not have a nozzle attached!</span>")
to_chat(user, span_notice("\The [src] does not have a nozzle attached!"))
else
..()
else
@@ -105,11 +105,11 @@
return
if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume < max_fuel)
O.reagents.trans_to_obj(src, max_fuel)
to_chat(user, "<span class='notice'>You crack the cap off the top of the pack and fill it back up again from the tank.</span>")
to_chat(user, span_notice("You crack the cap off the top of the pack and fill it back up again from the tank."))
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return
else if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume == max_fuel)
to_chat(user, "<span class='warning'>The pack is already full!</span>")
to_chat(user, span_warning("The pack is already full!"))
return
/obj/item/weldpack/MouseDrop(obj/over_object as obj) //This is terrifying.