Rebalance magnet debris, update worldgen (#37025)

This commit is contained in:
Nemanja
2025-04-28 23:37:39 -04:00
committed by GitHub
parent ef49416540
commit f75811b4cb
5 changed files with 137 additions and 29 deletions

View File

@@ -54,9 +54,6 @@ allow_multi_server_play = false
[atmos]
max_explosion_range = 5
[worldgen]
enabled = true
[status]
privacy_policy_link = "https://spacestation14.com/about/privacy/#game-server-privacy-policy"
privacy_policy_identifier = "wizden"

View File

@@ -266,16 +266,16 @@
children:
- !type:NestedSelector
tableId: SalvageEquipmentCommon
weight: 50
weight: 20
- !type:NestedSelector
tableId: SalvageEquipmentUncommon
weight: 35
- !type:NestedSelector
tableId: SalvageEquipmentRare
weight: 14
weight: 35
- !type:NestedSelector
tableId: SalvageEquipmentLegendary
weight: 1
weight: 10
# 5% chance of decent-ish treasure
- !type:GroupSelector
weight: 5
@@ -325,16 +325,16 @@
children:
- !type:NestedSelector
tableId: SalvageEquipmentCommon
weight: 15
weight: 5
- !type:NestedSelector
tableId: SalvageEquipmentUncommon
weight: 40
weight: 25
- !type:NestedSelector
tableId: SalvageEquipmentRare
weight: 35
weight: 45
- !type:NestedSelector
tableId: SalvageEquipmentLegendary
weight: 10
weight: 25
# 5% chance of decent-ish treasure
- !type:GroupSelector
weight: 5
@@ -407,20 +407,36 @@
id: SalvageMagnetMobTable
table: !type:GroupSelector
children:
- id: MobCarpSalvage
weight: 80
- id: MobCarpSalvage
weight: 15
amount: !type:RangeNumberSelector
range: 1, 3
- !type:AllSelector
- !type:GroupSelector # normal theats
weight: 95
children:
- id: MobCarpSalvage
weight: 2
- !type:AllSelector
weight: 1
children:
- id: LandMineExplosive
- !type:NestedSelector # what's that thing underneath the scrap?
prob: 0.33
tableId: SalvageScrapSpawnerCommon
- !type:GroupSelector # scary monsters
weight: 5
children:
- id: MobSharkSalvage
- id: MobCarpSalvage
amount: !type:ConstantNumberSelector
value: 2
# - id: MobHivebot (solo hivebot spawn)
- !type:AllSelector
children:
- id: MobSharkSalvage
- id: MobCarpSalvage
amount: !type:ConstantNumberSelector
value: 2
- !type:NestedSelector
rolls: !type:RangeNumberSelector
range: 1, 3
tableId: SalvageTreasureSpawnerValuable
- !type:NestedSelector
rolls: !type:RangeNumberSelector
range: 7, 10
tableId: TreasureCoinPileRare
#- id: MobHivebot (solo hivebot spawn)
- type: entity
parent: MarkerBase
@@ -458,6 +474,42 @@
prob: 1.0
tableId: SalvageMagnetMobTable
- type: entity
parent: MarkerBase
id: SalvageSpawnerStructuresVarious
name: Space Debris Structure Spawner
components:
- type: Sprite
layers:
- state: green
- sprite: Structures/Storage/tanks.rsi
state: fueltank-2
- type: EntityTableSpawner
table: !type:GroupSelector
children:
- id: WeldingFuelTankFull
weight: 0.5
- !type:GroupSelector
children:
- id: Table
weight: 2
- id: TableFrame
- id: SalvageCanisterSpawner
- id: Rack
- !type:NestedSelector
weight: 0.5
tableId: LowValueCrateTable
- id: ComputerBroken
weight: 0.1
- id: CrateGeneric
weight: 0.25
- id: ClosetMaintenanceFilledRandom
weight: 2
- !type:GroupSelector
children:
- id: Thruster
- id: Gyroscope
- type: entity
parent: MarkerBase
id: SalvageSpawnerMobShark

View File

@@ -80,6 +80,25 @@
- /Maps/Ruins/whiteship_ancient.yml
- /Maps/Ruins/whiteship_bluespacejumper.yml
- /Maps/Ruins/wrecklaimer.yml
wrecks: !type:DungeonSpawnGroup
minimumDistance: 150
maximumDistance: 300
stationGrid: false
minCount: 12
maxCount: 16
addComponents:
- type: Gravity
enabled: true
inherent: true
- type: IFF
flags: HideLabel
color: "#88b0d1"
protos:
- ChunkDebrisSmall
- ChunkDebrisSmall
- ChunkDebrisSmall
- ChunkDebrisSmall
- ChunkDebris
vgroid: !type:DungeonSpawnGroup
minimumDistance: 300
maximumDistance: 350
@@ -89,6 +108,9 @@
- type: Gravity
enabled: true
inherent: true
- type: IFF
flags: HideLabel
color: "#d67e27"
protos:
- VGRoid

View File

@@ -38,3 +38,44 @@
# Generate biome
- !type:BiomeDunGen
biomeTemplate: SpaceDebris
- type: dungeonConfig
id: ChunkDebrisSmall
# Floor generation
layers:
- !type:NoiseDunGen
tileCap: 150
capStd: 32
iterations: 3
layers:
- tile: FloorSteel
threshold: 0.50
noise:
frequency: 0.05
noiseType: OpenSimplex2
fractalType: FBm
octaves: 3
lacunarity: 3
gain: 0.5
- tile: Plating
threshold: 0.35
noise:
frequency: 0.05
noiseType: OpenSimplex2
fractalType: FBm
octaves: 3
lacunarity: 3
gain: 0.3
- tile: Lattice
threshold: 0.25
noise:
frequency: 0.05
noiseType: OpenSimplex2
fractalType: FBm
octaves: 3
lacunarity: 3
gain: 0.5
# Generate biome
- !type:BiomeDunGen
biomeTemplate: SpaceDebris

View File

@@ -70,12 +70,7 @@
- Plating
- FloorSteel
entities:
- WeldingFuelTankFull
- Table
- SalvageCanisterSpawner
- Rack
- ClosetMaintenanceFilledRandom
- ClosetMaintenanceFilledRandom
- SalvageSpawnerStructuresVarious
- !type:BiomeEntityLayer
allowedTiles:
- FloorSteel
@@ -108,7 +103,8 @@
- !type:BiomeEntityLayer
allowedTiles:
- FloorSteel
threshold: 0.90
- Plating
threshold: 0.925
noise:
seed: 1
frequency: 1