[MIRROR] Adds 3 second delay to amputations (#9064)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-09-27 09:51:08 -07:00
committed by GitHub
parent 86574d5362
commit ab7983b39d

View File

@@ -192,7 +192,14 @@
if(isnull(selected_surgery)) //They clicked 'cancel'
return 1
selected_surgery = available_surgeries[selected_surgery] //Sets the name they selected to be the datum.
// VOREstation edit start
if(istype(selected_surgery,/datum/surgery_step/generic/amputate))
var/obj/item/organ/external/affected = M.get_organ(zone)
to_chat(user, "<span class='danger'>You are preparing to amputate \the [M]'s [affected.name]!</span>")
if(!do_after(user, 3 SECONDS, M))
to_chat(user, "<span class='warning'>You reconsider performing an amputation...</span>")
return 0
// VOREstation edit end
M.op_stage.in_progress += zone
selected_surgery.begin_step(user, M, zone, src) //start on it
var/success = TRUE