mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Merge pull request #4342 from 9600bauds/splishsplash
Fixes sinks trying to fill containers past their maximum capacity (#4194)
This commit is contained in:
@@ -423,6 +423,9 @@
|
||||
|
||||
if (istype(O, /obj/item/weapon/reagent_containers))
|
||||
var/obj/item/weapon/reagent_containers/RG = O
|
||||
if(RG.reagents.total_volume >= RG.reagents.maximum_volume)
|
||||
user << "<span class='warning'>[RG] is full.</span>"
|
||||
return
|
||||
RG.reagents.add_reagent("water", min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this))
|
||||
user.visible_message("<span class='notice'>[user] fills the [RG] using \the [src].</span>","<span class='notice'>You fill the [RG] using \the [src].</span>")
|
||||
return
|
||||
@@ -440,8 +443,8 @@
|
||||
else
|
||||
B.deductcharge(1)
|
||||
user.visible_message( \
|
||||
"[user] was stunned by his wet [O].", \
|
||||
"<span class='warning'>You have wet \the [O], it shocks you!</span>")
|
||||
"<span class='warning'>[user] was stunned by \his wet [O.name]!</span>", \
|
||||
"<span class='warning'>You have wet \the [O.name], it shocks you!</span>")
|
||||
return
|
||||
|
||||
if (!isturf(user.loc))
|
||||
|
||||
Reference in New Issue
Block a user