GM Tool - Create Medical Issue (#18033)

* WIP medical issue GM tool

* Progress

* Basics are now working

* Surgery!

Needs more testing for each step, but the few I tried worked fine.

* body scanner complete

* Completed and tested!

* Fixes my terrible TGUI stuff
This commit is contained in:
SatinIsle
2025-07-24 14:06:18 +02:00
committed by GitHub
parent 9ad3f37be4
commit 2aca759d6a
10 changed files with 752 additions and 3 deletions
@@ -418,6 +418,31 @@
dat+= span_danger("WARNING: Defib will cause extreme pain and set subject feral. Sedation recommended prior to defibrillation.")
else // If they bop them and they're not dead or reviving, give 'em a little notice.
dat += span_notice("Subject is a Xenochimera. Treat accordingly.")
// Custom medical issues
for(var/obj/item/organ/I in H.internal_organs)
for(var/datum/medical_issue/MI in I.medical_issues)
if(advscan >= MI.advscan)
dat += span_danger("Warning: [MI.name] detected in [MI.affectedorgan].<br>")
if(advscan >= MI.advscan_cure)
if(MI.cure_reagent)
dat += span_notice("Suggested treatment: Prescription of [MI.cure_reagent].<br>")
else if(MI.cure_surgery)
dat += span_notice("Required surgery: [MI.cure_surgery].<br>")
else
dat += span_notice("[MI.affectedorgan] may require surgical removal or transplantation.<br>")
for(var/obj/item/organ/E in H.organs)
for(var/datum/medical_issue/MI in E.medical_issues)
if(advscan >= MI.advscan)
dat += span_danger("Warning: [MI.name] detected in [MI.affectedorgan].<br>")
if(advscan >= MI.advscan_cure)
if(MI.cure_reagent)
dat += span_notice("Suggested treatment: Prescription of [MI.cure_reagent].<br>")
else if(MI.cure_surgery)
dat += span_notice("Required surgery: [MI.cure_surgery].<br>")
else
dat += span_notice("[MI.affectedorgan] may require surgical removal or transplantation.<br>")
user.show_message(dat, 1)
if(guide)
guide(M, user)