Skip to content

Commit

Permalink
Delete structures on workbench (#549)
Browse files Browse the repository at this point in the history
* Transfer of crafting barrels

* Sorry, error fix

* Come on, Work!
  • Loading branch information
YmepIIIij-TeRorIst authored Nov 8, 2024
1 parent c7b2308 commit 682b0f7
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: entity
id: CP14BaseBarrel
parent:
parent:
- BaseStructureDynamic
- CP14BaseFlammable
name: wooden barrel
Expand All @@ -14,6 +14,9 @@
noRot: true
- type: InteractionOutline
- type: Physics
- type: Construction
graph: CP14BaseBarrel
node: CP14BaseBarrel
- type: Fixtures
fixtures:
fix1:
Expand Down Expand Up @@ -223,4 +226,4 @@
barrel:
reagents:
- ReagentId: CP14LumiMushroom
Quantity: 300
Quantity: 300
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,30 @@
- material: CP14WoodenPlanks
amount: 2
doAfter: 2

- node: CP14Bonfire
entity: CP14Bonfire

- type: constructionGraph
id: CP14BaseBarrel
start: start
graph:
- node: start
actions:
- !type:DestroyEntity {}
edges:
- to: CP14BaseBarrel
steps:
- material: CP14WoodenPlanks
amount: 5
doAfter: 3
- material: CP14Nail
amount: 2
doAfter: 2

- node: CP14BaseBarrel
entity: CP14BaseBarrel

- type: constructionGraph
id: CP14WallmountTorch
start: start
Expand All @@ -31,7 +51,7 @@
- material: CP14WoodenPlanks
amount: 3
doAfter: 3

- node: CP14WallmountTorch
entity: CP14WallmountTorch

Expand All @@ -48,7 +68,7 @@
- material: CP14CopperBar
amount: 3
doAfter: 3

- node: CP14WallmountLampEmpty
entity: CP14WallmountLampEmpty

Expand All @@ -65,7 +85,6 @@
- material: CP14WoodenPlanks
amount: 3
doAfter: 3

- node: CP14WallmountOrdersBorder
entity: CP14WallmountOrdersBorder

20 changes: 19 additions & 1 deletion Resources/Prototypes/_CP14/Recipes/Construction/furniture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
conditions:
- !type:TileNotBlocked

- type: construction
crystallPunkAllowed: true
name: Wooden barrel
description: The simplest design for storing liquids.
id: CP14BaseBarrel
graph: CP14BaseBarrel
startNode: start
targetNode: CP14BaseBarrel
category: construction-category-furniture
icon:
sprite: _CP14/Structures/Furniture/barrel.rsi
state: barrel
objectType: Structure
placementMode: PlaceFree
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked

- type: construction
crystallPunkAllowed: true
name: Wooden table
Expand Down Expand Up @@ -131,7 +149,7 @@
- type: construction
crystallPunkAllowed: true
name: Crystal wall lamp
description: A simple wallmount magical device that converts crystal energy into bright light.
description: A simple wallmount magical device that converts crystal energy into bright light.
id: CP14WallmountLampEmpty
graph: CP14WallmountLampEmpty
startNode: start
Expand Down
11 changes: 1 addition & 10 deletions Resources/Prototypes/_CP14/Recipes/Workbench/workbench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
CP14WoodenPlanks: 3
result: CP14Bucket

- type: CP14Recipe
id: CP14BaseBarrel
tag: CP14RecipeWorkbench
craftTime: 3
stacks:
CP14WoodenPlanks: 5
CP14Nail: 2
result: CP14BaseBarrel

- type: CP14Recipe
id: CP14WoodenBeerMug
tag: CP14RecipeWorkbench
Expand Down Expand Up @@ -59,4 +50,4 @@
craftTime: 4
stacks:
CP14WoodenPlanks: 3
result: CP14BaseBattleStaff
result: CP14BaseBattleStaff

0 comments on commit 682b0f7

Please sign in to comment.