Notify player when filling full container from sink

This commit is contained in:
FalseIncarnate
2016-03-31 21:12:46 -04:00
parent 0922427c3a
commit 0d440f088a
+7 -3
View File
@@ -79,7 +79,11 @@
/obj/item/weapon/reagent_containers/wash(mob/user, atom/source)
if(is_open_container())
reagents.add_reagent("water", min(volume - reagents.total_volume, amount_per_transfer_from_this))
user << "<span class='notice'>You fill [src] from [source].</span>"
return
if(reagents.total_volume >= volume)
user << "span class='warning'>\The [src] is full.</span>"
return
else
reagents.add_reagent("water", min(volume - reagents.total_volume, amount_per_transfer_from_this))
user << "<span class='notice'>You fill [src] from [source].</span>"
return
..()