Lose some weight, fatty (#16913)

Changed fitness machines and structures to actually help you lose weight other than rapidly draining your nutrition. Machine types have had their weight loss multiplied by 10 so they no longer take 80 or 40 uses to lose 1lb. Structure types previously had no weight loss attached, they now have similar amounts to the machine types.
This commit is contained in:
SatinIsle
2025-01-16 16:01:08 -05:00
committed by GitHub
parent 61ae770739
commit 703e59819c
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -2,6 +2,7 @@
icon = 'icons/obj/stationobjs.dmi'
anchored = TRUE
var/being_used = 0
var/weightloss_power = 1
/obj/structure/fitness/punchingbag
name = "punching bag"
@@ -23,6 +24,7 @@
playsound(src, 'sound/effects/woodhit.ogg', 25, 1, -1)
user.do_attack_animation(src)
user.nutrition = user.nutrition - 5
user.weight -= 0.25 * weightloss_power * (0.01 * user.weight_loss)
to_chat(user, span_warning("You [pick(hit_message)] \the [src]."))
/obj/structure/fitness/weightlifter
@@ -59,6 +61,8 @@
if(do_after(user, 20 + (weight * 10)))
playsound(src, 'sound/effects/weightdrop.ogg', 25, 1)
user.adjust_nutrition(weight * -10)
var/weightloss_enhanced = weightloss_power * (weight * 0.5)
user.weight -= 0.25 * weightloss_enhanced * (0.01 * user.weight_loss)
to_chat(user, span_notice("You lift the weights [qualifiers[weight]]."))
being_used = 0
else