Prevent vape from being emptied if the cap isn't open (#87652)

## About The Pull Request
If the cap isn't open, reagents won't be emptied
## Why It's Good For The Game
It makes no sense and you constantly empty reagents by accident, this
will hopefully prevent this
## Changelog
🆑
fix: e-cigarettes can't be emptied if the cap isn't open
/🆑

Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com>
This commit is contained in:
zoomachina
2024-11-07 07:10:14 +03:00
committed by GitHub
parent 9d97bdeece
commit 9dbdbf7e1f
+3
View File
@@ -949,6 +949,9 @@ CIGARETTE PACKETS ARE IN FANCY.DM
return TRUE
/obj/item/vape/attack_self(mob/user)
if(!screw)
balloon_alert(user, "open the cap first!")
return
if(reagents.total_volume > 0)
to_chat(user, span_notice("You empty [src] of all reagents."))
reagents.clear_reagents()