mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-17 20:47:29 +00:00
Refactors base construction consoles to be generic instead of only being meant for building the aux shuttle. The current aux base construction console behaves the exact same. This PR is A step towards minichem, as I'll be using base construction code in it pretty heavily. More information about the whole minichem thing in this design doc In terms of player-facing changes, this PR has made possible a neat admin-only base construction console that can be used to construct things anywhere on the z level. Why It's Good For The Game The current base construction console code was snowflakey and didn't follow particularly great coding practices. This fixes that and provides a solid foundation for future work.
17 lines
854 B
Plaintext
17 lines
854 B
Plaintext
///admin-only base consturctino console subtype for building anywhere!
|
|
/obj/machinery/computer/camera_advanced/base_construction/centcom
|
|
name = "centcom base construction console"
|
|
circuit = /obj/item/circuitboard/computer/base_construction/centcom
|
|
|
|
/obj/machinery/computer/camera_advanced/base_construction/centcom/Initialize(mapload)
|
|
internal_rcd = new(src)
|
|
return ..()
|
|
|
|
/obj/machinery/computer/camera_advanced/base_construction/centcom/restock_materials()
|
|
internal_rcd.matter = internal_rcd.max_matter
|
|
|
|
/obj/machinery/computer/camera_advanced/base_construction/centcom/populate_actions_list()
|
|
construction_actions = list()
|
|
construction_actions.Add(new /datum/action/innate/construction/switch_mode())//Action for switching the RCD's build modes
|
|
construction_actions.Add(new /datum/action/innate/construction/build()) //Action for using the RCD
|