Skip to content

Commit

Permalink
[MIRROR] Fixes medical bed interaction (#588)
Browse files Browse the repository at this point in the history
* Fixes medical bed interaction (#81062)

## About The Pull Request

Fixes tgstation/tgstation#81014 where you can
interact with medical beds while incapacitated.

## Changelog

:cl: LT3
fix: You can no longer interact with medical beds while incapacitated
/:cl:

---------

Co-authored-by: san7890 <[email protected]>

* Fixes medical bed interaction

---------

Co-authored-by: lessthanthree <[email protected]>
Co-authored-by: san7890 <[email protected]>
  • Loading branch information
3 people authored and FFMirrorBot committed Jan 24, 2024
1 parent 81c335f commit b960b45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/objects/structures/beds_chairs/bed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@

/obj/structure/bed/medical/AltClick(mob/user)
. = ..()
if(!can_interact(user))
return

if(has_buckled_mobs() && (user in buckled_mobs))
return

anchored = !anchored
balloon_alert(user, "brakes [anchored ? "applied" : "released"]")
update_appearance()
Expand Down

0 comments on commit b960b45

Please sign in to comment.