Fixes R&D Materials Exploit (#12608)

This commit is contained in:
Fox McCloud
2019-10-20 12:16:29 -04:00
committed by variableundefined
parent 4d7160b7c5
commit 5b6819ceb5
+2 -1
View File
@@ -357,7 +357,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
submenu = 0
if(linked_lathe) //Also sends salvaged materials to a linked protolathe, if any.
for(var/material in linked_destroy.loaded_item.materials)
linked_lathe.materials.insert_amount(min((linked_lathe.materials.max_amount - linked_lathe.materials.total_amount), (linked_destroy.loaded_item.materials[material]*(linked_destroy.decon_mod/10))), material)
var/can_insert = min(linked_lathe.materials.max_amount - linked_lathe.materials.total_amount, linked_destroy.loaded_item.materials[material] * (linked_destroy.decon_mod / 10), linked_destroy.loaded_item.materials[material])
linked_lathe.materials.insert_amount(can_insert, material)
linked_destroy.loaded_item = null
else
menu = 0