biogenerator ![code/modules/hydroponics/biogenerator.dm 6](git.png)
Vars | |
beaker | The reagent container that is currently inside of the biomass generator. Can be null. |
---|---|
biomass | The amount of biomass that's currently stored in the biogenerator. |
current_item_count | The current amount of items that can be converted into biomass that the biogenerator is holding. |
efficiency | The amount by which the biomass consumption will be divided. |
max_items | The maximum amount of items the biogenerator can hold for biomass conversion purposes. |
max_output | The maximum amount of reagents that the biogenerator can output to a container at once. |
max_visual_biomass | The maximum amount of biomass that will affect the visuals of the biogenerator. |
processed_items_per_cycle | The amount of items that will be converted into biomass per processing cycle. |
processing | Whether the biogenerator is currently processing biomass or not. |
productivity | The conversion factor for nutrient to biomass, and the amount of additional items that will be processed at once per cycle. |
selected_cat | The category that's currently selected in the UI. |
show_categories | The different visual categories for the biogenerator, for the tabs. |
soundloop | The sound loop that can be heard when the generator is processing. |
stored_research | The research that is stored within this biogenerator. |
welded_down | Whether the biogen is welded down to the floor disabling unwrenching |
Procs | |
convert_to_biomass | Simple helper proc that converts the given food item into biomass for the generator,
while also handling removing it and modifying the current_item_count . |
start_process | Activates biomass processing and converts all inserted food products into biomass |
stop_process | Simple helper to handle stopping the process of the biogenerator. |
Var Details
beaker ![code/modules/hydroponics/biogenerator.dm 18](git.png)
The reagent container that is currently inside of the biomass generator. Can be null.
biomass ![code/modules/hydroponics/biogenerator.dm 20](git.png)
The amount of biomass that's currently stored in the biogenerator.
current_item_count ![code/modules/hydroponics/biogenerator.dm 30](git.png)
The current amount of items that can be converted into biomass that the biogenerator is holding.
efficiency ![code/modules/hydroponics/biogenerator.dm 22](git.png)
The amount by which the biomass consumption will be divided.
max_items ![code/modules/hydroponics/biogenerator.dm 28](git.png)
The maximum amount of items the biogenerator can hold for biomass conversion purposes.
max_output ![code/modules/hydroponics/biogenerator.dm 34](git.png)
The maximum amount of reagents that the biogenerator can output to a container at once.
max_visual_biomass ![code/modules/hydroponics/biogenerator.dm 32](git.png)
The maximum amount of biomass that will affect the visuals of the biogenerator.
processed_items_per_cycle ![code/modules/hydroponics/biogenerator.dm 26](git.png)
The amount of items that will be converted into biomass per processing cycle.
processing ![code/modules/hydroponics/biogenerator.dm 16](git.png)
Whether the biogenerator is currently processing biomass or not.
productivity ![code/modules/hydroponics/biogenerator.dm 24](git.png)
The conversion factor for nutrient to biomass, and the amount of additional items that will be processed at once per cycle.
selected_cat ![code/modules/hydroponics/biogenerator.dm 44](git.png)
The category that's currently selected in the UI.
show_categories ![code/modules/hydroponics/biogenerator.dm 38](git.png)
The different visual categories for the biogenerator, for the tabs.
soundloop ![code/modules/hydroponics/biogenerator.dm 46](git.png)
The sound loop that can be heard when the generator is processing.
stored_research ![code/modules/hydroponics/biogenerator.dm 36](git.png)
The research that is stored within this biogenerator.
welded_down ![code/modules/hydroponics/biogenerator.dm 48](git.png)
Whether the biogen is welded down to the floor disabling unwrenching
Proc Details
convert_to_biomass
Simple helper proc that converts the given food item into biomass for the generator,
while also handling removing it and modifying the current_item_count
.
Arguments:
- food_to_convert - The food item that will be converted into biomass and subsequently be deleted.
start_process
Activates biomass processing and converts all inserted food products into biomass
stop_process
Simple helper to handle stopping the process of the biogenerator.
Arguments:
- update_appearance - Whether or not we call
update_appearance()
here. Defaults toTRUE
.