mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
Smol cleanup of autopsy/success (#89094)
This commit is contained in:
@@ -44,17 +44,15 @@
|
|||||||
)
|
)
|
||||||
display_pain(target, "You feel a burning sensation in your chest!")
|
display_pain(target, "You feel a burning sensation in your chest!")
|
||||||
|
|
||||||
/datum/surgery_step/autopsy/success(mob/user, mob/living/carbon/target, target_zone, obj/item/autopsy_scanner/tool, datum/surgery/surgery, default_display_results = FALSE)
|
/datum/surgery_step/autopsy/success(mob/living/user, mob/living/carbon/target, target_zone, obj/item/autopsy_scanner/tool, datum/surgery/surgery, default_display_results = FALSE)
|
||||||
ADD_TRAIT(target, TRAIT_DISSECTED, AUTOPSY_TRAIT)
|
ADD_TRAIT(target, TRAIT_DISSECTED, AUTOPSY_TRAIT)
|
||||||
if(!HAS_TRAIT(src, TRAIT_SURGICALLY_ANALYZED))
|
|
||||||
ADD_TRAIT(target, TRAIT_SURGICALLY_ANALYZED, AUTOPSY_TRAIT)
|
ADD_TRAIT(target, TRAIT_SURGICALLY_ANALYZED, AUTOPSY_TRAIT)
|
||||||
tool.scan_cadaver(user, target)
|
tool.scan_cadaver(user, target)
|
||||||
var/obj/machinery/computer/operating/operating_computer = surgery.locate_operating_computer(get_turf(target))
|
var/obj/machinery/computer/operating/operating_computer = surgery.locate_operating_computer(get_turf(target))
|
||||||
if (!isnull(operating_computer))
|
if (!isnull(operating_computer))
|
||||||
SEND_SIGNAL(operating_computer, COMSIG_OPERATING_COMPUTER_AUTOPSY_COMPLETE, target)
|
SEND_SIGNAL(operating_computer, COMSIG_OPERATING_COMPUTER_AUTOPSY_COMPLETE, target)
|
||||||
if(HAS_MIND_TRAIT(user, TRAIT_MORBID) && ishuman(user))
|
if(HAS_MIND_TRAIT(user, TRAIT_MORBID))
|
||||||
var/mob/living/carbon/human/morbid_weirdo = user
|
user.add_mood_event("morbid_dissection_success", /datum/mood_event/morbid_dissection_success)
|
||||||
morbid_weirdo.add_mood_event("morbid_dissection_success", /datum/mood_event/morbid_dissection_success)
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/datum/surgery_step/autopsy/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
/datum/surgery_step/autopsy/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||||
|
|||||||
Reference in New Issue
Block a user