Merge pull request #9333 from Birdtalon/grabbin-pills

Sanity check for pill creation (0u pills)
This commit is contained in:
Crazy Lemon
2018-08-16 10:45:46 -07:00
committed by GitHub
@@ -202,6 +202,9 @@
return
name = reject_bad_text(name)
while(count--)
if(reagents.total_volume <= 0)
to_chat(usr, "<span class='notice'>Not enough reagents to create these pills!</span>")
return
var/obj/item/reagent_containers/food/pill/P = new/obj/item/reagent_containers/food/pill(loc)
if(!name) name = reagents.get_master_reagent_name()
P.name = "[name] pill"