mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user