powder that makes you say yes

This commit is contained in:
Nadyr
2021-12-05 11:09:45 -05:00
committed by GitHub
parent ace233ac5d
commit 1e810da2d5
@@ -17,9 +17,11 @@
var/amount = I.get_amount()
if(amount < 1)
return
count = min(count, amount)
while(count > 0)
var/obj/item/stack/S = I.get_product(get_turf(src), min(count, amount))
var/obj/item/stack/S = I.get_product(get_turf(src), count)
count -= S.get_amount()
SStgui.update_uis(src)
@@ -27,4 +29,4 @@
for(var/datum/stored_item/stack/I as anything in item_records)
if(istype(O, I.item_path)) // Typecheck should evaluate material-specific subtype
return I
return null
return null