Skip to content

Commit

Permalink
fixes runtime in stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Dec 27, 2023
1 parent afdf92f commit 87b20ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/human/inventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@
/// Multiplier for how quickly the user can strip things.
var/user_speed = user.get_skill_duration_multiplier(SKILL_CQC)
/// The total skill level of CQC & Police
var/target_skills = (target.skills.get_skill_level(SKILL_CQC) + target.skills.get_skill_level(SKILL_POLICE))
var/target_skills = 0
target_skills += (target.skills?.get_skill_level(SKILL_CQC) + target.skills?.get_skill_level(SKILL_POLICE))

/// Delay then gets + 0.5s per skill level, so long as not dead or cuffed.
if(!(target.stat || target.handcuffed))
Expand Down

0 comments on commit 87b20ad

Please sign in to comment.