mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user