mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 05:02:18 +00:00
Resist tweaks.
Can now resist out of handcuffs and buckle restraints. Fixes #12359. No longer resist out of every possible type of restraint at the same time. # Conflicts: # code/modules/mob/living/carbon/resist.dm
This commit is contained in:
@@ -212,7 +212,7 @@ Proc for attack log creation, because really why not
|
||||
if (progbar)
|
||||
qdel(progbar)
|
||||
|
||||
/proc/do_after(mob/user, delay, atom/target = null, needhand = 1, progress = 1)
|
||||
/proc/do_after(mob/user, delay, atom/target = null, needhand = 1, progress = 1, var/incapacitation_flags = INCAPACITATION_DEFAULT)
|
||||
if(!user)
|
||||
return 0
|
||||
var/atom/target_loc = null
|
||||
@@ -235,7 +235,7 @@ Proc for attack log creation, because really why not
|
||||
if (progress)
|
||||
progbar.update(world.time - starttime)
|
||||
|
||||
if(!user || user.incapacitated() || user.loc != original_loc)
|
||||
if(!user || user.incapacitated(incapacitation_flags) || user.loc != original_loc)
|
||||
. = 0
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user