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 a civilian grade bananium generator for heavy shuttles and stations. #2882

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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 @@ -614,6 +614,7 @@
- BoozeDispenserMachineCircuitboard # Frontier
- SodaDispenserMachineCircuitboard # Frontier
- MiniStationAnchorCircuitboard # Frontier
- PortableGeneratorProfPacmanMachineCircuitboard # Frontier
- type: EmagLatheRecipes
emagDynamicRecipes:
# - ShuttleGunDusterCircuitboard # Frontier
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Research/industrial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@
recipeUnlocks:
- PowerCellMicroreactor
- NFBlueprintPowerCellMicroreactor # Frontier
- PortableGeneratorProfPacmanMachineCircuitboard # Frontier
- NFBlueprintPortableGeneratorProfPacman # Frontier
technologyPrerequisites:
- AdvancedPowercells

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
FuelUranium: 4294967295 # Infinite
AmeJar: 4294967295 # Infinite
JerryCanWeldingFuel: 4294967295 # Infinite
contrabandInventory:
FuelBananium: 4294967295 # Infinite
FuelBananium: 4294967295 # Infinite
# contrabandInventory:
22 changes: 22 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Devices/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,28 @@
- type: StaticPrice
price: 40

- type: entity
id: PortableGeneratorProfPacmanMachineCircuitboard
parent: BaseMachineCircuitboard
name: P.R.O.F.P.A.C.M.A.N.-type portable generator
description: A machine printed circuit board for a P.R.O.F.P.A.C.M.A.N.-type portable generator.
components:
- type: Sprite
state: engineering
- type: MachineBoard
prototype: PortableGeneratorProfPacman
requirements:
Capacitor: 2
stackRequirements:
CableHV: 10
- type: PhysicalComposition
materialComposition:
Glass: 200
chemicalComposition:
Silicon: 20
- type: StaticPrice
price: 40

- type: entity
id: BlueprintLithographMachineCircuitboard
parent: BaseMachineCircuitboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,13 @@
- type: Blueprint
providedRecipes:
- ConstructionBagOfHolding

- type: entity
parent: NFBaseBlueprintEngineering
id: NFBlueprintPortableGeneratorProfPacman
name: P.R.O.F.P.A.C.M.A.N. blueprint
description: A blueprint with a schematic of a P.R.O.F.P.A.C.M.A.N.-type portable generator. It can be inserted into an autolathe or a techfab.
components:
- type: Blueprint
providedRecipes:
- PortableGeneratorProfPacmanMachineCircuitboard
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@
- NFBlueprintClothingBackpackDuffelHolding
- NFBlueprintConstructionBagOfHolding
- NFBlueprintPortableRecharger
- NFBlueprintPortableGeneratorProfPacman
# Medical
- NFBlueprintBluespaceBeaker
- NFBlueprintSyringeBluespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base generator for powered on, anchored versions for shuttles
# Base generator for powered on, anchored versions for shuttles
- type: entity
id: BaseGeneratorShuttle
abstract: true
Expand Down Expand Up @@ -51,13 +51,13 @@
name: H.Y.P.E.R.P.A.C.M.A.N.-type portable generator
description: |-
Next gen generator for powering stations.
Runs off bananium and is rated for up to 100 kW.
Runs off bananium and is rated for up to 120 kW.
Very radioactive without protection.
parent:
- PortableGeneratorSuperPacman
- BaseC3Contraband # Why will you have this thing?
id: PortableGeneratorHyperPacman
suffix: Bananium, 60 kW
suffix: Bananium, 80 kW
components:
- type: Sprite
sprite: _NF/Structures/Power/Generation/portable_generator.rsi
Expand All @@ -82,9 +82,9 @@
board: PortableGeneratorHyperPacmanMachineCircuitboard
- type: FuelGenerator
minTargetPower: 10000
maxTargetPower: 100000
targetPower: 60000
optimalPower: 60000
maxTargetPower: 120000
targetPower: 80000
optimalPower: 80000
# 15 minutes per stack at full power
optimalBurnRate: 0.005
# still decent power curve
Expand Down Expand Up @@ -122,3 +122,79 @@
- type: MaterialStorage
storage:
FuelGradeBananium: 1000

- type: entity
name: P.R.O.F.P.A.C.M.A.N.-type portable generator
description: |-
A powerful next gen micro fission reactor. Use with caution.
Runs off bananium and is rated for up to 100 kW.
Very radioactive without protection.
parent:
- PortableGeneratorSuperPacman
- BaseC1Contraband # Mildly illegal. Just enough to add some spice to your life.
id: PortableGeneratorProfPacman
suffix: Bananium, 60 kW
components:
- type: Sprite
sprite: Structures/Power/Generation/portable_generator.rsi
layers:
- state: portgen2
map: [ "enum.GeneratorVisualLayers.Body" ]
- state: portgen_on_unlit
map: [ "enum.GeneratorVisualLayers.Unlit" ]
shader: unshaded
visible: false
- type: GenericVisualizer
visuals:
enum.GeneratorVisuals.Running:
enum.GeneratorVisualLayers.Body:
True: { state: portgen2on }
False: { state: portgen2 }
enum.GeneratorVisualLayers.Unlit:
True: { visible: true }
False: { visible: false }

- type: Machine
board: PortableGeneratorProfPacmanMachineCircuitboard
- type: FuelGenerator
minTargetPower: 10000
maxTargetPower: 100000
targetPower: 60000
optimalPower: 60000
# 15 minutes per stack at full power
optimalBurnRate: 0.005
# still decent power curve
fuelEfficiencyConstant: 0.75
radiationColor: "#00bfff"
- type: SolidFuelGeneratorAdapter
fuelMaterial: FuelGradeBananium
- type: MaterialStorage
materialWhiteList: [Bananium, FuelGradeBananium]
- type: PowerMonitoringDevice
sprite: _NF/Structures/Power/Generation/portable_generator.rsi
state: portgen2
- type: RadiationSource
enabled: false
- type: AmbientSound
volume: 1
enabled: false
sound:
path: /Audio/Items/Geiger/ext.ogg
- type: PowerSupplier
supplyRampRate: 10000
supplyRampTolerance: 3000
- type: FuelGradeAdapter
inputMaterial: Bananium
outputMaterial: FuelGradeBananium

- type: entity
parent:
- BaseGeneratorShuttle
- PortableGeneratorProfPacman
id: PortableGeneratorProfPacmanShuttle
suffix: Bananium, 60 kW, Ship
#categories: [ HideSpawnMenu ] # Mm, start-on rad source
components:
- type: MaterialStorage
storage:
FuelGradeBananium: 1000
5 changes: 5 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/blueprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
id: NFBlueprintConstructionBagOfHolding
result: NFBlueprintConstructionBagOfHolding

- type: latheRecipe
parent: NFBaseBlueprintLatheRecipe
id: NFBlueprintPortableGeneratorProfPacman
result: NFBlueprintPortableGeneratorProfPacman

## Medical

- type: latheRecipe
Expand Down
8 changes: 8 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/electronics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,11 @@
materials:
Steel: 350
Glass: 350

- type: latheRecipe
id: PortableGeneratorProfPacmanMachineCircuitboard
parent: BaseCircuitboardRecipe
result: PortableGeneratorProfPacmanMachineCircuitboard
materials:
Steel: 350
Glass: 350
Loading