mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-02-03 05:00:56 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
118 lines
4.7 KiB
Plaintext
118 lines
4.7 KiB
Plaintext
/obj/item/device/healthanalyzer/verb/toggle_guide()
|
|
set name = "Toggle Guidance"
|
|
set desc = "Toggles whether or not \the [src] will provide guidance and instruction in addition to scanning."
|
|
set category = "Object"
|
|
guide = !guide
|
|
to_chat(usr, "<span class='notice'>You toggle \the [src]'s guidance system [guide ? "on" : "off"].</span>")
|
|
|
|
|
|
/obj/item/device/healthanalyzer/guide
|
|
name = "Instructional health analyzer"
|
|
desc = "A hand-held body scanner able to distinguish vital signs of the subject. It shows extra information to medical personnel!"
|
|
guide = TRUE
|
|
icon_state = "health-g"
|
|
|
|
/obj/item/device/healthanalyzer/proc/guide(var/mob/living/carbon/human/M, mob/living/user)
|
|
|
|
/* CHOMPedit remove: Anyone can get this info. *
|
|
|
|
var/obj/item/weapon/card/id/ourid = user?.GetIdCard()
|
|
if(!ourid)
|
|
return
|
|
if(access_change_ids in ourid.access)
|
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
|
return
|
|
if(access_medical in ourid.access)
|
|
playsound(src, 'sound/effects/pop.ogg', 50, FALSE)
|
|
else
|
|
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
|
return
|
|
if(!ishuman(M))
|
|
return
|
|
|
|
* CHOMPedit end. */
|
|
|
|
var/dat = ""
|
|
|
|
var/bleeding_external = FALSE
|
|
var/bleeding_internal = FALSE
|
|
var/infection = FALSE
|
|
var/organ = FALSE
|
|
var/bone = FALSE
|
|
var/bloodloss = FALSE
|
|
var/robotparts = FALSE
|
|
|
|
for(var/obj/item/organ/external/org in M.organs)
|
|
if(!istype(org)) //how?
|
|
continue
|
|
if(org.robotic >= ORGAN_ROBOT)
|
|
robotparts = TRUE
|
|
continue
|
|
for(var/datum/wound/W in org.wounds)
|
|
if(W.internal)
|
|
bleeding_internal = TRUE
|
|
break
|
|
if(org.status & ORGAN_BLEEDING)
|
|
bleeding_external = TRUE
|
|
if(org.status & ORGAN_BROKEN && (!org.splinted))
|
|
bone = TRUE
|
|
if(org.has_infected_wound())
|
|
infection = TRUE
|
|
|
|
|
|
for(var/obj/item/organ/org in M.internal_organs)
|
|
if(!istype(org)) //how?
|
|
continue
|
|
if(org.robotic >= ORGAN_ROBOT)
|
|
robotparts = TRUE
|
|
continue
|
|
if(org.status & ORGAN_BLEEDING)
|
|
bleeding_internal = TRUE
|
|
if(org.damage >= 1 && !istype(org, /obj/item/organ/internal/brain))
|
|
organ = TRUE
|
|
|
|
var/blood_volume = M.vessel.get_reagent_amount("blood")
|
|
if(blood_volume <= M.species.blood_volume*M.species.blood_level_safe)
|
|
bloodloss = TRUE
|
|
|
|
//CHOMPedit start: Wording
|
|
if(bleeding_external)
|
|
dat += "<b>Surface Bleeding</b> - Apply bandages or administer Bicaridine.<br>"
|
|
if(bleeding_internal)
|
|
dat += "<b>Internal Bleeding</b> - Commence an internal vein repair operation or administer coagulants, such as Myelamine.<br>"
|
|
if(M.getOxyLoss())
|
|
dat += "<b>Suffocation</b> - Administer Dexalin or Dexalin Plus. Check for heart or lung damage.<br>"
|
|
if(infection)
|
|
dat += "<b>Infection</b> - Administer Spaceacillin. If severe, use Corophizine or overdose on Spaceacillin and monitor until well.<br>"
|
|
if(M.getBrainLoss() >= 1)
|
|
dat += "<b>Traumatic Brain Injury</b> - Commence brain repair surgery Administer Alkysine or universal organ-repair chemicals such as Peridaxon.<br>"
|
|
if(M.radiation || M.accumulated_rads)
|
|
dat += "<b>Radiation Exposure</b> - Administer Hyronalin or Arithrazine. Monitor for genetic damage.<br>"
|
|
if(organ)
|
|
dat += "<b>Organ Damage</b> - Administer Peridaxon. Perform a full body scan for targeted organ repair surgery.<br>"
|
|
if(bloodloss)
|
|
dat += "<b>Low blood volume</b> - Commence blood transfusion via IV drip or provide blood-restorative chemicals (e.g.: Copper for zorren and skrell, iron for the rest)."
|
|
if(M.getToxLoss())
|
|
dat += "<b>Toxin Buildup</b> - Inject Dylovene or Carthatoline. Monitor for damage to the liver or kidneys.<br>"
|
|
if(M.getBruteLoss())
|
|
dat += "<b>Physical Trauma</b> - Bandage the wounded body part. Administer Bicaridine or Vermicetol depending on the severity.<br>"
|
|
if(M.getFireLoss())
|
|
dat += "<b>Burn Wounds</b> - Salve the wounded body part in ointment. Administer Kelotane or Dermaline. Check for infections.<br>"
|
|
if(M.getCloneLoss())
|
|
dat += "<b>Genetic Damage</b> - Utilize cryogenic pod with appropriate chemicals (i.e. Cryoxadone) and below 70 K, or give Rezadone.<br>"
|
|
if(bone)
|
|
dat += "<b>Bone Fracture</b> - Splint the fractured limb. Commence a bone repair operation or administer Osteodaxon after treating the physical trauma.<br>"
|
|
if(M.virus2.len)
|
|
dat += "<b>Viral Infection</b> - Inform a Virologist or the Chief Medical Officer and administer antiviral chemicals such as Corophizine and Spaceacilin. Limit exposure to other personnel.<br>"
|
|
if(robotparts)
|
|
dat += "<b>Robotic Body Parts</b> - Inform the Robotics department."
|
|
|
|
var/peeb
|
|
if(dat)
|
|
peeb +="<span class='notice'><b>GUIDANCE SYSTEM BEGIN</b></span><br>"
|
|
peeb += dat
|
|
peeb += "<span class='notice'>For more detailed information on the patient's condition, utilize a body scanner at the closest medical bay.</span>"
|
|
|
|
user.show_message(peeb, 1)
|
|
//CHOMPedit end.
|