Skip to content

Commit

Permalink
Fixes issue with mods who don't have fast learner
Browse files Browse the repository at this point in the history
  • Loading branch information
Katskan committed Jul 7, 2023
1 parent fa33367 commit 3255fb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/surgery/surgery_steps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit 3255fb2

Please sign in to comment.