mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 00:22:12 +00:00
Made water-coolers wrenchable.
This commit is contained in:
@@ -228,6 +228,21 @@
|
|||||||
..()
|
..()
|
||||||
reagents.add_reagent("water",500)
|
reagents.add_reagent("water",500)
|
||||||
|
|
||||||
|
/obj/structure/reagent_dispensers/water_cooler/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
|
if (istype(W,/obj/item/weapon/wrench))
|
||||||
|
src.add_fingerprint(user)
|
||||||
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||||
|
if(do_after(user, 20))
|
||||||
|
if(!src) return
|
||||||
|
switch (anchored)
|
||||||
|
if (0)
|
||||||
|
anchored = 1
|
||||||
|
user.visible_message("\The [user] tightens the bolts securing \the [src] to the floor.", "You tighten the bolts securing \the [src] to the floor.")
|
||||||
|
if (1)
|
||||||
|
user.visible_message("\The [user] unfastens the bolts securing \the [src] to the floor.", "You unfasten the bolts securing \the [src] to the floor.")
|
||||||
|
anchored = 0
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
/obj/structure/reagent_dispensers/beerkeg
|
/obj/structure/reagent_dispensers/beerkeg
|
||||||
name = "beer keg"
|
name = "beer keg"
|
||||||
|
|||||||
Reference in New Issue
Block a user