Skip to content

Commit

Permalink
Update reagent_dispensers.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers authored Apr 21, 2024
1 parent 41c42e5 commit cd6fef5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions code/game/objects/structures/reagent_dispensers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,25 @@
if(N)
amount_per_transfer_from_this = N

/obj/structure/reagent_dispensers/clicked(mob/user, list/mods)
if(!Adjacent(user))
return ..()

if(!ishuman(user))
return ..()

if(!reagents || reagents.locked)
return ..()

if(mods["alt"])
dispensing = !dispensing
if(dispensing)
to_chat(usr, SPAN_NOTICE("[src] is now dispensing"))
else
to_chat(usr, SPAN_NOTICE("[src] is now filling"))
return TRUE
. = ..()

/obj/structure/reagent_dispensers/attackby(obj/item/hit_item, mob/living/user)
if(istype(hit_item, /obj/item/reagent_container))
return
Expand Down

0 comments on commit cd6fef5

Please sign in to comment.