Skip to content

Commit

Permalink
Procgen pack (#178)
Browse files Browse the repository at this point in the history
* disable rock formations

* adds a bunch of new flora decals for procgen

* disable junk loot spawners in procgen

* adds two new logs to procgen that can be gathered for timber and planks. One is a stash.
  • Loading branch information
Peptide90 authored Apr 23, 2024
1 parent 347ff05 commit 40eb9ed
Show file tree
Hide file tree
Showing 28 changed files with 463 additions and 38 deletions.
135 changes: 135 additions & 0 deletions Resources/Prototypes/Nuclear14/Decals/floradecals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
- type: decal
id: FloraBranch1
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: branch

- type: decal
id: FloraBranchBroken
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: branch_broken

- type: decal
id: FloraBranchBrushwood
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: brushwood

- type: decal
id: FloraBranchBrushwoodAlt
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: brushwood_alt

- type: decal
id: FloraTallGrass1
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_1

- type: decal
id: FloraTallGrass2
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_2

- type: decal
id: FloraTallGrass3
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_3

- type: decal
id: FloraTallGrass4
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_4

- type: decal
id: FloraTallGrass5
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_5

- type: decal
id: FloraTallGrass6
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_6

- type: decal
id: FloraTallGrass7
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_7

- type: decal
id: FloraTallGrass8
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tall_grass_8

- type: decal
id: FloraDeadBroc
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: broc-dead

- type: decal
id: FloraDeadXander
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: xander-dead

- type: decal
id: FloraDeadMutfruit
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: mutfruit-dead

- type: decal
id: FloraDeadFerocactus
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: ferocactus-dead

- type: decal
id: FloraDeadAgave
tags: ["flora"]
snapCardinals: true
sprite:
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: agave-dead
118 changes: 118 additions & 0 deletions Resources/Prototypes/Nuclear14/Entities/Objects/Decoration/flora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
- type: entity
id: N14FloraLog1
name: log
description: Once a tree, always a log.
components:
- type: Clickable
- type: InteractionOutline
- type: Sprite
noRot: true
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tree_log
drawdepth: Overdoors
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.35,-0.4,0.35,0.4"
density: 100
layer:
- WallLayer
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: MeleeSound
soundGroups:
Brute:
path: /Audio/Effects/chop.ogg
params:
variation: 0.05
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/tree_fell.ogg
params:
volume: 5
variation: 0.05
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
N14FloraTimber:
min: 1
max: 1
- type: SoundOnGather
- type: Gatherable
whitelist:
tags:
- Axe
- BotanyHatchet
- type: OreVein
oreChance: 1.0
currentOre: Timber

- type: entity
parent: N14FloraLog1
id: N14FloraTimber
components:
- type: Sprite
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: tree_timber
- type: SoundOnGather
- type: Gatherable
whitelist:
tags:
- Saw
- type: OreVein
oreChance: 1.0
currentOre: WoodPlank
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/tree_fell.ogg
params:
volume: 5
variation: 0.05
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 1
max: 1

- type: entity
parent: N14FloraLog1
id: N14FloraLog3
components:
- type: Sprite
sprite: Nuclear14/Structures/Decoration/flora.rsi
state: timber
- type: PottedPlantHide
- type: SecretStash
secretPartName: secret-stash-part-plant
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- type: Tag
tags:
- BotanyHatchet
- Axe
- type: Sharp
- type: Sprite
sprite: Nuclear14/Objects/Weapons/Melee/hatchet.rsi
Expand Down
107 changes: 69 additions & 38 deletions Resources/Prototypes/Nuclear14/Procedural/biome_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,35 @@
- bushsnowb2
- bushsnowb3
color: '#efb34194'
# Tall grass, dead plants and branches
- !type:BiomeDecalLayer
allowedTiles:
- FloorWasteland
divisions: 1
threshold: -0.0
noise:
seed: 0
noiseType: Cellular
frequency: 2
fractalType: None
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
decals:
- FloraBranchBrushwood
- FloraBranchBrushwoodAlt
- FloraTallGrass1
- FloraTallGrass2
- FloraTallGrass3
- FloraTallGrass4
- FloraTallGrass5
- FloraTallGrass6
- FloraTallGrass7
- FloraTallGrass8
- FloraDeadBroc
- FloraDeadXander
- FloraDeadMutfruit
- FloraDeadFerocactus
- FloraDeadAgave
# Little bit of basalt
- !type:BiomeDecalLayer
allowedTiles:
Expand Down Expand Up @@ -166,46 +195,48 @@
- N14WastelandFloraWildPricklypear
- N14WastelandFloraWildBananaYucca
- SpawnPointWave
- N14FloraLog1
- N14FloraLog3
# Loot Things. Split later into junk lootable/growing gatherable
- !type:BiomeEntityLayer
threshold: 0.8
noise:
seed: 2
noiseType: OpenSimplex2
fractalType: FBm
frequency: 1
allowedTiles:
- FloorWasteland
entities:
- N14JunkPile1Refilling1
- N14JunkPile1Refilling2
- N14JunkPile1Refilling3
- N14JunkPile1Refilling4
- N14JunkPile1Refilling5
- N14JunkPile1Refilling6
- N14JunkPile1Refilling7
- N14JunkPile1Refilling8
- N14JunkPile1Refilling9
- N14JunkPile1Refilling10
- N14JunkPile1Refilling11
- N14JunkPile1Refilling12
# - !type:BiomeEntityLayer
# threshold: 0.8
# noise:
# seed: 2
# noiseType: OpenSimplex2
# fractalType: FBm
# frequency: 1
# allowedTiles:
# - FloorWasteland
# entities:
# - N14JunkPile1Refilling1
# - N14JunkPile1Refilling2
# - N14JunkPile1Refilling3
# - N14JunkPile1Refilling4
# - N14JunkPile1Refilling5
# - N14JunkPile1Refilling6
# - N14JunkPile1Refilling7
# - N14JunkPile1Refilling8
# - N14JunkPile1Refilling9
# - N14JunkPile1Refilling10
# - N14JunkPile1Refilling11
# - N14JunkPile1Refilling12
# Rock formations
- !type:BiomeEntityLayer
allowedTiles:
- FloorWasteland
threshold: -0.15
noise:
seed: 0
noiseType: Cellular
frequency: 0.025
lacunarity: 2
fractalType: FBm
octaves: 5
gain: 1
cellularDistanceFunction: Euclidean
cellularReturnType: Distance2
entities:
- WallRock
# - !type:BiomeEntityLayer
# allowedTiles:
# - FloorWasteland
# threshold: -0.15
# noise:
# seed: 0
# noiseType: Cellular
# frequency: 0.025
# lacunarity: 2
# fractalType: FBm
# octaves: 5
# gain: 1
# cellularDistanceFunction: Euclidean
# cellularReturnType: Distance2
# entities:
# - WallRock
- !type:BiomeDummyLayer
id: Loot
- !type:BiomeTileLayer
Expand Down
Loading

0 comments on commit 40eb9ed

Please sign in to comment.