@@ -8,11 +8,11 @@ public sealed partial class SalvageMagnetComponent : Component
|
|||||||
/// Scales from 50% to 100%.
|
/// Scales from 50% to 100%.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField]
|
[DataField]
|
||||||
public float MagnetSpawnDistance = 128f;
|
public float MagnetSpawnDistance = 64f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// How far offset to either side will the magnet wreck spawn.
|
/// How far offset to either side will the magnet wreck spawn.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField]
|
[DataField]
|
||||||
public float LateralOffset = 32f;
|
public float LateralOffset = 16f;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ public abstract partial class SharedSalvageSystem
|
|||||||
{
|
{
|
||||||
private readonly List<SalvageMapPrototype> _salvageMaps = new();
|
private readonly List<SalvageMapPrototype> _salvageMaps = new();
|
||||||
|
|
||||||
private Dictionary<ISalvageMagnetOffering, float> _offeringWeights = new()
|
private readonly Dictionary<ISalvageMagnetOffering, float> _offeringWeights = new()
|
||||||
{
|
{
|
||||||
{ new AsteroidOffering(), 3.0f },
|
{ new AsteroidOffering(), 4.5f },
|
||||||
{ new DebrisOffering(), 4.0f },
|
{ new DebrisOffering(), 3.5f },
|
||||||
{ new SalvageOffering(), 1.0f }
|
{ new SalvageOffering(), 2.0f },
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly List<ProtoId<DungeonConfigPrototype>> _asteroidConfigs = new()
|
private readonly List<ProtoId<DungeonConfigPrototype>> _asteroidConfigs = new()
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ salvage-magnet-resources-count = {$count ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Debris
|
# Debris
|
||||||
salvage-magnet-debris-ChunkDebris = Space Debris
|
salvage-magnet-debris-ChunkDebris = Space debris
|
||||||
|
|
||||||
# Asteroids
|
# Asteroids
|
||||||
dungeon-config-proto-BlobAsteroid = Asteroid clump
|
dungeon-config-proto-BlobAsteroid = Asteroid clump
|
||||||
|
|||||||
@@ -260,25 +260,25 @@
|
|||||||
id: SalvageEquipmentSpawnerCommon
|
id: SalvageEquipmentSpawnerCommon
|
||||||
table: !type:GroupSelector
|
table: !type:GroupSelector
|
||||||
children:
|
children:
|
||||||
# 80% chance of equipment item
|
# 90% chance of equipment item
|
||||||
- !type:GroupSelector
|
- !type:GroupSelector
|
||||||
weight: 80
|
weight: 90
|
||||||
children:
|
children:
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentCommon
|
tableId: SalvageEquipmentCommon
|
||||||
weight: 60
|
weight: 50
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentUncommon
|
tableId: SalvageEquipmentUncommon
|
||||||
weight: 30
|
weight: 35
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentRare
|
tableId: SalvageEquipmentRare
|
||||||
weight: 9
|
weight: 14
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentLegendary
|
tableId: SalvageEquipmentLegendary
|
||||||
weight: 1
|
weight: 1
|
||||||
# 15% chance of decent-ish treasure
|
# 5% chance of decent-ish treasure
|
||||||
- !type:GroupSelector
|
- !type:GroupSelector
|
||||||
weight: 15
|
weight: 5
|
||||||
children:
|
children:
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageTreasureCommon
|
tableId: SalvageTreasureCommon
|
||||||
@@ -319,25 +319,25 @@
|
|||||||
id: SalvageEquipmentSpawnerValuable
|
id: SalvageEquipmentSpawnerValuable
|
||||||
table: !type:GroupSelector
|
table: !type:GroupSelector
|
||||||
children:
|
children:
|
||||||
# 80% chance of equipment item
|
# 90% chance of equipment item
|
||||||
- !type:GroupSelector
|
- !type:GroupSelector
|
||||||
weight: 80
|
weight: 90
|
||||||
children:
|
children:
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentCommon
|
tableId: SalvageEquipmentCommon
|
||||||
weight: 45
|
|
||||||
- !type:NestedSelector
|
|
||||||
tableId: SalvageEquipmentUncommon
|
|
||||||
weight: 35
|
|
||||||
- !type:NestedSelector
|
|
||||||
tableId: SalvageEquipmentRare
|
|
||||||
weight: 15
|
weight: 15
|
||||||
|
- !type:NestedSelector
|
||||||
|
tableId: SalvageEquipmentUncommon
|
||||||
|
weight: 40
|
||||||
|
- !type:NestedSelector
|
||||||
|
tableId: SalvageEquipmentRare
|
||||||
|
weight: 35
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageEquipmentLegendary
|
tableId: SalvageEquipmentLegendary
|
||||||
weight: 5
|
weight: 10
|
||||||
# 14% chance of decent-ish treasure
|
# 5% chance of decent-ish treasure
|
||||||
- !type:GroupSelector
|
- !type:GroupSelector
|
||||||
weight: 14
|
weight: 5
|
||||||
children:
|
children:
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageTreasureCommon
|
tableId: SalvageTreasureCommon
|
||||||
@@ -348,9 +348,9 @@
|
|||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: SalvageTreasureRare
|
tableId: SalvageTreasureRare
|
||||||
weight: 10
|
weight: 10
|
||||||
# 5% chance of decent maintenance loot
|
# 4% chance of decent maintenance loot
|
||||||
- !type:GroupSelector
|
- !type:GroupSelector
|
||||||
weight: 5
|
weight: 4
|
||||||
children:
|
children:
|
||||||
- !type:NestedSelector
|
- !type:NestedSelector
|
||||||
tableId: MaintToolsTable
|
tableId: MaintToolsTable
|
||||||
@@ -408,9 +408,9 @@
|
|||||||
table: !type:GroupSelector
|
table: !type:GroupSelector
|
||||||
children:
|
children:
|
||||||
- id: MobCarpSalvage
|
- id: MobCarpSalvage
|
||||||
weight: 70
|
weight: 80
|
||||||
- id: MobCarpSalvage
|
- id: MobCarpSalvage
|
||||||
weight: 25
|
weight: 15
|
||||||
amount: !type:RangeNumberSelector
|
amount: !type:RangeNumberSelector
|
||||||
range: 1, 3
|
range: 1, 3
|
||||||
- !type:AllSelector
|
- !type:AllSelector
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
- id: MobSharkSalvage
|
- id: MobSharkSalvage
|
||||||
- id: MobCarpSalvage
|
- id: MobCarpSalvage
|
||||||
amount: !type:ConstantNumberSelector
|
amount: !type:ConstantNumberSelector
|
||||||
value: 3
|
value: 2
|
||||||
# - id: MobHivebot (solo hivebot spawn)
|
# - id: MobHivebot (solo hivebot spawn)
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
|
|||||||
@@ -39,7 +39,10 @@
|
|||||||
- type: MobThresholds
|
- type: MobThresholds
|
||||||
thresholds:
|
thresholds:
|
||||||
0: Alive
|
0: Alive
|
||||||
50: Dead
|
40: Dead
|
||||||
|
- type: MovementSpeedModifier
|
||||||
|
baseWalkSpeed: 2.5
|
||||||
|
baseSprintSpeed: 3.5
|
||||||
- type: Stamina
|
- type: Stamina
|
||||||
critThreshold: 100
|
critThreshold: 100
|
||||||
- type: DamageStateVisuals
|
- type: DamageStateVisuals
|
||||||
@@ -65,8 +68,8 @@
|
|||||||
path: /Audio/Effects/bite.ogg
|
path: /Audio/Effects/bite.ogg
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Piercing: 5
|
Blunt: 5
|
||||||
Slash: 10
|
Slash: 7
|
||||||
- type: TypingIndicator
|
- type: TypingIndicator
|
||||||
proto: alien
|
proto: alien
|
||||||
- type: Tag
|
- type: Tag
|
||||||
@@ -219,7 +222,7 @@
|
|||||||
- type: MobThresholds
|
- type: MobThresholds
|
||||||
thresholds:
|
thresholds:
|
||||||
0: Alive
|
0: Alive
|
||||||
180: Dead
|
150: Dead
|
||||||
- type: Stamina
|
- type: Stamina
|
||||||
critThreshold: 150
|
critThreshold: 150
|
||||||
- type: DamageStateVisuals
|
- type: DamageStateVisuals
|
||||||
@@ -243,7 +246,7 @@
|
|||||||
- type: MeleeWeapon
|
- type: MeleeWeapon
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Slash: 12
|
Slash: 10
|
||||||
Bloodloss: 5
|
Bloodloss: 5
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
OreSalt: 0.25
|
OreSalt: 0.25
|
||||||
OreGold: 0.25
|
OreGold: 0.25
|
||||||
OreSilver: 0.25
|
OreSilver: 0.25
|
||||||
OrePlasma: 0.15
|
OrePlasma: 0.20
|
||||||
OreUranium: 0.15
|
OreUranium: 0.20
|
||||||
OreArtifactFragment: 0.10
|
OreArtifactFragment: 0.10
|
||||||
OreBananium: 0.10
|
OreBananium: 0.10
|
||||||
|
|
||||||
@@ -49,32 +49,32 @@
|
|||||||
replacement: AsteroidRock
|
replacement: AsteroidRock
|
||||||
entity: AsteroidRockGold
|
entity: AsteroidRockGold
|
||||||
count: 4
|
count: 4
|
||||||
minGroupSize: 4
|
minGroupSize: 5
|
||||||
maxGroupSize: 6
|
maxGroupSize: 7
|
||||||
|
|
||||||
- type: oreDunGen
|
- type: oreDunGen
|
||||||
id: OreSilver
|
id: OreSilver
|
||||||
replacement: AsteroidRock
|
replacement: AsteroidRock
|
||||||
entity: AsteroidRockSilver
|
entity: AsteroidRockSilver
|
||||||
count: 4
|
count: 4
|
||||||
minGroupSize: 4
|
minGroupSize: 5
|
||||||
maxGroupSize: 6
|
maxGroupSize: 7
|
||||||
|
|
||||||
- type: oreDunGen
|
- type: oreDunGen
|
||||||
id: OrePlasma
|
id: OrePlasma
|
||||||
replacement: AsteroidRock
|
replacement: AsteroidRock
|
||||||
entity: AsteroidRockPlasma
|
entity: AsteroidRockPlasma
|
||||||
count: 4
|
count: 4
|
||||||
minGroupSize: 3
|
minGroupSize: 5
|
||||||
maxGroupSize: 6
|
maxGroupSize: 7
|
||||||
|
|
||||||
- type: oreDunGen
|
- type: oreDunGen
|
||||||
id: OreUranium
|
id: OreUranium
|
||||||
replacement: AsteroidRock
|
replacement: AsteroidRock
|
||||||
entity: AsteroidRockUranium
|
entity: AsteroidRockUranium
|
||||||
count: 4
|
count: 4
|
||||||
minGroupSize: 3
|
minGroupSize: 5
|
||||||
maxGroupSize: 6
|
maxGroupSize: 7
|
||||||
|
|
||||||
- type: oreDunGen
|
- type: oreDunGen
|
||||||
id: OreBananium
|
id: OreBananium
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
- !type:NoiseDunGen
|
- !type:NoiseDunGen
|
||||||
tileCap: 500
|
tileCap: 500
|
||||||
capStd: 32
|
capStd: 32
|
||||||
iterations: 5
|
iterations: 7
|
||||||
layers:
|
layers:
|
||||||
- tile: FloorSteel
|
- tile: FloorSteel
|
||||||
threshold: 0.50
|
threshold: 0.50
|
||||||
|
|||||||
@@ -85,29 +85,30 @@
|
|||||||
seed: 1
|
seed: 1
|
||||||
frequency: 1
|
frequency: 1
|
||||||
entities:
|
entities:
|
||||||
|
- SalvageSpawnerScrapValuable
|
||||||
|
- SalvageSpawnerScrapCommon
|
||||||
|
- SalvageSpawnerScrapCommon
|
||||||
- SalvageSpawnerScrapCommon
|
- SalvageSpawnerScrapCommon
|
||||||
- SalvageSpawnerScrapCommon75
|
- SalvageSpawnerScrapCommon75
|
||||||
- SalvageSpawnerScrapCommon75
|
|
||||||
- SalvageSpawnerScrapValuable
|
|
||||||
- SalvageSpawnerScrapValuable75
|
|
||||||
- !type:BiomeEntityLayer
|
- !type:BiomeEntityLayer
|
||||||
allowedTiles:
|
allowedTiles:
|
||||||
- FloorSteel
|
- FloorSteel
|
||||||
|
- Plating
|
||||||
threshold: 0.7
|
threshold: 0.7
|
||||||
noise:
|
noise:
|
||||||
seed: 1
|
seed: 1
|
||||||
frequency: 1
|
frequency: 1
|
||||||
entities:
|
entities:
|
||||||
|
- SalvageSpawnerTreasure
|
||||||
|
- SalvageSpawnerTreasure
|
||||||
|
- SalvageSpawnerEquipment
|
||||||
|
- SalvageSpawnerEquipment
|
||||||
- SalvageSpawnerTreasureValuable
|
- SalvageSpawnerTreasureValuable
|
||||||
- SalvageSpawnerEquipmentValuable
|
- SalvageSpawnerEquipmentValuable
|
||||||
- SalvageSpawnerTreasure
|
|
||||||
- SalvageSpawnerTreasure
|
|
||||||
- SalvageSpawnerEquipment
|
|
||||||
- SalvageSpawnerEquipment
|
|
||||||
- !type:BiomeEntityLayer
|
- !type:BiomeEntityLayer
|
||||||
allowedTiles:
|
allowedTiles:
|
||||||
- FloorSteel
|
- FloorSteel
|
||||||
threshold: 0.85
|
threshold: 0.90
|
||||||
noise:
|
noise:
|
||||||
seed: 1
|
seed: 1
|
||||||
frequency: 1
|
frequency: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user