Toilet fixes (#47349)

* Monkey cube toiler fix

* Fingerprints
This commit is contained in:
Arkatos1
2019-10-26 09:41:58 +02:00
committed by Rob Bailey
parent 01865b891e
commit 5b2e71cff6
@@ -85,6 +85,7 @@
..()
/obj/structure/toilet/attackby(obj/item/I, mob/living/user, params)
add_fingerprint(user)
if(I.tool_behaviour == TOOL_CROWBAR)
to_chat(user, "<span class='notice'>You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]...</span>")
playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, TRUE)
@@ -112,6 +113,10 @@
else if(istype(I, /obj/item/reagent_containers))
if (!open)
return
if(istype(I, /obj/item/reagent_containers/food/snacks/monkeycube))
var/obj/item/reagent_containers/food/snacks/monkeycube/cube = I
cube.Expand()
return
var/obj/item/reagent_containers/RG = I
RG.reagents.add_reagent(/datum/reagent/water, min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this))
to_chat(user, "<span class='notice'>You fill [RG] from [src]. Gross.</span>")