Exosuit Fabricator

A machine that allows for the production of exosuits and robotic parts.
Vars | |
allowed_design_types | Bitflags of design types that can be produced. |
---|---|
being_built | The design that is being currently being built. |
build_end | The world.time at which the current design build will end. |
build_queue | The build queue. Lazy list. |
build_start | The world.time at which the current design build started. |
categories | List of categories to display in the UI. Designs intended for each respective category need to have the name in [/datum/design/category]. Defined in [Initialize()][/atom/proc/Initialize]. |
component_coeff | Resource efficiency multiplier. A lower value means less resources consumed. Updated by [CheckParts()][/atom/proc/CheckParts]. |
id | Unused. Ensures backwards compatibility with some maps. |
local_designs | Holds the locally known R&D designs. |
output_dir | Defines what direction this thing spits out it's produced parts |
processing_queue | Whether the queue is currently being processed. |
selected_category | The currently selected category. |
syncing | Whether a R&D sync is currently in progress. |
time_coeff | Production time multiplier. A lower value means faster production. Updated by [CheckParts()][/atom/proc/CheckParts]. |
Procs | |
build_design | Given a design, attempts to build it. |
build_design_timer_finish | Called when the timer for building a design finishes. |
can_afford_design | Returns whether the machine contains enough resources to build the given design. |
can_insert_materials | Returns whether the machine can accept new materials. |
get_design_build_time | Calculates the total build time of a design, applying /obj/machinery/mecha_part_fabricator/var/time_coeff. |
get_design_cost | Calculates the total resource cost of a design, applying /obj/machinery/mecha_part_fabricator/var/component_coeff. |
on_material_insert | Called by /datum/component/material_container when material sheets are inserted in the machine. |
on_material_insert_timer_finish | Called when the timer after inserting material sheets finishes. |
process_queue | Attempts to build the first item in the queue. |
sync | Syncs the R&D designs from the first /obj/machinery/computer/rdconsole in the area. |
sync_timer_finish | Called when the timer for syncing finishes. |
Var Details
allowed_design_types

Bitflags of design types that can be produced.
being_built

The design that is being currently being built.
build_end

The world.time at which the current design build will end.
build_queue

The build queue. Lazy list.
build_start

The world.time at which the current design build started.
categories

List of categories to display in the UI. Designs intended for each respective category need to have the name in [/datum/design/category]. Defined in [Initialize()][/atom/proc/Initialize].
component_coeff

Resource efficiency multiplier. A lower value means less resources consumed. Updated by [CheckParts()][/atom/proc/CheckParts].
id

Unused. Ensures backwards compatibility with some maps.
local_designs

Holds the locally known R&D designs.
output_dir

Defines what direction this thing spits out it's produced parts
processing_queue

Whether the queue is currently being processed.
selected_category

The currently selected category.
syncing

Whether a R&D sync is currently in progress.
time_coeff

Production time multiplier. A lower value means faster production. Updated by [CheckParts()][/atom/proc/CheckParts].
Proc Details
build_design
Given a design, attempts to build it.
Arguments:
- D - The design to build.
build_design_timer_finish
Called when the timer for building a design finishes.
Arguments:
- D - The design being built.
- final_cost - The materials consumed during the build.
can_afford_design
Returns whether the machine contains enough resources to build the given design.
Arguments:
- D - The design to check.
can_insert_materials
Returns whether the machine can accept new materials.
get_design_build_time
Calculates the total build time of a design, applying /obj/machinery/mecha_part_fabricator/var/time_coeff.
Arguments:
- D - The design whose build time to calculate.
get_design_cost
Calculates the total resource cost of a design, applying /obj/machinery/mecha_part_fabricator/var/component_coeff.
Arguments:
- D - The design whose cost to calculate.
on_material_insert
Called by /datum/component/material_container when material sheets are inserted in the machine.
Arguments:
- type_inserted - The material type.
- id_inserted - The material ID.
- amount_inserted - The amount of sheets inserted.
on_material_insert_timer_finish
Called when the timer after inserting material sheets finishes.
process_queue
Attempts to build the first item in the queue.
sync
Syncs the R&D designs from the first /obj/machinery/computer/rdconsole in the area.
sync_timer_finish
Called when the timer for syncing finishes.