mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Ports use_tool proc from /tg/ (#13411)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
var/accept_drinking = 0
|
||||
var/amount = 30
|
||||
var/list/forbidden_containers = list(/obj/item/reagent_containers/glass/bucket) //For containers we don't want people to shove into the chem machine. Like big-ass buckets.
|
||||
var/list/drink_accepted = list(/obj/item/reagent_containers/food/drinks, /obj/item/reagent_containers/food/condiment) //Allow these cans/glasses/condiment bottles but forbid ACTUAL food.
|
||||
var/list/drink_accepted = list(/obj/item/reagent_containers/food/drinks, /obj/item/reagent_containers/food/condiment) //Allow these cans/glasses/condiment bottles but forbid ACTUAL food.
|
||||
|
||||
idle_power_usage = 100
|
||||
density = 1
|
||||
@@ -71,9 +71,8 @@
|
||||
|
||||
/obj/machinery/chemical_dispenser/attackby(obj/item/W, mob/user)
|
||||
if(W.iswrench())
|
||||
playsound(src.loc, W.usesound, 50, 1)
|
||||
to_chat(user, SPAN_NOTICE("You begin to [anchored ? "un" : ""]fasten [src]."))
|
||||
if (do_after(user, 20))
|
||||
if(W.use_tool(src, user, 20, volume = 50))
|
||||
user.visible_message(
|
||||
SPAN_NOTICE("[user] [anchored ? "un" : ""]fastens [src]."),
|
||||
SPAN_NOTICE("You have [anchored ? "un" : ""]fastened [src]."),
|
||||
|
||||
Reference in New Issue
Block a user