Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TEG flatpacks and put them on the market. #128

Merged
merged 3 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: TegCenter
name: thermo-electric generator
description: A high efficiency generator that uses energy transfer between hot and cold gases to produce electricity.
parent: BaseMachinePowered
parent: [ BaseMachinePowered, ConstructibleMachine ]
placement:
mode: SnapgridCenter
components:
Expand Down Expand Up @@ -100,12 +100,14 @@
guides: [ TEG, Power ]
- type: StealTarget
stealGroup: Teg
- type: Machine
board: TegCenterCircuitboard

- type: entity
id: TegCirculator
name: circulator
description: Passes gas through the thermo-electric generator to exchange heat. Has an inlet and outlet port.
parent: BaseMachine
parent: [ BaseMachine, ConstructibleMachine ]
placement:
mode: SnapgridCenter
components:
Expand Down Expand Up @@ -180,6 +182,8 @@
- type: TegCirculator
- type: StealTarget
stealGroup: Teg
- type: Machine
board: TegCirculatorCircuitboard

- # Spawned by the client-side circulator examine code to indicate the inlet/outlet direction.
type: entity
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- type: cargoProduct
id: EngineTegFlatpack
icon:
sprite: Structures/Power/Generation/teg.rsi
state: static
product: CrateEngineeringTeg
cost: 15000
category: cargoproduct-category-name-engineering
group: market
11 changes: 11 additions & 0 deletions Resources/Prototypes/Ronstation/Catalog/Fills/Crates/engines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- type: entity
id: CrateEngineeringTeg
parent: CrateEngineeringSecure
name: thermo-electric generator flatpack set crate
description: Contains a set of 3 flatpacks to build your own thermo-electric generator. Requires Engineering access to open.
components:
- type: StorageFill
contents:
- id: TegCenterFlatpack
- id: TegCirculatorFlatpack
amount: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
- type: entity
parent: BaseMachineCircuitboard
id: TegCenterCircuitboard
name: thermo-electric generator machine board
components:
- type: Sprite
state: engineering
- type: MachineBoard
prototype: TegCenter
stackRequirements:
Capacitor: 4
MatterBin: 1
Steel: 6
Cable: 4

- type: entity
parent: BaseMachineCircuitboard
id: TegCirculatorCircuitboard
name: circulator machine board
components:
- type: Sprite
state: engineering
- type: MachineBoard
prototype: TegCirculator
stackRequirements:
Capacitor: 2
Steel: 3
tagRequirements:
Pipe:
amount: 1
defaultPrototype: GasPipeStraight
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,38 @@
- state: base
- state: overlay
color: "#D381C9"
- state: icon-default
- state: icon-default

- type: entity
parent: BaseFlatpack
id: TegCenterFlatpack
name: thermo-electric generator flatpack
description: A flatpack used for constructing a thermo-electric generator.
components:
- type: Flatpack
entity: TegCenter
- type: Sprite
layers:
- state: base
- state: overlay
color: "#EFB341"
- state: icon-default
- type: GuideHelp
guides: [ TEG, Power ]

- type: entity
parent: BaseFlatpack
id: TegCirculatorFlatpack
name: circulator flatpack
description: A flatpack used for constructing a circulator.
components:
- type: Flatpack
entity: TegCirculator
- type: Sprite
layers:
- state: base
- state: overlay
color: "#EFB341"
- state: icon-default
- type: GuideHelp
guides: [ TEG, Power ]
Loading