Refactor stacks to use prototypes (#3387)

* Refactor stacks to use prototypes

* Fix not assigned warning

* Add names to stacks

* Make machine baords and material constructions use the name as well

* Remove defaulting stacks to prototype id

* Fix tests

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
DrSmugleaf
2021-02-25 06:18:29 +01:00
committed by GitHub
parent 7c32574547
commit fdcbece63d
33 changed files with 326 additions and 186 deletions

View File

@@ -0,0 +1,19 @@
- type: stack
id: FloorTileSteel
name: steel tile
- type: stack
id: FloorTileCarpet
name: carpet tile
- type: stack
id: FloorTileWhite
name: white tile
- type: stack
id: FloorTileDark
name: dark tile
- type: stack
id: FloorTileWood
name: wood tile

View File

@@ -0,0 +1,61 @@
- type: stack
id: Steel
name: steel
icon: "/Textures/Objects/Materials/sheets.rsi/metal.png"
spawn: SteelSheet1
- type: stack
id: Glass
name: glass
icon: "/Textures/Objects/Materials/sheets.rsi/glass.png"
spawn: GlassSheet1
- type: stack
id: ReinforcedGlass
name: reinforced glass
- type: stack
id: Plasteel
name: plasteel
icon: "/Textures/Objects/Materials/sheets.rsi/plasteel.png"
spawn: PlasteelSheet1
- type: stack
id: Wood
name: wood
- type: stack
id: Plastic
name: plastic
- type: stack
id: Gold
name: gold
- type: stack
id: Plasma
name: plasma
icon: "/Textures/Objects/Materials/sheets.rsi/phoron.png"
spawn: PlasmaStack1
- type: stack
id: MetalRod
name: metal rod
icon: "/Textures/Objects/Materials/materials.rsi/rods.png"
spawn: MetalRodStack1
- type: stack
id: GoldStack1
name: gold
- type: stack
id: PlasmaStack1
name: plasma
- type: stack
id: WoodPlank1
name: wood
- type: stack
id: PlasticSheet1
name: plastic

View File

@@ -0,0 +1,11 @@
- type: stack
id: Ointment
name: ointment
- type: stack
id: Gauze
name: gauze
- type: stack
id: Brutepack
name: brutepack

View File

@@ -0,0 +1,25 @@
- type: stack
id: Cable
name: cable
icon: "/Textures/Objects/Tools/cables.rsi/coil-30.png"
spawn: ApcExtensionCableStack1
- type: stack
id: MVCable
name: mv cable
- type: stack
id: HVCable
name: hv cable
- type: stack
id: HVWireStack1
name: hv wire
- type: stack
id: MVWireStack1
name: mv wire
- type: stack
id: ApcExtensionCableStack1
name: apc extension cable

View File

@@ -0,0 +1,23 @@
- type: stack
id: PaperRolling
name: paper rolling
- type: stack
id: CigaretteFilter
name: cigarette filter
- type: stack
id: GroundTobacco
name: ground tobacco
- type: stack
id: GroundCannabis
name: ground cannabis
- type: stack
id: LeavesTobaccoDried
name: dried tobacco leaves
- type: stack
id: LeavesCannabisDried
name: dried cannabis leaves