Skip to content

Commit

Permalink
Update code/datums/elements/strippable.dm
Browse files Browse the repository at this point in the history
Co-authored-by: Drathek <[email protected]>
  • Loading branch information
zzzmike and Drulikar authored Jul 28, 2024
1 parent 227ea83 commit 2135fdf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion code/datums/elements/strippable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,17 @@
if (isnull(item))
return FALSE

if ((user.action_busy && !skillcheck(user, SKILL_POLICE, SKILL_POLICE_SKILLED)) || user.is_mob_restrained() || HAS_TRAIT(user, (TRAIT_IMMOBILIZED || TRAIT_INCAPACITATED || TRAIT_FLOORED)))
if (user.action_busy && !skillcheck(user, SKILL_POLICE, SKILL_POLICE_SKILLED))
to_chat(user, SPAN_WARNING("You can't do this right now."))
return FALSE

if (user.is_mob_incapacitated())
to_chat(user, SPAN_WARNING("You can't do this right now."))
return FALSE

if (HAS_TRAIT(user, TRAIT_IMMOBILIZED) || HAS_TRAIT(user, TRAIT_FLOORED))
to_chat(user, SPAN_WARNING("You can't do this right now."))
return FALSE
to_chat(user, SPAN_WARNING("You can't do this right now."))
return FALSE

Expand Down

0 comments on commit 2135fdf

Please sign in to comment.