vladimirs rocks
115
Resources/Prototypes/_CP14/Entities/Structures/Flora/rocks.yml
Normal file
@@ -0,0 +1,115 @@
|
||||
- type: entity
|
||||
id: CP14BaseRock
|
||||
name: rock
|
||||
description: A piece of rock. Hard, heavy, useless.
|
||||
abstract: true
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: Sprite
|
||||
drawdepth: Mobs
|
||||
snapCardinals: true
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
- type: Damageable
|
||||
damageContainer: StructuralInorganic
|
||||
damageModifierSet: Rock
|
||||
|
||||
- type: entity
|
||||
id: CP14RockSmall
|
||||
parent: CP14BaseRock
|
||||
suffix: Small
|
||||
components:
|
||||
- type: Climbable
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.4
|
||||
density: 500
|
||||
layer:
|
||||
- HalfWallLayer
|
||||
- Opaque
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Flora/Rocks/rocks_small.rsi
|
||||
offset: 0,0.2
|
||||
layers:
|
||||
- state: rock0
|
||||
map: ["random"]
|
||||
- type: RandomSprite
|
||||
available:
|
||||
- random:
|
||||
rock0: ""
|
||||
rock1: ""
|
||||
rock2: ""
|
||||
rock3: ""
|
||||
rock4: ""
|
||||
rock5: ""
|
||||
rock7: ""
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 75
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/break_stone.ogg
|
||||
params:
|
||||
volume: -6
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14StoneBlock1:
|
||||
min: 2
|
||||
max: 3
|
||||
|
||||
- type: entity
|
||||
id: CP14RockBig
|
||||
parent: CP14BaseRock
|
||||
suffix: Big
|
||||
components:
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.5
|
||||
density: 1500
|
||||
layer:
|
||||
- WallLayer
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Flora/Rocks/rocks_big.rsi
|
||||
offset: 0,0.5
|
||||
layers:
|
||||
- state: rock0
|
||||
map: ["random"]
|
||||
- type: RandomSprite
|
||||
available:
|
||||
- random:
|
||||
rock0: ""
|
||||
rock1: ""
|
||||
rock2: ""
|
||||
rock3: ""
|
||||
rock4: ""
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 150
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/break_stone.ogg
|
||||
params:
|
||||
volume: -6
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14StoneBlock1:
|
||||
min: 5
|
||||
max: 8
|
||||
@@ -28,30 +28,8 @@
|
||||
allowedTiles:
|
||||
- CP14FloorBase
|
||||
entities:
|
||||
- FloraGreyStalagmite1
|
||||
- FloraGreyStalagmite2
|
||||
- FloraGreyStalagmite3
|
||||
- FloraGreyStalagmite4
|
||||
- FloraGreyStalagmite5
|
||||
- FloraRockSolid01
|
||||
- FloraRockSolid02
|
||||
- FloraRockSolid03
|
||||
- FloraGreyStalagmite1
|
||||
- FloraGreyStalagmite2
|
||||
- FloraGreyStalagmite3
|
||||
- FloraGreyStalagmite4
|
||||
- FloraGreyStalagmite5
|
||||
- FloraRockSolid01
|
||||
- FloraRockSolid02
|
||||
- FloraRockSolid03
|
||||
- FloraGreyStalagmite1
|
||||
- FloraGreyStalagmite2
|
||||
- FloraGreyStalagmite3
|
||||
- FloraGreyStalagmite4
|
||||
- FloraGreyStalagmite5
|
||||
- FloraRockSolid01
|
||||
- FloraRockSolid02
|
||||
- FloraRockSolid03
|
||||
- CP14RockSmall
|
||||
- CP14RockSmall
|
||||
- CP14QuartzCrystal
|
||||
- !type:BiomeEntityLayer # lumishroom sage
|
||||
threshold: 0.6
|
||||
|
||||
@@ -208,6 +208,32 @@
|
||||
- CP14FloorGrass
|
||||
entities:
|
||||
- CP14GatherableWildSage
|
||||
- !type:BiomeEntityLayer # More Rocks
|
||||
threshold: 0.7
|
||||
noise:
|
||||
seed: 18
|
||||
noiseType: OpenSimplex2
|
||||
fractalType: FBm
|
||||
frequency: 3
|
||||
allowedTiles:
|
||||
- CP14FloorGrass
|
||||
- CP14FloorGrassLight
|
||||
- CP14FloorGrassTall
|
||||
entities:
|
||||
- CP14RockSmall
|
||||
- !type:BiomeEntityLayer # More Rocks
|
||||
threshold: 0.8
|
||||
noise:
|
||||
seed: 27
|
||||
noiseType: OpenSimplex2
|
||||
fractalType: FBm
|
||||
frequency: 2
|
||||
allowedTiles:
|
||||
- CP14FloorGrass
|
||||
- CP14FloorGrassLight
|
||||
- CP14FloorGrassTall
|
||||
entities:
|
||||
- CP14RockBig
|
||||
|
||||
# Подбиомы лугов
|
||||
|
||||
@@ -225,6 +251,8 @@
|
||||
frequency: 2
|
||||
allowedTiles:
|
||||
- CP14FloorGrass
|
||||
- CP14FloorGrassLight
|
||||
- CP14FloorGrassTall
|
||||
entities:
|
||||
- CP14FloraTree01
|
||||
- CP14FloraTree02
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CLA",
|
||||
"copyright": "created by vladimir.s",
|
||||
"size": {
|
||||
"x": 48,
|
||||
"y": 64
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "rock0"
|
||||
},
|
||||
{
|
||||
"name": "rock1"
|
||||
},
|
||||
{
|
||||
"name": "rock2"
|
||||
},
|
||||
{
|
||||
"name": "rock3"
|
||||
},
|
||||
{
|
||||
"name": "rock4"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 1014 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1009 B |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CLA",
|
||||
"copyright": "created by vladimir.s",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "rock0"
|
||||
},
|
||||
{
|
||||
"name": "rock1"
|
||||
},
|
||||
{
|
||||
"name": "rock2"
|
||||
},
|
||||
{
|
||||
"name": "rock3"
|
||||
},
|
||||
{
|
||||
"name": "rock4"
|
||||
},
|
||||
{
|
||||
"name": "rock5"
|
||||
},
|
||||
{
|
||||
"name": "rock6"
|
||||
},
|
||||
{
|
||||
"name": "rock7"
|
||||
},
|
||||
{
|
||||
"name": "rock8"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 753 B |
|
After Width: | Height: | Size: 607 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 539 B |
|
After Width: | Height: | Size: 440 B |
|
After Width: | Height: | Size: 673 B |
|
After Width: | Height: | Size: 277 B |
|
After Width: | Height: | Size: 712 B |
|
After Width: | Height: | Size: 248 B |