mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Deduct materials from oreboxes when consumed by redemption machines.
Fixes Redmine #82
This commit is contained in:
@@ -61,7 +61,9 @@
|
||||
var/obj/structure/ore_box/B = locate() in T
|
||||
if(B)
|
||||
for(var/mat_id in B.materials.storage)
|
||||
materials.addAmount(mat_id,B.materials.getAmount(mat_id))
|
||||
var/datum/material/mat = B.materials.getMaterial(mat_id)
|
||||
materials.addAmount(mat_id,mat.stored)
|
||||
mat.stored=0
|
||||
|
||||
/obj/machinery/mineral/ore_redemption/proc/SmeltMineral(var/obj/item/weapon/ore/O)
|
||||
if(O.material)
|
||||
|
||||
Reference in New Issue
Block a user