Adds installing cells as part of mech construction and fixes some mech construction bugs. (#30942)

* spawn_mecha_result() code

Function that places the cell from construction from the holder into the new mech, and check and applies scanning module/capacitor upgrades for combat mechs

* New holder icons

No change made to the new sprites as of current.

* New ripley construction code

* New gygax construction code

* New fireripley construction code

* New honker construction code

* New durand construction code

* New phazon construction code

* New odysseus construction code

* Cyberboss Requested Fixes #1

* Cyberboss Requested Fixes #2

Turns result in mecha_construction_paths to types, also removes result in phazon_chassis as it has no purpose.
changes qdel to QDEL_NULL

* Removes old cell from add_cell() in the Initialize()

* Move CheckParts to obj/mecha and move cell check to CheckParts
This commit is contained in:
GLACoding
2017-09-27 10:13:46 +01:00
committed by AnturK
parent d8bb784037
commit e632dee0de
5 changed files with 510 additions and 317 deletions

View File

@@ -62,6 +62,14 @@
qdel(holder)
return
/datum/construction/proc/spawn_mecha_result()
if(result)
var/obj/mecha/m = new result(get_turf(holder))
var/obj/item/oldcell = locate (/obj/item/stock_parts/cell) in m
QDEL_NULL(oldcell)
m.CheckParts(holder.contents)
QDEL_NULL(holder)
/datum/construction/proc/set_desc(index as num)
var/list/step = steps[index]
holder.desc = step["desc"]