Ore tweaks (#16930)

- Guaranteed spawns in salvage
- Triple vein count
- Made it so rocks only drop 1 as it's kinda whacky (I believe they still convert differently to bars).
This commit is contained in:
metalgearsloth
2023-05-31 13:40:36 +10:00
committed by GitHub
parent 72d5ffb94c
commit ed1ff4df06
7 changed files with 33 additions and 25 deletions

View File

@@ -205,6 +205,15 @@ public sealed class SpawnSalvageMissionJob : Job<bool>
}
// Handle loot
// We'll always add this loot if possible
foreach (var lootProto in _prototypeManager.EnumeratePrototypes<SalvageLootPrototype>())
{
if (!lootProto.Guaranteed)
continue;
await SpawnDungeonLoot(dungeon, lootProto, mapUid, grid, random, reservedTiles);
}
foreach (var (loot, count) in mission.Loot)
{
for (var i = 0; i < count; i++)