mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
small runtime fixy and sorter buff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -89,8 +89,9 @@
|
||||
else
|
||||
A.SpinAnimation(5,3)
|
||||
spawn(15)
|
||||
A.forceMove(src)
|
||||
qdel(A)
|
||||
if(A)
|
||||
A.forceMove(src)
|
||||
qdel(A)
|
||||
items_taken++
|
||||
if(items_taken >= voracity)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user