Buildable Wooden Fences (#1370)
* Start of New PR * still figuring it out * This is confusing... * AHA! Progress! * Big Fences complete * smaller fence test * fixed smaller gates --------- Co-authored-by: Alchebun <jimmy.12.or#gmail.com>
This commit is contained in:
@@ -75,6 +75,9 @@
|
||||
max: 4
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: CP14FenceBigWooden
|
||||
node: CP14FenceBigWooden
|
||||
|
||||
- type: entity
|
||||
parent: CP14FenceBigWooden
|
||||
@@ -85,6 +88,9 @@
|
||||
sprite: _CP14/Structures/Fence/wooden_birch_big.rsi
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Fence/wooden_birch_big.rsi
|
||||
- type: Construction
|
||||
graph: CP14FenceBigWoodenBirch
|
||||
node: CP14FenceBigWoodenBirch
|
||||
|
||||
- type: entity
|
||||
parent: CP14BaseFenceBig
|
||||
|
||||
@@ -77,6 +77,9 @@
|
||||
max: 4
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: CP14FenceGateBigWooden
|
||||
node: CP14FenceGateBigWooden
|
||||
|
||||
- type: entity
|
||||
parent: CP14FenceGateBigWooden
|
||||
@@ -87,6 +90,9 @@
|
||||
sprite: _CP14/Structures/Fence/wooden_birch_big.rsi
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Fence/wooden_birch_big.rsi
|
||||
- type: Construction
|
||||
graph: CP14FenceGateBigWoodenBirch
|
||||
node: CP14FenceGateBigWoodenBirch
|
||||
|
||||
- type: entity
|
||||
parent:
|
||||
|
||||
@@ -73,6 +73,9 @@
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: CP14FenceWooden
|
||||
node: CP14FenceWooden
|
||||
|
||||
- type: entity
|
||||
parent: CP14FenceWooden
|
||||
@@ -83,4 +86,7 @@
|
||||
sprite: _CP14/Structures/Fence/wooden_birch.rsi
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Fence/wooden_birch.rsi
|
||||
- type: Construction
|
||||
graph: CP14FenceWoodenBirch
|
||||
node: CP14FenceWoodenBirch
|
||||
|
||||
|
||||
@@ -77,6 +77,9 @@
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
graph: CP14FenceGateWooden
|
||||
node: CP14FenceGateWooden
|
||||
|
||||
- type: entity
|
||||
parent: CP14FenceGateWooden
|
||||
@@ -87,4 +90,6 @@
|
||||
sprite: _CP14/Structures/Fence/wooden_birch.rsi
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Fence/wooden_birch.rsi
|
||||
|
||||
- type: Construction
|
||||
graph: CP14FenceGateWooden
|
||||
node: CP14FenceGateWooden
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
- type: constructionGraph
|
||||
id: CP14FenceBigWooden
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceBigWooden
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14WoodenPlanks
|
||||
amount: 4
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceBigWooden
|
||||
entity: CP14FenceBigWooden
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14WoodenPlanks1
|
||||
amount: 4
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceBigWoodenBirch
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceBigWoodenBirch
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14BirchWoodenPlanks
|
||||
amount: 4
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceBigWoodenBirch
|
||||
entity: CP14FenceBigWoodenBirch
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14BirchWoodenPlanks1
|
||||
amount: 4
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceGateBigWooden
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceGateBigWooden
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14WoodenPlanks
|
||||
amount: 4
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceGateBigWooden
|
||||
entity: CP14FenceGateBigWooden
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14WoodenPlanks1
|
||||
amount: 4
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceGateBigWoodenBirch
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceGateBigWoodenBirch
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14BirchWoodenPlanks
|
||||
amount: 4
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceGateBigWoodenBirch
|
||||
entity: CP14FenceGateBigWoodenBirch
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14BirchWoodenPlanks1
|
||||
amount: 4
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
@@ -0,0 +1,111 @@
|
||||
- type: constructionGraph
|
||||
id: CP14FenceWooden
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceWooden
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14WoodenPlanks
|
||||
amount: 2
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceWooden
|
||||
entity: CP14FenceWooden
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14WoodenPlanks1
|
||||
amount: 2
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceWoodenBirch
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceWoodenBirch
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14BirchWoodenPlanks
|
||||
amount: 2
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceWoodenBirch
|
||||
entity: CP14FenceWoodenBirch
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14BirchWoodenPlanks1
|
||||
amount: 2
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceGateWooden
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceGateWooden
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14WoodenPlanks
|
||||
amount: 2
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceGateWooden
|
||||
entity: CP14FenceGateWooden
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14WoodenPlanks1
|
||||
amount: 2
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
|
||||
- type: constructionGraph
|
||||
id: CP14FenceGateWoodenBirch
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: CP14FenceGateWoodenBirch
|
||||
completed:
|
||||
- !type:SnapToGrid
|
||||
southRotation: true
|
||||
steps:
|
||||
- material: CP14BirchWoodenPlanks
|
||||
amount: 2
|
||||
doAfter: 2
|
||||
|
||||
- node: CP14FenceGateWoodenBirch
|
||||
entity: CP14FenceGateWoodenBirch
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CP14BirchWoodenPlanks1
|
||||
amount: 2
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 2
|
||||
103
Resources/Prototypes/_CP14/Recipes/Construction/fences.yml
Normal file
103
Resources/Prototypes/_CP14/Recipes/Construction/fences.yml
Normal file
@@ -0,0 +1,103 @@
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceBigWooden
|
||||
graph: CP14FenceBigWooden
|
||||
startNode: start
|
||||
targetNode: CP14FenceBigWooden
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceBigWoodenBirch
|
||||
graph: CP14FenceBigWoodenBirch
|
||||
startNode: start
|
||||
targetNode: CP14FenceBigWoodenBirch
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceGateBigWooden
|
||||
graph: CP14FenceGateBigWooden
|
||||
startNode: start
|
||||
targetNode: CP14FenceGateBigWooden
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceGateBigWoodenBirch
|
||||
graph: CP14FenceGateBigWoodenBirch
|
||||
startNode: start
|
||||
targetNode: CP14FenceGateBigWoodenBirch
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceWooden
|
||||
graph: CP14FenceWooden
|
||||
startNode: start
|
||||
targetNode: CP14FenceWooden
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceWoodenBirch
|
||||
graph: CP14FenceWoodenBirch
|
||||
startNode: start
|
||||
targetNode: CP14FenceWoodenBirch
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceGateWooden
|
||||
graph: CP14FenceGateWooden
|
||||
startNode: start
|
||||
targetNode: CP14FenceGateWooden
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: CP14FenceGateWoodenBirch
|
||||
graph: CP14FenceGateWoodenBirch
|
||||
startNode: start
|
||||
targetNode: CP14FenceGateWoodenBirch
|
||||
category: construction-category-structures
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
Reference in New Issue
Block a user