mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 05:17:38 +01:00
Exosuit Nuclear Power Cores (#18268)
* Added power cores, a type of large battery cell that get used by exosuits. The nuclear and phoron variants are self-charging. * Combat mechs now start with nuclear power cores, allowing them to sustain themselves indefinitely, so long as they stay out of the action for a bit. * Removed basic power cells from the mechfab, replaced with the mech powercores. * Mech cell statuses now instantly update as soon as the cell charges or discharges. * Added a stack of 10 uranium to the machinist's workshop, which can print two nuclear power cores.
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
|
||||
var/mech_health = 600
|
||||
var/obj/item/robot_parts/robot_component/diagnosis_unit/diagnostics
|
||||
var/obj/item/cell/cell
|
||||
var/obj/item/cell/mecha/cell
|
||||
var/cell_type = /obj/item/cell/mecha
|
||||
var/obj/item/robot_parts/robot_component/armor/mech_armor
|
||||
var/obj/machinery/portable_atmospherics/canister/air_supply
|
||||
var/datum/gas_mixture/cockpit
|
||||
@@ -120,8 +121,9 @@
|
||||
|
||||
/obj/item/mech_component/chassis/prebuild()
|
||||
diagnostics = new(src)
|
||||
cell = new /obj/item/cell/mecha(src)
|
||||
cell.charge = cell.maxcharge
|
||||
if(cell_type)
|
||||
cell = new cell_type(src)
|
||||
cell.charge = cell.maxcharge
|
||||
|
||||
/obj/item/mech_component/chassis/attackby(obj/item/attacking_item, mob/user)
|
||||
if(istype(attacking_item, /obj/item/robot_parts/robot_component/diagnosis_unit))
|
||||
|
||||
Reference in New Issue
Block a user