mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user