From 0c7357ef14be1a7b934cca3e35e9e5e9e7c8b265 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 4 Apr 2023 19:03:33 +0200 Subject: [PATCH] Update recycling.dm --- code/modules/recycling/recycling.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/recycling/recycling.dm b/code/modules/recycling/recycling.dm index 74e1a307b1..688cfb4ac0 100644 --- a/code/modules/recycling/recycling.dm +++ b/code/modules/recycling/recycling.dm @@ -48,8 +48,6 @@ take_item(A) /obj/machinery/recycling/proc/can_accept_item(obj/item/O) - if(!istype(O,/obj/item/trash))//CHOMPEDIT: Trash only - return FALSE //CHOMPEDIT: Trash only if(stat & (NOPOWER|BROKEN)) return FALSE if(panel_open) @@ -97,13 +95,16 @@ /obj/machinery/recycling/crusher/take_item(obj/item/O) . = ..() + var/trash = 1//CHOMPEDIT: Trash multiplier working = TRUE icon_state = "crusher-process" update_use_power(USE_POWER_ACTIVE) sleep(5 SECONDS) var/list/modified_mats = list() + if(istype(O,/obj/item/trash))//CHOMPEDIT: Trash multiplier + trash = 5 //CHOMPEDIT: Trash good for(var/mat in O.matter) - modified_mats[mat] = O.matter[mat]*effic_factor + modified_mats[mat] = O.matter[mat]*effic_factor*trash//CHOMPEDIT: Trash multiplier new /obj/item/debris_pack(get_step(src, dir), modified_mats) update_use_power(USE_POWER_IDLE) icon_state = "crusher" @@ -151,8 +152,8 @@ /obj/machinery/recycling/sorter/proc/dispense_if_possible() for(var/mat in materials) - while(materials[mat] >= (SHEET_MATERIAL_AMOUNT/10)) //CHOMPEDIT: Lowers the amount needed to make dust - materials[mat] -= (SHEET_MATERIAL_AMOUNT/10) //CHOMPEDIT: Lowers the amount needed to make dust + while(materials[mat] >= (SHEET_MATERIAL_AMOUNT)) + materials[mat] -= (SHEET_MATERIAL_AMOUNT) new /obj/item/material_dust(get_step(src, dir), mat) sleep(2 SECONDS)