Generic Augment Customization (#20859)

This PR makes small adjustments to the code for the cyborg analyzer
tool, making it so that it also provides the description given for
augments taken as part of a character's loadout. Additionally, this sets
loadout flags for most generic augments (anything not explicitly tied to
a specific corporation) to allow for custom names and descriptions.

Lastly, I've extended the analyzer in its human-mode to also display
assisted implants. While I can't imagine a machinist would have much to
do with a pacemaker, it is a metal implant. I actually mainly had in
mind that I was annoyed with the positronic brain implant not showing up
on cyborg analyzers, and wanted to correct the injustice.
This commit is contained in:
VMSolidus
2025-06-30 18:03:03 +00:00
committed by GitHub
parent c2a9041a8f
commit 9fd7347f00
3 changed files with 79 additions and 2 deletions
@@ -82,7 +82,7 @@
var/organ_found
if(length(H.internal_organs))
for(var/obj/item/organ/external/E in H.organs)
if(!(E.status & ORGAN_ROBOT))
if(!(E.status & (ORGAN_ROBOT || ORGAN_ASSISTED)))
continue
organ_found = TRUE
to_chat(user, "[E.name]: <span class='warning'>[E.brute_dam]</span> <font color='#FFA500'>[E.burn_dam]</font>")
@@ -97,12 +97,13 @@
if(head?.open == 3) // Hatch open
show_tag = TRUE
for(var/obj/item/organ/O in H.internal_organs)
if(!(O.status & ORGAN_ROBOT))
if(!(O.status & (ORGAN_ROBOT || ORGAN_ASSISTED)))
continue
if(!show_tag && istype(O, /obj/item/organ/internal/ipc_tag))
continue
organ_found = TRUE
to_chat(user, "[O.name]: <span class='warning'>[O.damage]</span>")
to_chat(user, "<i>[O.desc]</i>")
if(!organ_found)
to_chat(user, SPAN_NOTICE("No prosthetics located."))