Adds integration tests to construction, fixes some wrong stack prototypes in construction graphs

🆑
- fix: Fixes a bug where many constructions failed due to a recent material refactor.
This commit is contained in:
Vera Aguilera Puerto
2021-02-28 17:16:41 +01:00
parent c3c9f2bbc1
commit 71e6effd48
19 changed files with 144 additions and 36 deletions

View File

@@ -3,7 +3,7 @@
icon:
sprite: Objects/Materials/sheets.rsi
state: metal
result: SteelSheet1
result: SheetSteel1
completetime: 500
materials:
steel: 100
@@ -13,7 +13,7 @@
icon:
sprite: Objects/Materials/sheets.rsi
state: glass
result: GlassSheet1
result: SheetGlass1
completetime: 500
materials:
glass: 100

View File

@@ -41,7 +41,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
@@ -90,7 +90,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -48,7 +48,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
@@ -76,7 +76,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
@@ -107,7 +107,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
@@ -135,7 +135,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
@@ -166,7 +166,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -32,7 +32,7 @@
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -31,7 +31,7 @@
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 2
- !type:DoActsBehavior

View File

@@ -94,7 +94,7 @@
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -39,7 +39,7 @@
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -38,7 +38,7 @@
- !type:EmptyAllContainersBehaviour
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 2
max: 2
- !type:DoActsBehavior
@@ -100,7 +100,7 @@
- !type:EmptyAllContainersBehaviour
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -144,7 +144,7 @@
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior

View File

@@ -35,7 +35,7 @@
anchored: false
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 5
- !type:DeleteEntity {}
steps:
@@ -125,7 +125,7 @@
- !type:EntityAnchored { }
completed:
- !type:SpawnPrototype
prototype: GlassSheet1
prototype: SheetGlass1
amount: 2
steps:
- tool: Prying
@@ -144,8 +144,8 @@
- !type:EntityAnchored {}
completed:
- !type:SpawnPrototype
prototype: GlassSheet1 # TODO: Replace with glass shard.
amount: 1
prototype: ShardBase
amount: 2
steps:
- tool: Prying
doAfter: 2

View File

@@ -37,7 +37,7 @@
- node: start
actions:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
edges:

View File

@@ -30,7 +30,7 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 3
- !type:DeleteEntity {}
conditions:
@@ -146,7 +146,7 @@
- to: frame4
completed:
- !type:SpawnPrototype
prototype: GlassSheet1
prototype: SheetGlass1
amount: 2
steps:
- tool: Screwing

View File

@@ -24,7 +24,7 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
conditions:
@@ -60,7 +60,7 @@
- to: girder
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 2
steps:
- tool: Welding

View File

@@ -26,7 +26,7 @@
doAfter: 2.0
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
- node: bulbLight
@@ -41,6 +41,6 @@
doAfter: 2.0
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 1
- !type:DeleteEntity {}

View File

@@ -9,7 +9,7 @@
component: Window
actions:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 3
- !type:DeleteEntity { }
edges:

View File

@@ -5,7 +5,7 @@
- node: start
actions:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
- !type:DeleteEntity {}
edges:
- to: missingWires
@@ -35,7 +35,7 @@
anchored: false
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 5
- !type:DeleteEntity {}
steps:

View File

@@ -16,7 +16,7 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: SteelSheet1
prototype: SheetSteel1
amount: 5
- !type:EmptyAllContainers {}
- !type:DeleteEntity {}

View File

@@ -33,7 +33,7 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: GlassSheet1
prototype: SheetGlass1
amount: 2
- !type:DeleteEntity {}
steps:
@@ -48,7 +48,7 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: RGlassSheet1
prototype: SheetRGlass1
amount: 2
- !type:DeleteEntity {}
steps:
@@ -67,13 +67,13 @@
- to: start
completed:
- !type:SpawnPrototype
prototype: GlassSheet1
prototype: SheetGlass1
amount: 2
- !type:SpawnPrototype
prototype: MetalSheet1
prototype: SheetSteel1
amount: 2
- !type:SpawnPrototype
prototype: PlasmaSheet1
prototype: SheetPlasma1
amount: 2
- !type:DeleteEntity {}
steps: