mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Update recycling.dm
This commit is contained in:
@@ -48,8 +48,6 @@
|
|||||||
take_item(A)
|
take_item(A)
|
||||||
|
|
||||||
/obj/machinery/recycling/proc/can_accept_item(obj/item/O)
|
/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))
|
if(stat & (NOPOWER|BROKEN))
|
||||||
return FALSE
|
return FALSE
|
||||||
if(panel_open)
|
if(panel_open)
|
||||||
@@ -97,13 +95,16 @@
|
|||||||
|
|
||||||
/obj/machinery/recycling/crusher/take_item(obj/item/O)
|
/obj/machinery/recycling/crusher/take_item(obj/item/O)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
var/trash = 1//CHOMPEDIT: Trash multiplier
|
||||||
working = TRUE
|
working = TRUE
|
||||||
icon_state = "crusher-process"
|
icon_state = "crusher-process"
|
||||||
update_use_power(USE_POWER_ACTIVE)
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
sleep(5 SECONDS)
|
sleep(5 SECONDS)
|
||||||
var/list/modified_mats = list()
|
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)
|
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)
|
new /obj/item/debris_pack(get_step(src, dir), modified_mats)
|
||||||
update_use_power(USE_POWER_IDLE)
|
update_use_power(USE_POWER_IDLE)
|
||||||
icon_state = "crusher"
|
icon_state = "crusher"
|
||||||
@@ -151,8 +152,8 @@
|
|||||||
|
|
||||||
/obj/machinery/recycling/sorter/proc/dispense_if_possible()
|
/obj/machinery/recycling/sorter/proc/dispense_if_possible()
|
||||||
for(var/mat in materials)
|
for(var/mat in materials)
|
||||||
while(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/10) //CHOMPEDIT: Lowers the amount needed to make dust
|
materials[mat] -= (SHEET_MATERIAL_AMOUNT)
|
||||||
new /obj/item/material_dust(get_step(src, dir), mat)
|
new /obj/item/material_dust(get_step(src, dir), mat)
|
||||||
sleep(2 SECONDS)
|
sleep(2 SECONDS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user