From 270f73671ee0e1df0ee166377ea31c17adb69c79 Mon Sep 17 00:00:00 2001 From: Qustinnus Date: Wed, 9 Oct 2019 20:10:55 +0200 Subject: [PATCH] fixes mats (#46994) --- code/game/mecha/mech_fabricator.dm | 1 + code/game/objects/items/stacks/stack.dm | 2 +- code/modules/research/machinery/_production.dm | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index e7612910403..33bf3132c4f 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -156,6 +156,7 @@ var/location = get_step(src,(dir)) var/obj/item/I = new D.build_path(location) + I.material_flags |= MATERIAL_NO_EFFECTS //Find a better way to do this. I.set_custom_materials(res_coef) say("\The [I] is complete.") being_built = null diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index 4f20bd151f6..bbad31be950 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -13,7 +13,7 @@ /obj/item/stack icon = 'icons/obj/stack_objects.dmi' gender = PLURAL - material_modifier = 0.1 + material_modifier = 0.01 var/list/datum/stack_recipe/recipes var/singular_name var/amount = 1 diff --git a/code/modules/research/machinery/_production.dm b/code/modules/research/machinery/_production.dm index 9e6827e8789..c4b92bb324f 100644 --- a/code/modules/research/machinery/_production.dm +++ b/code/modules/research/machinery/_production.dm @@ -88,8 +88,8 @@ for(var/i in 1 to amount) var/obj/item/I = new path(get_turf(src)) if(efficient_with(I.type)) - I.set_custom_materials(matlist.Copy()) I.material_flags |= MATERIAL_NO_EFFECTS //Find a better way to do this. + I.set_custom_materials(matlist.Copy()) SSblackbox.record_feedback("nested tally", "item_printed", amount, list("[type]", "[path]")) /obj/machinery/rnd/production/proc/check_mat(datum/design/being_built, var/mat) // now returns how many times the item can be built with the material