Space Station 13 - Modules - TypesVar Details - Proc Details

biogenerator

Vars

biomassThe amount of biomass stored in the machine.
categoriesThe /datum/design's categories which can be produced by this machine and can be uploaded via a disk.
containerThe container that is used to store reagents from certain products.
efficiencyUsed to modify the cost of producing items. A higher number means cheaper costs.
filesA reference to the biogenerator's research, which contains designs that it can build.
max_storable_plantsThe maximum amount of plants the biogenerator can store.
processingIs the biogenerator curretly grinding up plants?
product_listA list which holds all categories and items the biogenator has available. Used with the UI to save having to rebuild this every time someone opens it.
productivityUsed to modify how much biomass is produced by grinding plants. A higher number means more biomass.
stored_plantsA list of plants currently stored plants in the biogenerator.

Procs

check_container_volumeCheck if the biogenerator's container can hold the reagents we're trying to give it.
check_costCheck if the biogenerator has enough biomass to create the passed in design D, times the mutiplier.
create_productCreate biogenerator products and subtracts the appropriate biomass cost.
detach_containerDetach the container from the biogenerator.
eject_plantsEjects the biogenerator's stored plants
process_plantsTells the biogenerator to grind up any stored plants, and produce an appropriate amount of biomass.
update_ui_product_listBuilds/Updates the product_list used by the UI.

Var Details

biomass

The amount of biomass stored in the machine.

categories

The /datum/design's categories which can be produced by this machine and can be uploaded via a disk.

container

The container that is used to store reagents from certain products.

efficiency

Used to modify the cost of producing items. A higher number means cheaper costs.

files

A reference to the biogenerator's research, which contains designs that it can build.

max_storable_plants

The maximum amount of plants the biogenerator can store.

processing

Is the biogenerator curretly grinding up plants?

product_list

A list which holds all categories and items the biogenator has available. Used with the UI to save having to rebuild this every time someone opens it.

productivity

Used to modify how much biomass is produced by grinding plants. A higher number means more biomass.

stored_plants

A list of plants currently stored plants in the biogenerator.

Proc Details

check_container_volume

Check if the biogenerator's container can hold the reagents we're trying to give it.

Arguments:

check_cost

Check if the biogenerator has enough biomass to create the passed in design D, times the mutiplier.

Arguments:

create_product

Create biogenerator products and subtracts the appropriate biomass cost.

Arguments:

detach_container

Detach the container from the biogenerator.

eject_plants

Ejects the biogenerator's stored plants

process_plants

Tells the biogenerator to grind up any stored plants, and produce an appropriate amount of biomass.

Argumens:

update_ui_product_list

Builds/Updates the product_list used by the UI.