yaba daba doo

This commit is contained in:
VerySoft
2023-07-04 19:11:09 -04:00
parent eabbb90d72
commit d59c97e568
6 changed files with 24 additions and 7 deletions
@@ -1,15 +1,15 @@
/obj/item/device/healthanalyzer
var/guide = FALSE
/obj/item/device/healthanalyzer/verb/toggle_guide()
name = "Toggle Guidance"
desc = "Toggles whether or not \the [src] will provide guidance and instruction in addition to scanning."
guide = !guide
to_chat(usr, "<span class='notice'>You toggle \the [src]'s guidance system.</span>")
/obj/item/device/healthanalyzer/guide
name = "Instructional health analyzer"
desc = "It shows extra information to medical personel!"
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)
@@ -23,7 +23,7 @@
playsound(src, 'sound/effects/pop.ogg', 50, FALSE)
else
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
return
if(!ishuman(M))
return
@@ -68,7 +68,7 @@
if(infection)
dat += "<b>Infection</b> - Give Spaceacilin. If severe, overdose on Spaceacilin and monitor until well.<br>"
if((M.getBrainLoss() >= 1 && advscan >= 2 && showadvscan == 1) || M.getBrainLoss() >= 10)
dat += "<b>Brain damage</b> - Commence brain repair surgery, apply Alkysine, or universal organ-repair chemicals. (i.e. Peridaxon)<br>"
dat += "<b>Brain damage</b> - Commence brain repair surgery, apply Alkysine, or universal organ-repair chemicals. (i.e. Peridaxon)<br>"
if(M.radiation || M.accumulated_rads)
dat += "<b>Radiation</b> - Give Hyroanlin or Arithazine. Monitor for genetic damage.<br>"
if(organ && (advscan >= 1 && showadvscan == 1))
@@ -15,12 +15,20 @@
var/mode = 1;
var/advscan = 0
var/showadvscan = 1
var/guide = FALSE
/obj/item/device/healthanalyzer/New()
if(advscan >= 1)
verbs += /obj/item/device/healthanalyzer/proc/toggle_adv
..()
/obj/item/device/healthanalyzer/examine(mob/user)
. = ..()
if(guide)
. += "<span class='notice'>Guidance is currently enabled.</span>"
else
. += "<span class='notice'>Guidance is currently disabled.</span>"
/obj/item/device/healthanalyzer/do_surgery(mob/living/M, mob/living/user)
if(user.a_intent != I_HELP) //in case it is ever used as a surgery tool
return ..()
@@ -344,4 +352,4 @@
origin_tech = list(TECH_MAGNET = 7, TECH_BIO = 8)
icon_state = "health3"
#undef DEFIB_TIME_LIMIT //VOREStation addition
#undef DEFIB_TIME_LIMIT //VOREStation addition