From d3bc199ca95154eea500d28617bb600d631506aa Mon Sep 17 00:00:00 2001 From: comma Date: Sat, 18 Aug 2012 15:46:22 +0400 Subject: [PATCH] Does not decreases metroid core count on unsuccessful removal. Fixes Issue #1625 --- code/game/objects/items/weapons/surgery_tools.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/weapons/surgery_tools.dm b/code/game/objects/items/weapons/surgery_tools.dm index 35a7b897418..4db2a21512e 100644 --- a/code/game/objects/items/weapons/surgery_tools.dm +++ b/code/game/objects/items/weapons/surgery_tools.dm @@ -1236,11 +1236,12 @@ Called when surgeon interupted operation, or was interrupted (was not there with if(M.cores > 0) for(var/mob/O in (viewers(M) - user - M)) O.show_message("\red [M.name] is having one of its cores sawed out with [src] by [user].", 1) - M.cores-- - M << "\red [user] begins to remove one of your cores with [src]! ([M.cores] cores remaining)" - user << "\red You cut one of [M]'s cores out with [src]! ([M.cores] cores remaining)" + M << "\red [user] begins to remove one of your cores with [src]..." + user << "\red You begin to cut one of [M]'s cores out with [src]..." if(do_after(user, rand(20,80))) + M.cores-- new/obj/item/metroid_core(M.loc) + user << "\red You cut out the core. ([M.cores] cores remaining)" if(M.cores <= 0) M.icon_state = "baby metroid dead-nocore" else