more changes
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
var/lying_required = TRUE //Does the vicitm needs to be lying down.
|
||||
var/requires_tech = FALSE
|
||||
var/replaced_by
|
||||
var/datum/wound/operated_wound //The actual wound datum instance we're targeting
|
||||
var/datum/wound/targetable_wound //The wound type this surgery targets
|
||||
|
||||
/datum/surgery/New(surgery_target, surgery_location, surgery_bodypart)
|
||||
..()
|
||||
@@ -28,8 +30,13 @@
|
||||
location = surgery_location
|
||||
if(surgery_bodypart)
|
||||
operated_bodypart = surgery_bodypart
|
||||
if(targetable_wound)
|
||||
operated_wound = operated_bodypart.get_wound_type(targetable_wound)
|
||||
operated_wound.attached_surgery = src
|
||||
|
||||
/datum/surgery/Destroy()
|
||||
if(operated_wound)
|
||||
operated_wound.attached_surgery = null
|
||||
if(target)
|
||||
target.surgeries -= src
|
||||
target = null
|
||||
|
||||
Reference in New Issue
Block a user