Skip to content

Commit

Permalink
Fixes not being able to stand up when handcuffed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 committed Jan 31, 2025
1 parent a85e5dd commit 46a3b39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ default behaviour is:
set category = "IC"

// No posture, no adjustment.
if(length(get_available_postures()) <= 1 || incapacitated(INCAPACITATION_KNOCKOUT) || !canClick())
if(length(get_available_postures()) <= 1 || incapacitated(INCAPACITATION_KNOCKDOWN) || !canClick())
return

var/list/selectable_postures = get_selectable_postures()
Expand All @@ -667,18 +667,18 @@ default behaviour is:
selected_posture = selectable_postures[1]
else
selected_posture = input(usr, "Which posture do you wish to adopt?", "Change Posture", current_posture) as null|anything in selectable_postures
if(!selected_posture || length(get_available_postures()) <= 1 || incapacitated(INCAPACITATION_KNOCKOUT) || !canClick())
if(!selected_posture || length(get_available_postures()) <= 1 || incapacitated(INCAPACITATION_KNOCKDOWN) || !canClick())
return
if(current_posture == selected_posture || !(selected_posture in get_selectable_postures()))
return

setClickCooldown(3)
to_chat(src, SPAN_NOTICE("You are now [selected_posture.posture_change_message]."))
if(current_posture.prone && !selected_posture.prone)
if(!do_after(src, 2 SECONDS, src, incapacitation_flags = ~INCAPACITATION_FORCELYING))
if(!do_after(src, 2 SECONDS, src, incapacitation_flags = INCAPACITATION_KNOCKDOWN))
return
if(current_posture == selected_posture || !(selected_posture in get_selectable_postures()))
return
to_chat(src, SPAN_NOTICE("You are now [selected_posture.posture_change_message]."))
set_posture(selected_posture)

//called when the mob receives a bright flash
Expand Down

0 comments on commit 46a3b39

Please sign in to comment.