[MIRROR] Gets rid of hasvar usage and moves up some vars (#11484)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-23 10:04:52 -07:00
committed by GitHub
parent f3954fdbeb
commit 938e760841
57 changed files with 223 additions and 257 deletions

View File

@@ -196,7 +196,7 @@
/obj/machinery/partslathe/proc/build(var/datum/category_item/partslathe/D)
for(var/M in D.resources)
materials[M] = max(0, materials[M] - CEILING((D.resources[M] * mat_efficiency), 1))
var/obj/new_item = D.build(loc);
var/obj/item/new_item = D.build(loc);
if(new_item)
new_item.loc = loc
if(mat_efficiency < 1) // No matter out of nowhere