From 3255fb21a379b5daacbd0426ac9b00e5758a1493 Mon Sep 17 00:00:00 2001 From: Katskan Date: Fri, 7 Jul 2023 17:46:58 -0400 Subject: [PATCH] Fixes issue with mods who don't have fast learner --- code/modules/surgery/surgery_steps.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/surgery/surgery_steps.dm b/code/modules/surgery/surgery_steps.dm index adc00e0cdc55..33e3e0b02525 100644 --- a/code/modules/surgery/surgery_steps.dm +++ b/code/modules/surgery/surgery_steps.dm @@ -102,8 +102,8 @@ affected_limb, or location vars. Also, in that case there may be a wait between if(ispath(tool_type)) //Tool speed modifier. This means hand & any item are 100% efficient as surgical tools. tool_modifier = tools[tool_type] - if(!(HAS_TRAIT(user, TRAIT_IMPROVISER))) - step_duration *= tool_modifier + if(!(HAS_TRAIT(user, TRAIT_IMPROVISER))) + step_duration *= tool_modifier if(surgery.lying_required) //Surgery surface modifier. surface_modifier = target.buckled?.surgery_duration_multiplier //If they're buckled, use the surface modifier of the thing they're buckled to. @@ -112,8 +112,8 @@ affected_limb, or location vars. Also, in that case there may be a wait between for(var/obj/surface in get_turf(target)) //Otherwise, get the lowest surface modifier of objects on their turf. if(surface_modifier > surface.surgery_duration_multiplier) surface_modifier = surface.surgery_duration_multiplier - if(!(HAS_TRAIT(user, TRAIT_FASTLEARNER))) - step_duration *= surface_modifier + if(!(HAS_TRAIT(user, TRAIT_FASTLEARNER))) + step_duration *= surface_modifier var/list/human_modifiers = list("surgery_speed" = 1.0, "pain_reduction" = 0) SEND_SIGNAL(user, COMSIG_HUMAN_SURGERY_APPLY_MODIFIERS, human_modifiers)