Merge pull request #2165 from Yoshax/removebucklecuffing

Makes handcuff resisting take priority over unbuckle resisting by removing bucklecuff resisting
This commit is contained in:
Neerti
2016-07-22 14:21:31 -04:00
committed by GitHub
2 changed files with 38 additions and 5 deletions

View File

@@ -18,9 +18,6 @@
ExtinguishMob()
return TRUE
if(..())
return TRUE
if(handcuffed)
spawn() escape_handcuffs()
else if(legcuffed)
@@ -59,8 +56,8 @@
"<span class='warning'>You attempt to remove \the [HC]. (This will take around [displaytime] minutes and you need to stand still)</span>"
)
if(do_after(src, breakouttime, incapacitation_flags = INCAPACITATION_DEFAULT & ~INCAPACITATION_RESTRAINED))
if(!handcuffed || buckled)
if(do_after(src, breakouttime, incapacitation_flags = INCAPACITATION_DISABLED & INCAPACITATION_KNOCKDOWN))
if(!handcuffed)
return
visible_message(
"<span class='danger'>\The [src] manages to remove \the [handcuffed]!</span>",