Modernized the UI of the operation computer.

This commit is contained in:
Giacomand
2014-07-01 21:20:50 +01:00
parent c65aa2b5a4
commit 3a7c25572e
2 changed files with 37 additions and 28 deletions
+5 -4
View File
@@ -11,18 +11,19 @@
var/has_multi_loc = 0 //Multiple locations - RR
/datum/surgery/proc/next_step(mob/user, mob/living/carbon/target)
if(step_in_progress) return
var/procedure = steps[status]
var/datum/surgery_step/S = new procedure
var/datum/surgery_step/S = get_surgery_step()
if(S)
if(S.try_op(user, target, user.zone_sel.selecting, user.get_active_hand(), src))
return 1
return 0
/datum/surgery/proc/get_surgery_step()
var/step_type = steps[status]
return new step_type
/datum/surgery/proc/complete(mob/living/carbon/human/target)
target.surgeries -= src