fixes some of the issues of the createanddestroy unit test (#7648)

* send help

* polychromic createanddestroy fix
This commit is contained in:
jjpark-kb
2021-08-20 23:23:23 -04:00
committed by GitHub
parent c8a695ebfc
commit 6dfd617177
59 changed files with 76 additions and 66 deletions
@@ -64,10 +64,10 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa
inside_robot = TRUE
else if(start_with_cell)
var/obj/item/stock_parts/cell/new_cell
if(cell_override)
new_cell = new cell_override()
else
if(!cell_override)
new_cell = new /obj/item/stock_parts/cell/upgraded()
else
new_cell = new cell_override()
inserted_cell = new_cell
new_cell.forceMove(parent) //We use the parents location so things like EMP's can interact with the cell.
handle_cell_overlays()