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

Small Thruster & Gyro now craftable #931

Merged
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 @@ -3,3 +3,9 @@ ent-CrateThruster = { ent-BaseThruster }

ent-CrateGyroscope = { ent-Gyroscope }
.desc = { ent-Gyroscope.desc }

ent-CrateSmallThruster = { ent-SmallThruster }
.desc = { ent-BaseThruster.desc }

ent-CrateSmallGyroscope = { ent-SmallGyroscope }
.desc = { ent-Gyroscope.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ent-SmallThruster = small thruster
.desc = { ent-BaseThruster.desc }

ent-SmallGyroscope = small gyroscope
.desc = { ent-Gyroscope.desc }
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@
- StationMapElectronics
- DeepFryerMachineCircuitboard
# End Nyano additions
- SmallThrusterMachineCircuitboard # Frontier
- SmallGyroscopeMachineCircuitboard # Frontier
- type: MaterialStorage
whitelist:
tags:
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 @@ -131,6 +131,8 @@
- ThrusterMachineCircuitboard
- GyroscopeMachineCircuitboard
- MiniGravityGeneratorCircuitboard
- SmallThrusterMachineCircuitboard # Frontier
- SmallGyroscopeMachineCircuitboard # Frontier

- type: technology
id: RipleyAPLU
Expand Down
29 changes: 19 additions & 10 deletions Resources/Prototypes/_NF/Catalog/Cargo/cargo_shuttle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@
category: Shuttle
group: market

# - type: cargoProduct
# id: ShuttlePowerKit
# icon:
# sprite: Structures/Machines/computers.rsi
# state: avionics-systems
# product: CrateEngineeringShuttle
# cost: 3000
# category: Shuttle
# group: market
# locked: true # only the QM has permission to order by default
- type: cargoProduct
id: ShuttleSmallThruster
icon:
sprite: Structures/Shuttles/thruster.rsi
state: base
product: CrateSmallThruster
cost: 500
category: Shuttle
group: market

- type: cargoProduct
id: ShuttleSmallGyroscope
icon:
sprite: Structures/Shuttles/gyroscope.rsi
state: base
product: CrateSmallGyroscope
cost: 500
category: Shuttle
group: market
16 changes: 16 additions & 0 deletions Resources/Prototypes/_NF/Catalog/Fills/Crates/engines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@
- type: StorageFill
contents:
- id: ThrusterUnanchored

- type: entity
id: CrateSmallGyroscope
parent: CrateEngineering
components:
- type: StorageFill
contents:
- id: SmallGyroscopeUnanchored

- type: entity
id: CrateSmallThruster
parent: CrateEngineering
components:
- type: StorageFill
contents:
- id: SmallThrusterUnanchored
29 changes: 29 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Devices/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,32 @@
MatterBin: 1
materialRequirements:
Glass: 1

- type: entity
id: SmallThrusterMachineCircuitboard
parent: BaseMachineCircuitboard
name: small thruster machine board
components:
- type: MachineBoard
prototype: SmallThruster
requirements:
Capacitor: 4
materialRequirements:
Steel: 5
- type: StaticPrice
price: 30

- type: entity
id: SmallGyroscopeMachineCircuitboard
parent: BaseMachineCircuitboard
name: small gyroscope machine board
components:
- type: MachineBoard
prototype: SmallGyroscope
requirements:
Manipulator: 2
Capacitor: 1
materialRequirements:
Glass: 2
- type: StaticPrice
price: 12.5
66 changes: 48 additions & 18 deletions Resources/Prototypes/_NF/Entities/Structures/Shuttles/thrusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
- type: entity
id: SmallThruster
parent: Thruster
suffix: Small
name: small thruster
components:
- type: Thruster
baseThrust: 33
Expand All @@ -113,6 +113,18 @@
offset: 0, 1
- type: StaticPrice
price: 100
- type: Machine
board: SmallThrusterMachineCircuitboard

- type: entity
id: SmallThrusterUnanchored
parent: SmallThruster
suffix: Unanchored
components:
- type: Transform
anchored: false
- type: Physics
bodyType: Dynamic

- type: entity
id: GyroscopeSecurity
Expand All @@ -139,22 +151,13 @@

- type: entity
id: GyroscopeSecurityUnanchored
parent: GyroscopeUnanchored
parent: GyroscopeSecurity
suffix: Unanchored, Security
components:
- type: Sprite
sprite: _NF/Structures/Shuttles/gyroscope.rsi
snapCardinals: true
layers:
- state: base
map: ["enum.ThrusterVisualLayers.Base"]
- state: thrust
map: ["enum.ThrusterVisualLayers.ThrustOn"]
shader: unshaded
visible: false
- state: thrust_burn_unshaded
map: ["enum.ThrusterVisualLayers.ThrustingUnshaded"]
shader: unshaded
visible: false
- type: Transform
anchored: false
- type: Physics
bodyType: Dynamic

- type: entity
id: DebugGyroscopeSecurity
Expand All @@ -180,7 +183,8 @@
- type: entity
id: SmallGyroscopeSecurity
parent: GyroscopeSecurity
suffix: Security, Small
name: small gyroscope
suffix: Security
components:
- type: Thruster
thrusterType: Angular
Expand All @@ -204,11 +208,25 @@
map: ["enum.ThrusterVisualLayers.ThrustingUnshaded"]
shader: unshaded
visible: false
- type: StaticPrice
price: 250
- type: Machine
board: SmallGyroscopeMachineCircuitboard

- type: entity
id: SmallGyroscopeSecurityUnanchored
parent: SmallGyroscopeSecurity
suffix: Unanchored, Security
components:
- type: Transform
anchored: false
- type: Physics
bodyType: Dynamic

- type: entity
id: SmallGyroscope
parent: Gyroscope
suffix: Small
name: small gyroscope
components:
- type: Thruster
thrusterType: Angular
Expand All @@ -234,3 +252,15 @@
visible: false
- type: StaticPrice
price: 250
- type: Machine
board: SmallGyroscopeMachineCircuitboard

- type: entity
id: SmallGyroscopeUnanchored
parent: SmallGyroscope
suffix: Unanchored
components:
- type: Transform
anchored: false
- type: Physics
bodyType: Dynamic
16 changes: 16 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/electronics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@
completetime: 3
materials:
Credit: 1

- type: latheRecipe
id: SmallThrusterMachineCircuitboard
result: SmallThrusterMachineCircuitboard
completetime: 4
materials:
Steel: 140
Glass: 300

- type: latheRecipe
id: SmallGyroscopeMachineCircuitboard
result: SmallGyroscopeMachineCircuitboard
completetime: 4
materials:
Steel: 50
Glass: 120
Loading