Dungeon Builder Tweak a little more!
This commit is contained in:
@@ -844,7 +844,7 @@ public class DungeonGeneratorV2
|
|||||||
|
|
||||||
// Roll for variance (we roll first, then attempt primary/variance accordingly)
|
// Roll for variance (we roll first, then attempt primary/variance accordingly)
|
||||||
double roll = _rng.NextDouble();
|
double roll = _rng.NextDouble();
|
||||||
bool wantVariance = roll < 0.15;
|
bool wantVariance = roll < 0.25;
|
||||||
|
|
||||||
if (VerboseFloorLogging)
|
if (VerboseFloorLogging)
|
||||||
Console.WriteLine($"[DungeonGenV2][Floors] cell=({x},{y}) roll={roll:0.000} wantVariance={wantVariance} primaryFits={primaryFits}");
|
Console.WriteLine($"[DungeonGenV2][Floors] cell=({x},{y}) roll={roll:0.000} wantVariance={wantVariance} primaryFits={primaryFits}");
|
||||||
@@ -881,7 +881,7 @@ public class DungeonGeneratorV2
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Primary doesn't fit or doesn't exist: do full per-cell pick (85/15 inside the picker)
|
// Primary doesn't fit or doesn't exist: do full per-cell pick (85/15 inside the picker)
|
||||||
chosen = PickRandomFloorTile(layout, x, y, familyId, varianceChance: 0.45);
|
chosen = PickRandomFloorTile(layout, x, y, familyId, varianceChance: 0.25);
|
||||||
perCellPickCount++;
|
perCellPickCount++;
|
||||||
|
|
||||||
if (chosen == null)
|
if (chosen == null)
|
||||||
@@ -994,7 +994,7 @@ public class DungeonGeneratorV2
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Try to find a better fitting tile from the same family
|
// Try to find a better fitting tile from the same family
|
||||||
var replacement = PickRandomFloorTile_AllDirs(layout, x, y, familyId, varianceChance: 0.15);
|
var replacement = PickRandomFloorTile_AllDirs(layout, x, y, familyId, varianceChance: 0.25);
|
||||||
if (replacement == null || replacement.Id == cur.Id)
|
if (replacement == null || replacement.Id == cur.Id)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -1068,7 +1068,7 @@ public class DungeonGeneratorV2
|
|||||||
DungeonLayoutV2 layout,
|
DungeonLayoutV2 layout,
|
||||||
int x, int y,
|
int x, int y,
|
||||||
int familyId,
|
int familyId,
|
||||||
double varianceChance = 0.15)
|
double varianceChance = 0.25)
|
||||||
{
|
{
|
||||||
var requiredSocketTags = BuildRequiredSocketTags_AllDirs(layout, x, y);
|
var requiredSocketTags = BuildRequiredSocketTags_AllDirs(layout, x, y);
|
||||||
|
|
||||||
@@ -1962,7 +1962,7 @@ public class DungeonGeneratorV2
|
|||||||
DungeonLayoutV2 layout,
|
DungeonLayoutV2 layout,
|
||||||
int x, int y,
|
int x, int y,
|
||||||
int familyId,
|
int familyId,
|
||||||
double varianceChance = 0.15)
|
double varianceChance = 0.25)
|
||||||
{
|
{
|
||||||
var requiredSocketTags = BuildRequiredSocketTags(layout, x, y);
|
var requiredSocketTags = BuildRequiredSocketTags(layout, x, y);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user