mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Being drunk gives a chance to harm yourself when working out (#79548)
## About The Pull Request Working out when sufficiently drunk (around the amount that drunk resilience begins to heal you) now has a scaling chance to cause you to fail and harm yourself (similar to how clumsy works) when using an exercise machine None of these values are final and I'm open to making the failure it more severe (bone wounds) ## Why It's Good For The Game Partly cause its funny, partly cause realism, really cause I felt like expanding on interactions for the exercise equipment ## Changelog 🆑 add: Being sufficiently drunk now has a chance to cause working out to fail and harm you /🆑
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#define WORKOUT_XP 5
|
||||
#define EXERCISE_STATUS_DURATION 20 SECONDS
|
||||
#define SAFE_DRUNK_LEVEL 39
|
||||
|
||||
/obj/structure/weightmachine
|
||||
name = "chest press machine"
|
||||
@@ -18,6 +19,9 @@
|
||||
///The weight action we give to people that buckle themselves to us.
|
||||
var/datum/action/push_weights/weight_action
|
||||
|
||||
///message when drunk user fails to use the machine
|
||||
var/drunk_message = "You try for a new record and pull through! Through a muscle that is."
|
||||
|
||||
///List of messages picked when using the machine.
|
||||
var/static/list/more_weight = list(
|
||||
"pushing it to the limit!",
|
||||
@@ -110,6 +114,14 @@
|
||||
end_workout()
|
||||
return
|
||||
|
||||
// awlways a chance for a person not to fail horribly when drunk
|
||||
if(user.get_drunk_amount() > SAFE_DRUNK_LEVEL && prob(min(user.get_drunk_amount(), 99)))
|
||||
playsound(src,'sound/effects/bang.ogg', 50, TRUE)
|
||||
to_chat(user, span_warning(drunk_message))
|
||||
user.take_bodypart_damage(rand(5, 10), wound_bonus = 10)
|
||||
end_workout()
|
||||
return
|
||||
|
||||
if(issilicon(user))
|
||||
user.balloon_alert(user, pick(finished_silicon_message))
|
||||
else
|
||||
@@ -157,5 +169,8 @@
|
||||
|
||||
pixel_shift_y = 5
|
||||
|
||||
drunk_message = "You raise the bar over you trying to balance it with one hand, keyword tried."
|
||||
|
||||
#undef WORKOUT_XP
|
||||
#undef EXERCISE_STATUS_DURATION
|
||||
#undef SAFE_DRUNK_LEVEL
|
||||
|
||||
Reference in New Issue
Block a user