mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
refactors most spans
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
|
||||
/obj/machinery/fitness/attack_hand(mob/living/user)
|
||||
if(user.nutrition < 70)
|
||||
to_chat(user, "<span class='notice'>You need more energy to workout with the [src]!</span>")
|
||||
to_chat(user, span_notice("You need more energy to workout with the [src]!"))
|
||||
|
||||
else if(user.weight < 70)
|
||||
to_chat(user, "<span class='notice'>You're too skinny to risk losing any more weight!</span>")
|
||||
to_chat(user, span_notice("You're too skinny to risk losing any more weight!"))
|
||||
|
||||
else //If they have enough nutrition and body weight, they can exercise.
|
||||
user.setClickCooldown(cooldown)
|
||||
@@ -24,7 +24,7 @@
|
||||
user.weight -= 0.025 * weightloss_power * (0.01 * user.weight_loss)
|
||||
flick("[icon_state]2", src)
|
||||
var/message = pick(messages)
|
||||
to_chat(user, "<span class='notice'>[message].</span>")
|
||||
to_chat(user, span_notice("[message]."))
|
||||
for(var/s in workout_sounds)
|
||||
playsound(src, s, 50, 1)
|
||||
|
||||
@@ -57,18 +57,18 @@
|
||||
/obj/machinery/fitness/heavy/attackby(obj/item/W, mob/living/user)
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
add_fingerprint(user)
|
||||
user.visible_message("<span class='warning'>[user] has [anchored ? "un" : ""]secured \the [src].</span>", "<span class='notice'>You [anchored ? "un" : ""]secure \the [src].</span>")
|
||||
user.visible_message(span_warning("[user] has [anchored ? "un" : ""]secured \the [src]."), span_notice("You [anchored ? "un" : ""]secure \the [src]."))
|
||||
anchored = !anchored
|
||||
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
|
||||
return
|
||||
|
||||
/obj/machinery/fitness/heavy/attack_hand(mob/living/user)
|
||||
if(!anchored)
|
||||
to_chat(user, "<span class='notice'>For safety reasons, you are required to have this equipment wrenched down before using it!</span>")
|
||||
to_chat(user, span_notice("For safety reasons, you are required to have this equipment wrenched down before using it!"))
|
||||
return
|
||||
|
||||
else if(user.loc != loc)
|
||||
to_chat(user, "<span class='notice'>For safety reasons, you need to be sitting in the [src] for it to work!</span>")
|
||||
to_chat(user, span_notice("For safety reasons, you need to be sitting in the [src] for it to work!"))
|
||||
return
|
||||
|
||||
else
|
||||
@@ -94,8 +94,8 @@
|
||||
|
||||
/obj/machinery/scale/attack_hand(var/mob/living/user)
|
||||
if(user.loc != loc)
|
||||
to_chat(user, "<span class='notice'>You need to be standing on top of the scale for it to work!</span>")
|
||||
to_chat(user, span_notice("You need to be standing on top of the scale for it to work!"))
|
||||
return
|
||||
if(user.weight) //Just in case.
|
||||
var/kilograms = round(text2num(user.weight),4) / 2.20463
|
||||
visible_message("<span class='notice'>[src] displays a reading of [user.weight]lb / [kilograms]kg when [user] stands on it.</span>")
|
||||
visible_message(span_notice("[src] displays a reading of [user.weight]lb / [kilograms]kg when [user] stands on it."))
|
||||
|
||||
Reference in New Issue
Block a user