mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 12:47:16 +01:00
powder that makes you say yes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user