mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 22:22:31 +00:00
refactors washing items
fixes #3570 Could have fixed with another if statement in sink/attackby, but it was already pretty snowflakey, and had the potential to get worse Items now have a wash proc that the sink calls, that can be overridden when needed
This commit is contained in:
@@ -71,4 +71,11 @@
|
||||
for (var/datum/reagent/R in snack.reagents.reagent_list) //no reagents will be left behind
|
||||
data += "[R.id]([R.volume] units); " //Using IDs because SOME chemicals(I'm looking at you, chlorhydrate-beer) have the same names as other chemicals.
|
||||
return data
|
||||
else return "No reagents"
|
||||
else return "No reagents"
|
||||
|
||||
/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
|
||||
..()
|
||||
Reference in New Issue
Block a user