mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Does not decreases metroid core count on unsuccessful removal.
Fixes Issue #1625
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user