mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
[MIRROR] Lose some weight, fatty (#9900)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
SatinIsle
Kashargul
parent
1adbd99f4a
commit
d462b7f748
@@ -3,7 +3,7 @@
|
||||
desc = "It's a burial receptacle for the dearly departed."
|
||||
icon = 'icons/obj/closets/coffin.dmi'
|
||||
|
||||
icon_state = "closed"
|
||||
icon_state = "closed_unlocked"
|
||||
seal_tool = /obj/item/tool/screwdriver
|
||||
breakout_sound = 'sound/weapons/tablehit1.ogg'
|
||||
closet_appearance = null // Special icon for us
|
||||
|
||||
@@ -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"
|
||||
@@ -25,7 +26,7 @@
|
||||
playsound(src, 'sound/effects/woodhit.ogg', 25, 1, -1)
|
||||
user.do_attack_animation(src)
|
||||
user.adjust_nutrition(-10) //CHOMPEdit Set nutrition drain to be the same as in fitness_machines_vr.dm
|
||||
user.weight -= 0.1 * (0.01 * user.weight_loss) // CHOMPAdd Add weight loss to old fitness equipment
|
||||
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
|
||||
@@ -65,7 +66,8 @@
|
||||
if(do_after(user, 30 + (weight * 10))) //CHOMPEdit Set timer to be similar to the machines in fitness_machines_vr.dm
|
||||
playsound(src, 'sound/effects/weightdrop.ogg', 25, 1)
|
||||
user.adjust_nutrition(weight * -10)
|
||||
user.weight -= 0.1 * weight * (0.01 * user.weight_loss) // CHOMPAdd Add weight loss to old fitness equipment
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user