Limit robot part appearance choice list to valid ones. (#32085)

* Limit robot part appearance choice list to valid ones.

* Include appearance customization surgery.

* Apply suggestion from review.

* Revert "Apply suggestion from review."

This reverts commit 29fe67e4c5.

* Migrate robot parts to the new attack chain.

* Call parent in /obj/item/robot_parts/activate_self().

* Apply suggestions from CRUNCH review.

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
Alan
2026-07-01 19:13:30 -04:00
committed by GitHub
parent 4c7e65d7b2
commit 7512a0b4f8
2 changed files with 119 additions and 86 deletions
+6 -1
View File
@@ -716,7 +716,12 @@
return ..()
/datum/surgery_step/robotics/external/customize_appearance/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery)
var/chosen_appearance = tgui_input_list(user, "Select the company appearance for this limb.", "Limb Company Selection", GLOB.all_robolimbs)
var/possible_robolimbs = list()
for(var/robolimb in GLOB.all_robolimbs)
var/datum/robolimb/robopart = GLOB.all_robolimbs[robolimb]
if(target_zone in robopart.parts)
possible_robolimbs += robolimb
var/chosen_appearance = tgui_input_list(user, "Select the company appearance for this limb.", "Limb Company Selection", possible_robolimbs)
if(!chosen_appearance)
return SURGERY_STEP_INCOMPLETE
var/obj/item/organ/external/affected = target.get_organ(target_zone)