Merge pull request #16106 from sheepishgoat/chem-grinder-change

Chem grinder change
This commit is contained in:
deathride58
2024-10-23 19:22:11 -04:00
committed by GitHub

View File

@@ -13,28 +13,40 @@
. = ..()
AddComponent(/datum/component/plumbing/simple_supply, bolt)
/obj/machinery/plumbing/grinder_chemical/can_be_rotated(mob/user,rotation_type)
/obj/machinery/plumbing/grinder_chemical/examine(mob/user)
. = ..()
. += span_notice("The input direction for this item can be rotated by using CTRL+SHIFT+CLICK")
/obj/machinery/plumbing/grinder_chemical/CtrlShiftClick(mob/user)
if(anchored)
to_chat(user, "<span class='warning'>It is fastened to the floor!</span>")
return FALSE
switch(eat_dir)
if(WEST)
balloon_alert(user, "set to north")
eat_dir = NORTH
return TRUE
if(EAST)
balloon_alert(user, "set to south")
eat_dir = SOUTH
return TRUE
if(NORTH)
balloon_alert(user, "set to east")
eat_dir = EAST
return TRUE
if(SOUTH)
balloon_alert(user, "set to west")
eat_dir = WEST
return TRUE
return TRUE
/obj/machinery/plumbing/grinder_chemical/CanAllowThrough(atom/movable/AM)
. = ..()
if(!anchored)
return
var/move_dir = get_dir(loc, AM.loc)
if(move_dir == eat_dir)
return TRUE
@@ -61,4 +73,8 @@
return
I.on_grind()
reagents.add_reagent_list(I.grind_results)
if(I.reagents) //If the thing has any reagents inside of it, grind them up.
I.reagents.trans_to(reagents, I.reagents.total_volume)
qdel(I)