mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
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:
@@ -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."))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user