Skip to content

Commit

Permalink
tweak world gen (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze authored Dec 20, 2023
1 parent 7031833 commit 5ab18e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public sealed partial class DebrisFeaturePlacerControllerComponent : Component
/// <summary>
/// The chance spawning a piece of debris will just be cancelled randomly.
/// </summary>
[DataField("randomCancelChance")] public float RandomCancellationChance = 0.1f;
[DataField("randomCancelChance")] public float RandomCancellationChance = 0.35f;

/// <summary>
/// Radius in which there should be no objects for debris to spawn.
/// </summary>
[DataField("safetyZoneRadius")] public float SafetyZoneRadius = 16.0f;
[DataField("safetyZoneRadius")] public float SafetyZoneRadius = 24.0f;

/// <summary>
/// The noise channel to use as a density controller.
Expand Down
10 changes: 2 additions & 8 deletions Resources/Prototypes/Entities/World/Debris/asteroids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@
- id: SpawnMobKangarooSalvage
prob: 0.001
orGroup: rock
- id: SpawnMobSmallPurpleSnake
prob: 0.001
orGroup: rock
- id: SpawnMobPurpleSnake
prob: 0.001
orGroup: rock
- type: GCAbleObject
queue: SpaceDebris
- type: IFF
Expand Down Expand Up @@ -117,8 +111,8 @@
components:
- type: MapGrid
- type: BlobFloorPlanBuilder
radius: 32
floorPlacements: 128
radius: 28
floorPlacements: 108

- type: entity
id: AsteroidSalvageSmall
Expand Down
6 changes: 3 additions & 3 deletions Resources/Prototypes/World/Biomes/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
##- id: AsteroidDebrisSmall
- id: AsteroidDebrisMedium
- id: AsteroidDebrisLarge
prob: 0.7
prob: 0.6
- id: AsteroidDebrisLarger
prob: 0.4
prob: 0.3
- id: AsteroidDebrisHuge
prob: 0.2
prob: 0.15
- type: NoiseDrivenDebrisSelector
noiseChannel: Wreck
debrisTable:
Expand Down

0 comments on commit 5ab18e4

Please sign in to comment.