Files
Aurora.3/code/modules/psionics/abilities/skinsight.dm
T
Casper3667andGitHub 95dac4990d Updates the health analyzer to use TGUI (#22421)
- rscadd: "Health analyzers now use a TGUI instead of outputting to the
chat."
- rscadd: "The handheld health analyzer now take 1.5 seconds to scan a
person."
- rscadd: "It is now possible to pull up the last scan on the handheld
health analyzer."
- rscdel: "It is no longer possible to switch limb mode on the handheld
health analyzer."

Beyond the above, device levels were added, primarily as a concept
though it is not implemented in full, so all the ingame health analyzers
still show the same data as before.

<img width="520" height="620" alt="image"
src="https://github.com/user-attachments/assets/b718300b-b377-4e1f-82ab-4d4d73560e34"
/>
<img width="520" height="620" alt="image"
src="https://github.com/user-attachments/assets/cbe2236e-4eca-4ab1-9dea-9fc058933e0f"
/>
<img width="520" height="620" alt="image"
src="https://github.com/user-attachments/assets/84010edb-867e-4062-a6ec-d2629e2fa625"
/>
<img width="520" height="620" alt="image"
src="https://github.com/user-attachments/assets/8b1b85d4-3a53-46c3-b63e-1e78d5797176"
/>
2026-05-18 21:46:09 +00:00

76 lines
2.8 KiB
Plaintext

/singleton/psionic_power/skinsight
name = "Skinsight"
desc = "Get information on a creature's vitals. Activate in your hand to switch between a normal mode or a slower, more detailed mode. Note that the body scan mode \
is not 100% accurate with the numbers given."
icon_state = "wiz_blind"
point_cost = 1
ability_flags = PSI_FLAG_EVENT|PSI_FLAG_CANON
spell_path = /obj/item/spell/skinsight
/obj/item/spell/skinsight
name = "skinsight"
desc = "A health analyzer, but cooler."
icon_state = "blink"
item_icons = null
cast_methods = CAST_MELEE|CAST_USE
aspect = ASPECT_PSIONIC
cooldown = 10
psi_cost = 10
var/body_scan_mode = FALSE
/obj/item/spell/skinsight/Initialize()
. = ..()
src.LoadComponent(/datum/component/health_analyzer)
/obj/item/spell/skinsight/on_use_cast(mob/user)
. = ..()
body_scan_mode = !body_scan_mode
if(body_scan_mode)
psi_cost = 30
to_chat(user, SPAN_NOTICE("You will now use more psionic energy for a more detailed readout."))
else
psi_cost = 10
to_chat(user, SPAN_NOTICE("You will now use less psionic energy for a more standard readout."))
/obj/item/spell/skinsight/on_melee_cast(atom/hit_atom, mob/living/user, def_zone)
if(!ishuman(hit_atom))
return
var/mob/living/carbon/human/target = hit_atom
if(!target.has_zona_bovinae())
to_chat(user, SPAN_WARNING("Psionic power cannot flow through this being."))
return
if(!isliving(user))
return
if(target.stat == DEAD)
to_chat(user, SPAN_WARNING("The total lack of psionic energy flowing through this person can only mean one thing: they are dead."))
return
. = ..()
if(!.)
return
if(!body_scan_mode)
user.visible_message(SPAN_NOTICE("[user] passes [user.get_pronoun("his")] hand over [target]."), SPAN_NOTICE("You pass your hand over [target]."))
var/datum/component/health_analyzer/h_analyzer = src.GetComponent(/datum/component/health_analyzer)
if(!h_analyzer)
return
h_analyzer.health_scan_mob(target, user, TRUE, TRUE)
else
user.visible_message(SPAN_NOTICE("[user] slowly passes [user.get_pronoun("his")] hand over [target]..."),
SPAN_NOTICE("You slowly pass your hand over [target]..."))
if(do_mob(user, target, 10 SECONDS))
for(var/obj/item/organ/internal/I in target.internal_organs)
if(I.is_bruised())
to_chat(user, SPAN_WARNING("You notice some irregularity in the psionic flow through their [I]."))
if(I.is_broken())
to_chat(user, SPAN_WARNING("Your psionic flow through their [I] is <b>highly irregular</b>."))
if(I.damage)
to_chat(user, SPAN_WARNING("You are sure there is some damage in their [I]."))
var/pulse = target.get_pulse()
to_chat(user, SPAN_NOTICE("Their pulse is [pulse]."))
var/oxygenation = max(min(target.get_blood_oxygenation() + rand(-10, 10), 100), 0)
to_chat(user, SPAN_NOTICE("Their oxygenation is more or less [oxygenation]%."))