mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
fixes some of the issues of the createanddestroy unit test (#7648)
* send help * polychromic createanddestroy fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user