Makes borgs GC better. Fixes an antidrop related bug (#17226)

This commit is contained in:
Farie82
2021-12-16 18:45:50 +01:00
committed by GitHub
parent 8001f1ec04
commit d0329f58a7
12 changed files with 102 additions and 81 deletions
+3 -6
View File
@@ -295,15 +295,12 @@
O.job = "Cyborg"
O.cell = chest.cell
var/datum/robot_component/cell_component = O.components["power cell"]
cell_component.install(chest.cell)
chest.cell.forceMove(O)
chest.cell = null
M.forceMove(O) //Should fix cybros run time erroring when blown up. It got deleted before, along with the frame.
// Since we "magically" installed a cell, we also have to update the correct component.
if(O.cell)
var/datum/robot_component/cell_component = O.components["power cell"]
cell_component.wrapped = O.cell
cell_component.installed = 1
O.mmi = W
O.Namepick()