Make procgen use weighted variants (#24669)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Numerics;
|
||||
using Content.Shared.Decals;
|
||||
using Content.Shared.Maps;
|
||||
using Content.Shared.Procedural;
|
||||
using Content.Shared.Random.Helpers;
|
||||
using Content.Shared.Whitelist;
|
||||
@@ -230,7 +231,7 @@ public sealed partial class DungeonSystem
|
||||
// but place 1 nanometre off grid and fail the add.
|
||||
if (!_maps.TryGetTileRef(gridUid, grid, tilePos, out var tileRef) || tileRef.Tile.IsEmpty)
|
||||
{
|
||||
_maps.SetTile(gridUid, grid, tilePos, _tileDefManager.GetVariantTile(FallbackTileId, _random));
|
||||
_maps.SetTile(gridUid, grid, tilePos, _tile.GetVariantTile((ContentTileDefinition) _tileDefManager[FallbackTileId], _random.GetRandom()));
|
||||
}
|
||||
|
||||
var result = _decals.TryAddDecal(
|
||||
|
||||
Reference in New Issue
Block a user