mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user