Skip to content

Commit

Permalink
minitank fix (#8032)
Browse files Browse the repository at this point in the history
# About the pull request

fixes #8005

# Explain why it's good for the game

bug bad


# Testing Photographs and Procedure
used the verb and it didn't show a list of mobs on screen and still did
the things it was supposed to


# Changelog
:cl:
fix: fixed smart minitank flush verb showing a list of all on-screen
mobs
/:cl:
  • Loading branch information
BOBAMAx authored Jan 13, 2025
1 parent 77578b9 commit adff1da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/game/objects/items/reagent_containers/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,17 @@
return
to_chat(user, SPAN_INFO("You successfully refill [A] with [src]!"))

/obj/item/reagent_container/glass/minitank/verb/flush_tank(mob/user)
/obj/item/reagent_container/glass/minitank/verb/flush_tank()
set category = "Object"
set name = "flush tank"
set name = "Flush Tank"
set src in usr

if(usr.is_mob_incapacitated()) return
if(src.reagents.total_volume == 0)
to_chat(user, SPAN_WARNING("It's already empty!"))
to_chat(usr, SPAN_WARNING("It's already empty!"))
return
playsound(src.loc, 'sound/effects/slosh.ogg', 25, 1, 3)
to_chat(user, SPAN_WARNING("You work the flush valve and successfully flush [src]'s contents!"))
to_chat(usr, SPAN_WARNING("You work the flush valve and successfully flush [src]'s contents!"))
reagents.clear_reagents()
update_icon() // just to be sure
return
Expand Down

0 comments on commit adff1da

Please sign in to comment.