Construction System. (#87)
* Construction WiP * Construction kinda works! * Lots more construction work. * It mostly works!
This commit is contained in:
committed by
GitHub
parent
f051078c79
commit
d7074bf74f
27
Resources/Prototypes/Construction/machines.yml
Normal file
27
Resources/Prototypes/Construction/machines.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
- type: construction
|
||||
name: Wall Light
|
||||
id: wall_light
|
||||
keywords: [fixture, lamp]
|
||||
category: Machines
|
||||
description: A simple wall-mounted light fixture.
|
||||
placementmode: SnapgridBorder
|
||||
icon:
|
||||
sprite: Objects/lighting.rsi
|
||||
state: on
|
||||
|
||||
result: poweredlight
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 1
|
||||
icon:
|
||||
sprite: Objects/lighting.rsi
|
||||
state: construct
|
||||
|
||||
- material: Cable
|
||||
amount: 1
|
||||
icon:
|
||||
sprite: Objects/lighting.rsi
|
||||
state: empty
|
||||
|
||||
- material: Glass
|
||||
amount: 1
|
||||
57
Resources/Prototypes/Construction/power.yml
Normal file
57
Resources/Prototypes/Construction/power.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
- type: construction
|
||||
name: SMES
|
||||
id: smes
|
||||
category: Machines/Power
|
||||
keywords: [battery, cell, storage]
|
||||
placementmode: SnapgridCenter
|
||||
description: A SMES is a large battery capable of connecting directly to a power grid.
|
||||
icon:
|
||||
sprite: Buildings/smes.rsi
|
||||
state: smes
|
||||
result: SMES
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
icon:
|
||||
sprite: Buildings/smes.rsi
|
||||
state: smes
|
||||
|
||||
- material: Cable
|
||||
amount: 2
|
||||
|
||||
- type: construction
|
||||
name: Generator
|
||||
id: generator
|
||||
category: Machines/Power
|
||||
placementmode: SnapgridCenter
|
||||
description: A portable generator capable of producing power from thin air.
|
||||
icon: Objects/generator.png
|
||||
result: Generator
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
icon: Objects/generator.png
|
||||
|
||||
- material: Cable
|
||||
amount: 2
|
||||
|
||||
- type: construction
|
||||
name: APC
|
||||
id: apc
|
||||
category: Machines/Power
|
||||
placementmode: SnapgridCenter
|
||||
description: Provides power from the grid wirelessly to other machines in the area.
|
||||
icon:
|
||||
sprite: Buildings/apc.rsi
|
||||
state: apc0
|
||||
result: APC
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
icon:
|
||||
sprite: Buildings/apc.rsi
|
||||
state: apcmaint
|
||||
|
||||
- material: Cable
|
||||
amount: 2
|
||||
|
||||
31
Resources/Prototypes/Construction/structures.yml
Normal file
31
Resources/Prototypes/Construction/structures.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
- type: construction
|
||||
name: Wall
|
||||
id: wall
|
||||
category: Structures
|
||||
description: Keeps the air in and the greytide out.
|
||||
icon: Tiles/wall_texture.png
|
||||
objecttype: Structure
|
||||
result: __engine_wall
|
||||
placementmode: SnapgridBorder
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
icon: Buildings/wall_girder.png
|
||||
reverse:
|
||||
tool: Wrench
|
||||
|
||||
- material: Metal
|
||||
amount: 2
|
||||
reverse:
|
||||
tool: Welder
|
||||
|
||||
- type: construction
|
||||
name: Table
|
||||
id: table
|
||||
category: Structures
|
||||
icon: Objects/worktop_single.png
|
||||
result: __engine_worktop
|
||||
placementmode: SnapgridCenter
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
18
Resources/Prototypes/Construction/weapons.yml
Normal file
18
Resources/Prototypes/Construction/weapons.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- type: construction
|
||||
name: Crude Spear
|
||||
id: spear
|
||||
category: Items/Weapons
|
||||
keywords: [melee]
|
||||
description: A crude spear for when you need to put holes in somebody.
|
||||
icon: Objects/spear.png
|
||||
objecttype: Item
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 1
|
||||
|
||||
- material: Cable
|
||||
amount: 3
|
||||
|
||||
# Should probably use a shard but y'know.
|
||||
- material: Glass
|
||||
amount: 1
|
||||
22
Resources/Prototypes/Entities/Construction.yml
Normal file
22
Resources/Prototypes/Entities/Construction.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- type: entity
|
||||
name: spooky ghost
|
||||
id: constructionghost
|
||||
components:
|
||||
- type: Transform
|
||||
- type: Sprite
|
||||
color: '#3F38'
|
||||
- type: ConstructionGhost
|
||||
- type: BoundingBox
|
||||
- type: Clickable
|
||||
baseshader: unshaded
|
||||
selectionshader: selection_outline_unshaded
|
||||
|
||||
- type: entity
|
||||
name: somebody-messed-up frame
|
||||
id: structureconstructionframe
|
||||
components:
|
||||
- type: Transform
|
||||
- type: Sprite
|
||||
- type: Construction
|
||||
- type: BoundingBox
|
||||
- type: Clickable
|
||||
60
Resources/Prototypes/Entities/Materials.yml
Normal file
60
Resources/Prototypes/Entities/Materials.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
- type: entity
|
||||
name: Material Stack
|
||||
id: MaterialStack
|
||||
parent: BaseItem
|
||||
components:
|
||||
- type: Stack
|
||||
- type: Material
|
||||
|
||||
- type: entity
|
||||
name: Steel Sheet
|
||||
id: MetalStack
|
||||
parent: MaterialStack
|
||||
components:
|
||||
- type: Material
|
||||
materials:
|
||||
- key: enum.MaterialKeys.Stack
|
||||
mat: steel
|
||||
- type: Stack
|
||||
stacktype: enum.StackType.Metal
|
||||
- type: Sprite
|
||||
texture: Objects/sheet_metal.png
|
||||
- type: Icon
|
||||
texture: Objects/sheet_metal.png
|
||||
|
||||
- type: entity
|
||||
id: SteelSheet1
|
||||
name: Steel Sheet 1
|
||||
parent: MetalStack
|
||||
components:
|
||||
- type: Stack
|
||||
count: 1
|
||||
|
||||
- type: entity
|
||||
name: Glass Sheet
|
||||
id: GlassStack
|
||||
parent: MaterialStack
|
||||
components:
|
||||
- type: Material
|
||||
materials:
|
||||
- key: enum.MaterialKeys.Stack
|
||||
mat: glass
|
||||
- type: Stack
|
||||
stacktype: enum.StackType.Glass
|
||||
- type: Sprite
|
||||
texture: Objects/sheet_glass.png
|
||||
- type: Icon
|
||||
texture: Objects/sheet_glass.png
|
||||
|
||||
- type: entity
|
||||
name: Cable Coil
|
||||
id: CableStack
|
||||
parent: BaseItem
|
||||
components:
|
||||
- type: Stack
|
||||
stacktype: enum.StackType.Cable
|
||||
- type: Sprite
|
||||
texture: Objects/cable_coil.png
|
||||
color: red
|
||||
- type: Icon
|
||||
texture: Objects/cable_coil.png
|
||||
@@ -10,6 +10,7 @@
|
||||
- left
|
||||
- right
|
||||
- type: Inventory
|
||||
- type: Constructor
|
||||
|
||||
- type: entity
|
||||
id: MobObserver
|
||||
|
||||
@@ -114,6 +114,13 @@
|
||||
visuals:
|
||||
- type: SmesVisualizer2D
|
||||
|
||||
- type: entity
|
||||
id: smes_dry
|
||||
parent: SMES
|
||||
components:
|
||||
- type: PowerStorage
|
||||
charge: 0
|
||||
|
||||
- type: entity
|
||||
id: WiredMachine
|
||||
name: WiredMachine
|
||||
|
||||
@@ -26,3 +26,15 @@
|
||||
- type: Item
|
||||
Size: 24
|
||||
|
||||
- type: entity
|
||||
name: Spear
|
||||
parent: BaseItem
|
||||
id: Spear
|
||||
components:
|
||||
- type: Sprite
|
||||
texture: Objects/spear.png
|
||||
- type: Icon
|
||||
texture: Objects/spear.png
|
||||
- type: MeleeWeapon
|
||||
- type: Item
|
||||
Size: 24
|
||||
|
||||
Reference in New Issue
Block a user