small runtime fixy and sorter buff

This commit is contained in:
Verkister
2023-04-06 02:03:18 +03:00
parent c9bff65518
commit fbf6c88f42
2 changed files with 8 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
active_power_usage = 500
density = TRUE
anchored = TRUE
var/working = FALSE
var/negative_dir = null //VOREStation Addition
@@ -22,7 +22,7 @@
/obj/machinery/recycling/attackby(obj/item/O, mob/user)
if(!isliving(user) || !Adjacent(user))
return
if(working)
to_chat("<span class='warning'>\The [src] is busy! Wait until it's idle.</span>")
return
@@ -33,7 +33,7 @@
return
if(default_part_replacement(user, O))
return
var/mob/living/M = user
if(can_accept_item(O))
M.drop_from_inventory(O)
@@ -135,7 +135,7 @@
working = TRUE
icon_state = "sorter-process"
update_use_power(USE_POWER_ACTIVE)
sleep(5 SECONDS)
sleep(2 SECONDS) //CHOMPEdit
sort_item(O)
dispense_if_possible()
update_use_power(USE_POWER_IDLE)
@@ -193,7 +193,7 @@
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
warning("Dust in [src] had material_name [D.material_name], which can't be made into stacks")
return
var/stacktype = M.stack_type
var/turf/T = get_step(src, dir)
var/obj/item/stack/S = locate(stacktype) in T