Make stack amount var private

This commit is contained in:
Chompstation Bot
2021-08-26 15:39:04 +00:00
parent 145f8172f4
commit af0d7a0f6b
72 changed files with 935 additions and 287 deletions

View File

@@ -60,7 +60,7 @@
for(var/obj/item/stack/wetleather/WL in I.instances)
if(!WL.wetness)
if(WL.amount)
if(WL.get_amount())
WL.forceMove(get_turf(src))
WL.dry()
I.instances -= WL

View File

@@ -20,7 +20,7 @@
while(count > 0)
var/obj/item/stack/S = I.get_product(get_turf(src), min(count, amount))
count -= S.amount
count -= S.get_amount()
SStgui.update_uis(src)
/obj/machinery/smartfridge/sheets/find_record(var/obj/item/O)