Skip to content

Commit

Permalink
Don't show "contents of [bottle] smash all over [target]" message if …
Browse files Browse the repository at this point in the history
…bottles are empty (#4819)
  • Loading branch information
du-top authored Oct 27, 2023
1 parent facbc78 commit 2f3610c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
..()

if(bottle_thrower_intent != I_HELP)
if(reagents)
if(reagents && reagents.total_volume)
hit_atom.visible_message(SPAN_NOTICE("The contents of \the [src] splash all over [hit_atom]!"))
reagents.splash(hit_atom, reagents.total_volume)
src.smash(loc, hit_atom)
Expand Down Expand Up @@ -160,7 +160,7 @@
user.visible_message(SPAN_DANGER("\The [user] smashes [src] into [target]!"))

//The reagents in the bottle splash all over the target, thanks for the idea Nodrak
if(reagents)
if(reagents && reagents.total_volume)
user.visible_message(SPAN_NOTICE("The contents of \the [src] splash all over [target]!"))
reagents.splash(target, reagents.total_volume)

Expand Down

0 comments on commit 2f3610c

Please sign in to comment.