Skip to content

Commit

Permalink
[MIRROR] Fix mechs not being scannable by analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SuhEugene committed Dec 21, 2023
1 parent a3029d2 commit 14eed8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
12 changes: 0 additions & 12 deletions code/modules/mechs/mech_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -448,18 +448,6 @@
)
return TRUE

// Robot Analyzer - Scan mech
if (istype(tool, /obj/item/device/robotanalyzer))
user.visible_message(
SPAN_NOTICE("\The [user] scans \the [src] with \a [tool]."),
SPAN_NOTICE("You scan \the [src] with \the [tool].")
)
to_chat(user, SPAN_INFO("Diagnostic Report for \the [src]:"))
for (var/obj/item/mech_component/component in list(arms, legs, body, head))
if (component)
component.return_diagnostics(user)
return TRUE

// Screwdriver - Remove cell
if (isScrewdriver(tool))
if (!maintenance_protocols)
Expand Down
9 changes: 9 additions & 0 deletions code/modules/mob/living/silicon/robot/analyzer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
scan_type = "robot"
else if(istype(M, /mob/living/carbon/human))
scan_type = "prosthetics"
else if (istype(M, /mob/living/exosuit))
scan_type = "exosuit"
else
to_chat(user, SPAN_WARNING("You can't analyze non-robotic things!"))
return
Expand Down Expand Up @@ -110,6 +112,13 @@
if(!organ_found)
to_chat(user, "No prosthetics located.")

if ("exosuit")
var/mob/living/exosuit/mech = M
to_chat(user, SPAN_INFO("Diagnostic Report for \the [M]:"))
for (var/obj/item/mech_component/component in list(mech.arms, mech.legs, mech.body, mech.head))
if (component)
component.return_diagnostics(user)

playsound(user,'sound/effects/scanbeep.ogg', 30)
return

Expand Down

0 comments on commit 14eed8b

Please sign in to comment.