Snowdrifts (#669)

* snowdrifts

* Update fire.png

* alerts sprite optimize

* Update wooden.png

* stone wall fix
This commit is contained in:
Ed
2024-12-13 16:59:37 +03:00
committed by GitHub
parent 3f8757dec9
commit e1f67be2a8
37 changed files with 141 additions and 9 deletions

View File

@@ -71,4 +71,16 @@
- state: forest
- state: frame
- type: CP14BiomeSpawner
biome: CP14GrasslandHills
biome: CP14GrasslandHills
- type: entity
id: CP14BiomeSpawnerSnowland
parent: CP14BaseBiomeSpawner
suffix: Snowland
components:
- type: Sprite
layers:
- state: snow
- state: frame
- type: CP14BiomeSpawner
biome: CP14Snowland

View File

@@ -0,0 +1,47 @@
- type: entity
parent: BaseStructure
id: CP14Snowdrift
name: snowdrift
description: A big, cold pile of snow.
categories: [ ForkFiltered ]
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: PlacementReplacement
key: floorTile
- type: Sprite
sprite: _CP14/Structures/Flora/snowdrift.rsi
drawdepth: BelowFloor
- type: Icon
sprite: _CP14/Structures/Flora/snowdrift.rsi
state: full
- type: IconSmooth
key: CP14Snowdrift
base: state
- type: FloorOccluder
- type: Transform
anchored: true
- type: SpeedModifierContacts
walkSpeedModifier: 0.5
sprintSpeedModifier: 0.5
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
layer:
- SlipLayer
mask:
- ItemMask
density: 1000
hard: false
- type: FootstepModifier
footstepSoundCollection:
collection: FootstepSnow
params:
volume: 8

View File

@@ -30,6 +30,12 @@
gain: 0.7
domainWarpType: OpenSimplex2
domainWarpAmp: 120
- type: biomeTemplate
id: CP14Snowland
layers:
- !type:BiomeMetaLayer
template: CP14SnowFill
- !type:BiomeEntityLayer # More Trees
threshold: 0.4
noise:
@@ -43,4 +49,22 @@
- CP14FloorSnowDeepDeep
entities:
- CP14FloraTreeSnow
#- CP14FloraTreeGreenLarge
#- CP14FloraTreeGreenLarge
- !type:BiomeEntityLayer # Snowdrifts
threshold: 0.3
noise:
seed: 23
noiseType: OpenSimplex2
fractalType: Ridged
frequency: 0.05
octaves: 3
lacunarity: 1.8
gain: 0.7
domainWarpType: OpenSimplex2
domainWarpAmp: 120
allowedTiles:
- CP14FloorSnow
- CP14FloorSnowDeep
- CP14FloorSnowDeepDeep
entities:
- CP14Snowdrift