Dirt wall (#223)

* add dirt wall sprites

* added dirt wall proto

* add dirt material, dirt wall crafting and dirt drop from wall
This commit is contained in:
Ed
2024-06-06 21:06:32 +03:00
committed by GitHub
parent 14da5bbc63
commit df695cc39b
23 changed files with 159 additions and 23 deletions

View File

@@ -1 +1,2 @@
cp14-material-wooden-planks = wooden planks
cp14-material-wooden-planks = wooden planks
cp14-material-dirt-block = dirt

View File

@@ -1 +1,2 @@
cp14-material-wooden-planks = деревянные доски
cp14-material-wooden-planks = деревянные доски
cp14-material-dirt-block = земля

View File

@@ -29,7 +29,10 @@
- dirt
- dirt_2
- dirt_3
# TODO material
- type: Material
- type: PhysicalComposition # точно ли это нужно?
materialComposition:
CP14Dirt: 100
- type: entity
id: CP14DirtBlock10
@@ -123,7 +126,7 @@
layerStates:
- planks
- planks_2
- planks_3
- planks_3
- type: Material
- type: PhysicalComposition # точно ли это нужно?
materialComposition:

View File

@@ -33,5 +33,5 @@
- GlassAirlockLayer
- type: InteractionOutline
- type: Construction
graph: CP14Wall
graph: CP14WallWood
node: FrameWooden

View File

@@ -1,5 +1,5 @@
- type: entity
id: CP14CaveStoneWall
id: CP14WallStone
name: rock
parent: CP14BaseWall
description: A solid stone natural wall. It has a cave-like coldness to it.
@@ -27,10 +27,47 @@
params:
volume: -6
- type: entity
id: CP14WallDirt
name: earth cliffs
parent: CP14BaseWall
description: bruh #TODO
components:
- type: Sprite
sprite: _CP14/Structures/Walls/Natural/dirt_wall.rsi
- type: Icon
sprite: _CP14/Structures/Walls/Natural/dirt_wall.rsi
- type: IconSmooth
base: wall
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Rock
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg #TODO
params:
volume: -6
- !type:SpawnEntitiesBehavior
spawn:
CP14DirtBlock1:
min: 2
max: 3
- type: Construction
graph: CP14WallDirt
node: WallDirt
#- type: entity
# id: CP14CaveStoneWallCopperOre
# id: CP14WallStoneCopperOre
# suffix: copper ore
# parent: CP14CaveStoneWall
# parent: CP14WallStone
# description: A solid stone natural wall. You can see the sharp flecks of copper in it.
# components:
# - type: Sprite
@@ -57,9 +94,9 @@
# max: 5
#
#- type: entity
# id: CP14CaveStoneWallIronOre
# id: CP14WallStoneIronOre
# suffix: iron ore
# parent: CP14CaveStoneWall
# parent: CP14WallStone
# description: A solid stone natural wall. You can see the sharp flecks of iron in it.
# components:
# - type: Sprite
@@ -86,9 +123,9 @@
# max: 5
#
- type: entity
id: CP14CaveStoneWallSilverOre
id: CP14WallStoneSilverOre
suffix: silver ore
parent: CP14CaveStoneWall
parent: CP14WallStone
description: A solid stone natural wall. You see the tantalizing particles of silver in it.
components:
- type: Sprite
@@ -117,9 +154,9 @@
base: wall
- type: entity
id: CP14CaveStoneWallGoldOre
id: CP14WallStoneGoldOre
suffix: gold ore
parent: CP14CaveStoneWall
parent: CP14WallStone
description: A solid stone natural wall. You see the tantalizing particles of gold in it.
components:
- type: Sprite

View File

@@ -85,5 +85,5 @@
- type: Icon
sprite: _CP14/Structures/Walls/cardboard_wall.rsi
- type: Construction
graph: CP14Wall
graph: CP14WallWood
node: WallCardboard

View File

@@ -9,7 +9,7 @@
allowedTiles:
- CP14FloorBase
entities:
- CP14CaveStoneWall
- CP14WallStone
- type: biomeTemplate
id: CP14CavesGeneric
@@ -17,7 +17,7 @@
- !type:BiomeTileLayer
threshold: -1.0
tile: CP14FloorBase
#Entity
#Entityx
- !type:BiomeEntityLayer
threshold: 0.4
noise:
@@ -84,7 +84,7 @@
allowedTiles:
- CP14FloorBase
entities:
- CP14CaveStoneWall
- CP14WallStone
#Ores
- !type:BiomeEntityLayer
threshold: 0.6
@@ -96,7 +96,7 @@
allowedTiles:
- CP14FloorBase
entities:
- CP14CaveStoneWallSilverOre
- CP14WallStoneSilverOre
- !type:BiomeEntityLayer
threshold: 0.6
noise:
@@ -107,4 +107,4 @@
allowedTiles:
- CP14FloorBase
entities:
- CP14CaveStoneWallGoldOre
- CP14WallStoneGoldOre

View File

@@ -196,7 +196,7 @@
- CP14FloorBase
threshold: -1.0
entities:
- CP14CaveStoneWall
- CP14WallDirt
- type: biomeTemplate
id: CP14GrasslandTestResult

View File

@@ -5,4 +5,13 @@
unit: materials-unit-plank
icon: { sprite: _CP14/Objects/Materials/wood.rsi, state: planks_2 }
color: "#874d3a"
price: 0 #?
- type: material
id: CP14Dirt
stackEntity: CP14DirtBlock1
name: cp14-material-dirt-block
unit: materials-unit-chunk
icon: { sprite: _CP14/Objects/Materials/dirt_block.rsi, state: dirt_2 }
color: "#5e3f31"
price: 0 #?

View File

@@ -0,0 +1,16 @@
- type: constructionGraph
id: CP14WallDirt
start: start
graph:
- node: start
edges:
- to: WallDirt
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: CP14Dirt
amount: 3
doAfter: 2
- node: WallDirt
entity: CP14WallDirt

View File

@@ -1,5 +1,5 @@
- type: constructionGraph
id: CP14Wall
id: CP14WallWood
start: start
graph:
- node: start

View File

@@ -3,7 +3,7 @@
name: Cardboard wall
description: A thin, flimsy wall made of paper and cardboard. Popular in warm countries.
id: CP14CardboardWall
graph: CP14Wall
graph: CP14WallWood
startNode: start
targetNode: WallCardboard
category: construction-category-structures
@@ -13,5 +13,23 @@
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
- type: construction
crystallPunkAllowed: true
name: Earth cliffs
description: bruh #TODO
id: CP14WallDirt
graph: CP14WallDirt
startNode: start
targetNode: WallDirt
category: construction-category-structures
icon:
sprite: _CP14/Structures/Walls/Natural/dirt_wall.rsi
state: full
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,46 @@
{
"version": 1,
"size": {
"x": 32,
"y": 64
},
"license": "All rights reserved for the CrystallPunk14 project only",
"copyright": "Created by TheShuEd (Discord) for CrystallPunk14",
"states": [
{
"name": "wall0",
"directions": 4
},
{
"name": "wall1",
"directions": 4
},
{
"name": "wall2",
"directions": 4
},
{
"name": "wall3",
"directions": 4
},
{
"name": "wall4",
"directions": 4
},
{
"name": "wall5",
"directions": 4
},
{
"name": "wall6",
"directions": 4
},
{
"name": "wall7",
"directions": 4
},
{
"name": "full"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@@ -11,6 +11,11 @@ CP14FloorBricksCarvedSquare: null
# 2024-05-24
CP14CardboardWall: CP14WallCardboard
# 2024-06-06
CP14CaveStoneWall: CP14WallStone
CP14CaveStoneWallSilverOre: CP14WallStoneSilverOre
CP14CaveStoneWallGoldOre: CP14WallStoneGoldOre
# <---> CrystallPunk migration zone end