Biogenerator (#30694)

* biogenerator

* ack

* test success!

* fix tests

* increase price of reagents
This commit is contained in:
Nemanja
2024-09-08 01:34:22 -04:00
committed by GitHub
parent 6fcb5cf148
commit efe54e011e
9 changed files with 422 additions and 0 deletions

View File

@@ -193,6 +193,23 @@
stackRequirements:
Plasma: 5
- type: entity
id: BiogeneratorMachineCircuitboard
parent: BaseMachineCircuitboard
name: biogenerator machine board
description: A machine printed circuit board for a biogenerator.
components:
- type: Sprite
state: service
- type: MachineBoard
prototype: Biogenerator
stackRequirements:
MatterBin: 2
tagRequirements:
GlassBeaker:
amount: 1
defaultPrototype: Beaker
- type: entity
id: UniformPrinterMachineCircuitboard
parent: BaseMachineCircuitboard

View File

@@ -430,6 +430,7 @@
- ProtolatheMachineCircuitboard
- AutolatheMachineCircuitboard
- CircuitImprinterMachineCircuitboard
- BiogeneratorMachineCircuitboard
- OreProcessorMachineCircuitboard
- ElectrolysisUnitMachineCircuitboard
- CentrifugeMachineCircuitboard
@@ -1150,6 +1151,70 @@
- RawMaterial
- Ingot
- type: entity
id: Biogenerator
parent: BaseLathe
name: biogenerator
description: Converts plants into biomass, which can be used to construct useful items.
components:
- type: Sprite
sprite: Structures/Machines/biofabricator.rsi
snapCardinals: true
layers:
- state: icon
map: ["enum.LatheVisualLayers.IsRunning"]
- state: unlit
shader: unshaded
map: ["enum.PowerDeviceVisualLayers.Powered"]
- state: inserting
map: ["enum.MaterialStorageVisualLayers.Inserting"]
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Machine
board: BiogeneratorMachineCircuitboard
- type: MaterialStorage
insertOnInteract: false
canEjectStoredMaterials: false
- type: ProduceMaterialExtractor
- type: ItemSlots
slots:
beaker_slot:
name: lathe-component-output-slot-beaker-name
whitelist:
components:
- FitsInDispenser
- type: ContainerContainer
containers:
machine_board: !type:Container
machine_parts: !type:Container
beaker_slot: !type:ContainerSlot
- type: Lathe
reagentOutputSlotId: beaker_slot
idleState: icon
runningState: building
staticRecipes:
- BioGenMilk
- BioGenMilkSoy
- BioGenEthanol
- BioGenCream
- BioGenBlackpepper
- BioGenEnzyme
- BioGenFlour
- BioGenSugar
- BioGenMonkeyCube
- BioGenKoboldCube
- BioGenMaterialCloth1
- BioGenMaterialCardboard1
- BioGenPaper
- BioGenPaperRolling1
- BioGenCandle
- BioGenPlantBGone
- BioGenWeedKiller
- BioGenPestKiller
- BioGenLeft4Zed
- BioGenEZNutrient
- BioGenRobustHarvest
- type: entity
parent: BaseLathe
id: OreProcessor

View File

@@ -0,0 +1,232 @@
- type: latheRecipe
id: BioGenMonkeyCube
result: MonkeyCube
category: Food
completetime: 3
materials:
Biomass: 70
- type: latheRecipe
id: BioGenKoboldCube
result: KoboldCube
category: Food
completetime: 3
materials:
Biomass: 70
- type: latheRecipe
id: BioGenMaterialCloth1
result: MaterialCloth1
category: Materials
icon:
sprite: Objects/Materials/materials.rsi
state: cloth
completetime: 1
materials:
Biomass: 10
- type: latheRecipe
id: BioGenMaterialCardboard1
result: MaterialCardboard1
category: Materials
icon:
sprite: Objects/Materials/materials.rsi
state: cardboard
completetime: 1
materials:
Biomass: 5
- type: latheRecipe
id: BioGenPaper
result: Paper
category: Materials
completetime: 1
materials:
Biomass: 2
- type: latheRecipe
id: BioGenPaperRolling1
result: PaperRolling1
category: Materials
completetime: 1
materials:
Biomass: 1
- type: latheRecipe
id: BioGenCandle
result: Candle
category: Materials
completetime: 3
materials:
Biomass: 3
- type: latheRecipe
id: BioGenPlantBGone
resultReagents:
PlantBGone: 10
category: Chemicals
icon:
sprite: Objects/Tools/Hydroponics/sprays.rsi
state: plantbgone
completetime: 1
materials:
Biomass: 12
- type: latheRecipe
id: BioGenWeedKiller
resultReagents:
WeedKiller: 10
category: Chemicals
icon:
sprite: Objects/Tools/Hydroponics/sprays.rsi
state: weedspray
completetime: 1
materials:
Biomass: 8
- type: latheRecipe
id: BioGenPestKiller
resultReagents:
PestKiller: 10
category: Chemicals
icon:
sprite: Objects/Tools/Hydroponics/sprays.rsi
state: weedspray
completetime: 1
materials:
Biomass: 12
- type: latheRecipe
id: BioGenLeft4Zed
resultReagents:
Left4Zed: 10
category: Chemicals
icon:
sprite: Objects/Specific/Chemistry/bottle.rsi
state: bottle-1
completetime: 1
materials:
Biomass: 12
- type: latheRecipe
id: BioGenEZNutrient
resultReagents:
EZNutrient: 10
category: Chemicals
icon:
sprite: Objects/Specific/Chemistry/bottle.rsi
state: bottle-1
completetime: 1
materials:
Biomass: 15
- type: latheRecipe
id: BioGenRobustHarvest
resultReagents:
RobustHarvest: 10
category: Chemicals
icon:
sprite: Objects/Specific/Chemistry/bottle.rsi
state: bottle-1
completetime: 1
materials:
Biomass: 15
- type: latheRecipe
id: BioGenMilk
resultReagents:
Milk: 10
category: Food
icon:
sprite: Objects/Consumable/Drinks/milk.rsi
state: icon
completetime: 1
materials:
Biomass: 12
- type: latheRecipe
id: BioGenMilkSoy
resultReagents:
MilkSoy: 10
category: Food
icon:
sprite: Objects/Consumable/Drinks/soymilk.rsi
state: icon
completetime: 1
materials:
Biomass: 12
- type: latheRecipe
id: BioGenEthanol
resultReagents:
Ethanol: 10
category: Food
icon:
sprite: Objects/Consumable/Drinks/glass_clear.rsi
state: icon
completetime: 1
materials:
Biomass: 18
- type: latheRecipe
id: BioGenCream
resultReagents:
Cream: 10
category: Food
icon:
sprite: Objects/Consumable/Drinks/cream.rsi
state: icon
completetime: 1
materials:
Biomass: 18
- type: latheRecipe
id: BioGenBlackpepper
resultReagents:
Blackpepper: 10
category: Food
icon:
sprite: Objects/Consumable/Food/condiments.rsi
state: packet-pepper
completetime: 1
materials:
Biomass: 18
- type: latheRecipe
id: BioGenEnzyme
resultReagents:
Enzyme: 10
category: Food
icon:
sprite: Objects/Consumable/Food/condiments.rsi
state: bottle-empty
completetime: 1
materials:
Biomass: 18
- type: latheRecipe
id: BioGenFlour
resultReagents:
Flour: 10
category: Food
icon:
sprite: Objects/Consumable/Food/ingredients.rsi
state: flour-big
completetime: 1
materials:
Biomass: 18
- type: latheRecipe
id: BioGenSugar
resultReagents:
Sugar: 10
category: Food
icon:
sprite: Objects/Consumable/Food/ingredients.rsi
state: sugar-big
completetime: 1
materials:
Biomass: 18

View File

@@ -29,3 +29,17 @@
- type: latheCategory
id: Weapons
name: lathe-category-weapons
# Biogen
- type: latheCategory
id: Food
name: lathe-category-food
- type: latheCategory
id: Chemicals
name: lathe-category-chemicals
- type: latheCategory
id: Materials
name: lathe-category-materials

View File

@@ -309,6 +309,15 @@
Steel: 100
Glass: 500
- type: latheRecipe
id: BiogeneratorMachineCircuitboard
result: BiogeneratorMachineCircuitboard
category: Circuitry
completetime: 4
materials:
Steel: 100
Glass: 500
- type: latheRecipe
id: VaccinatorMachineCircuitboard
result: VaccinatorMachineCircuitboard