Gems don't grow.
This commit is contained in:
@@ -153,10 +153,6 @@ namespace OpenRa.FileFormats
|
|||||||
if (!HasOverlay(i, j) && GetOreDensity(i, j) > 0 && canSpreadIntoCell(new int2(i,j))
|
if (!HasOverlay(i, j) && GetOreDensity(i, j) > 0 && canSpreadIntoCell(new int2(i,j))
|
||||||
&& r.NextDouble() < oreRate )
|
&& r.NextDouble() < oreRate )
|
||||||
newOverlay[i, j] = (byte)r.Next(5,9);
|
newOverlay[i, j] = (byte)r.Next(5,9);
|
||||||
|
|
||||||
if (!HasOverlay(i, j) && GetGemDensity(i, j) > 0 && canSpreadIntoCell(new int2(i, j))
|
|
||||||
&& r.NextDouble() < gemRate )
|
|
||||||
newOverlay[i, j] = (byte)r.Next(9, 13);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int j = 1; j < 127; j++)
|
for (int j = 1; j < 127; j++)
|
||||||
@@ -168,10 +164,7 @@ namespace OpenRa.FileFormats
|
|||||||
var newDensity = new byte[128, 128];
|
var newDensity = new byte[128, 128];
|
||||||
for (int j = 1; j < 127; j++)
|
for (int j = 1; j < 127; j++)
|
||||||
for (int i = 1; i < 127; i++)
|
for (int i = 1; i < 127; i++)
|
||||||
{
|
|
||||||
if (ContainsOre(i, j)) newDensity[i,j] = GetOreDensity(i, j);
|
if (ContainsOre(i, j)) newDensity[i,j] = GetOreDensity(i, j);
|
||||||
if (ContainsGem(i, j)) newDensity[i,j] = GetGemDensity(i, j);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int j = 1; j < 127; j++)
|
for (int j = 1; j < 127; j++)
|
||||||
for (int i = 1; i < 127; i++)
|
for (int i = 1; i < 127; i++)
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ namespace OpenRa.Game
|
|||||||
if (--oreTicks == 0)
|
if (--oreTicks == 0)
|
||||||
{
|
{
|
||||||
map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom);
|
map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom);
|
||||||
oreTicks = 20;
|
oreTicks = 1;
|
||||||
}
|
}
|
||||||
world.Tick();
|
world.Tick();
|
||||||
UnitInfluence.Tick();
|
UnitInfluence.Tick();
|
||||||
|
|||||||
Reference in New Issue
Block a user