fix surgery cb, linter

This commit is contained in:
Letter N
2021-03-06 11:22:01 +08:00
parent a43309a097
commit e84257e624
4 changed files with 9 additions and 6 deletions
+3 -1
View File
@@ -81,6 +81,8 @@
surgery.status++
if(surgery.status > surgery.steps.len)
surgery.complete()
surgery.step_in_progress = FALSE
return advance
if(target.stat == DEAD && user.client)
user.client.give_award(/datum/award/achievement/misc/sandman, user)
@@ -88,7 +90,7 @@
surgery.step_in_progress = FALSE
if(repeatable)
return FALSE //This is how the repeatable surgery detects it shouldn't cycle
return advance //Stop the attack chain! - Except on repeatable steps, because otherwise we land in an infinite loop.
return TRUE //Stop the attack chain! - Except on repeatable steps, because otherwise we land in an infinite loop.
/datum/surgery_step/proc/preop(mob/user, mob/living/target, target_zone, obj/item/tool, datum/surgery/surgery)