more balanced constructing and unscrewing for metal objects (#21051)

* more balanced constructing and unscrewing for metal objects

- computer frame, machine frame, rack and meatspike can be deconstructed while anchored by screwing
- Computer frames now need time to be constructed.
- it now takes a reasonable time to make a meatspike. If you can construct a machine frame in 2.5, surely you can make a meatspike in 2.

* Fixes test
This commit is contained in:
iacore
2024-01-06 08:28:57 +00:00
committed by GitHub
parent 154416787e
commit d73c7e9a0a
5 changed files with 6 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ public sealed class ComputerConstruction : InteractionTest
Screw, Screw,
Pry, Pry,
Wrench, Wrench,
Weld); Screw);
// construction finished, entity no longer exists. // construction finished, entity no longer exists.
AssertDeleted(); AssertDeleted();

View File

@@ -13,7 +13,7 @@
steps: steps:
- material: Steel - material: Steel
amount: 15 amount: 15
doAfter: 10 doAfter: 2
- node: MeatSpike - node: MeatSpike
entity: KitchenSpike entity: KitchenSpike
edges: edges:
@@ -22,9 +22,6 @@
- !type:SpawnPrototype - !type:SpawnPrototype
prototype: SheetSteel1 prototype: SheetSteel1
amount: 15 amount: 15
conditions:
- !type:EntityAnchored
anchored: false
steps: steps:
- tool: Welding - tool: Screwing
doAfter: 10 doAfter: 1

View File

@@ -22,9 +22,6 @@
- !type:SpawnPrototype - !type:SpawnPrototype
prototype: SheetSteel1 prototype: SheetSteel1
amount: 2 amount: 2
conditions:
- !type:EntityAnchored
anchored: false
steps: steps:
- tool: Screwing - tool: Screwing
doAfter: 1 doAfter: 1

View File

@@ -11,6 +11,7 @@
steps: steps:
- material: Steel - material: Steel
amount: 5 amount: 5
doAfter: 2.5
- node: frameUnsecured - node: frameUnsecured
actions: actions:
@@ -29,16 +30,13 @@
state: "id_mod" state: "id_mod"
- to: start - to: start
conditions:
- !type:EntityAnchored
anchored: false
completed: completed:
- !type:SpawnPrototype - !type:SpawnPrototype
prototype: SheetSteel1 prototype: SheetSteel1
amount: 5 amount: 5
- !type:DeleteEntity {} - !type:DeleteEntity {}
steps: steps:
- tool: Welding - tool: Screwing
doAfter: 2 doAfter: 2
- node: boardUnsecured - node: boardUnsecured

View File

@@ -33,9 +33,6 @@
steps: steps:
- material: Cable - material: Cable
- to: start - to: start
conditions:
- !type:EntityAnchored
anchored: false
completed: completed:
- !type:SpawnPrototype - !type:SpawnPrototype
prototype: SheetSteel1 prototype: SheetSteel1