Skip to content

Commit

Permalink
Restraints now show up on examine. (#6252)
Browse files Browse the repository at this point in the history
# About the pull request

As title says, this makes handcuffs/legcuffs appear on examine.

# Explain why it's good for the game

Depending on various overlapping sprites/locations, it can be difficult
to tell if someone is restrained just by looking at them. This adds to
examine something that should have been there to start with.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
add: Handcuffs & Legcuffs now appear on examine.
/:cl:

---------

Co-authored-by: Drathek <[email protected]>
  • Loading branch information
realforest2001 and Drulikar authored May 11, 2024
1 parent 937d2d4 commit 31b42f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/modules/mob/living/carbon/human/examine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@
if(wear_id)
msg += "[t_He] [t_is] [wear_id.get_examine_location(src, user, WEAR_ID, t_He, t_his, t_him, t_has, t_is)].\n"

//Restraints
if(handcuffed)
msg += SPAN_ORANGE("[capitalize(t_his)] arms are restrained by [handcuffed].\n")

if(legcuffed)
msg += SPAN_ORANGE("[capitalize(t_his)] ankles are restrained by [legcuffed].\n")

//Admin-slept
if(sleeping > 8000000)
msg += SPAN_HIGHDANGER("<B>This player has been slept by staff.</B>\n")
Expand Down

0 comments on commit 31b42f9

Please sign in to comment.