Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Borgs can now get buff in the gym on the weight machines. #18373

Merged
merged 2 commits into from Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions code/obj/item/fitness.dm
Expand Up @@ -51,6 +51,12 @@
deconstruct_flags = DECON_WRENCH
var/in_use = 0

MouseDrop_T(var/mob/M, var/mob/user)
// Do not attempt to distantly pump iron.
if (!can_reach(user, src) || !can_reach(user, M))
return
src.attack_hand(M)

attack_hand(mob/user)
if(in_use)
boutput(user, SPAN_ALERT("Its already in use - wait a bit."))
Expand Down Expand Up @@ -99,6 +105,12 @@
deconstruct_flags = DECON_WRENCH
var/in_use = 0

MouseDrop_T(var/mob/M, var/mob/user)
// Do not attempt to distantly pump iron.
if (!can_reach(user, src) || !can_reach(user, M))
return
src.attack_hand(M)

attack_hand(mob/user)
if(in_use)
boutput(user, SPAN_ALERT("Its already in use - wait a bit."))
Expand Down