From 8ff1fdd907d614463554239b48668d064a3571bd Mon Sep 17 00:00:00 2001 From: Jalleo Date: Wed, 28 Mar 2018 19:39:44 +0100 Subject: [PATCH 1/2] Little fix to RPED (#36610) * Why use a weird proc to check it than set a static list? Yes one is technically more expensive but better maintainability * Changes to what Cyberboss suggested (For performance reasons?) * oranges and Antur make sense with the && False its just a false return instead. * Man I need to read more areas of the codebase that entire proc being modified was not required with my list change...... --- code/modules/research/stock_parts.dm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/modules/research/stock_parts.dm b/code/modules/research/stock_parts.dm index d00b5e3137..459c1a9955 100644 --- a/code/modules/research/stock_parts.dm +++ b/code/modules/research/stock_parts.dm @@ -17,13 +17,17 @@ If you create T5+ please take a pass at gene_modder.dm [L40]. Max_values MUST fi display_contents_with_number = 1 max_w_class = WEIGHT_CLASS_NORMAL max_combined_w_class = 100 + + can_hold = list( + /obj/item/reagent_containers/glass/beaker, + /obj/item/device/assembly/igniter, + /obj/item/stock_parts, + /obj/item/stack/ore/bluespace_crystal) + var/works_from_distance = 0 var/pshoom_or_beepboopblorpzingshadashwoosh = 'sound/items/rped.ogg' var/alt_sound = null -/obj/item/storage/part_replacer/can_be_inserted(obj/item/W, stop_messages = 0, mob/user) - return ..() && W.get_part_rating() - /obj/item/storage/part_replacer/afterattack(obj/machinery/T, mob/living/carbon/human/user, flag, params) if(flag) return