maintenance on Ore
This commit is contained in:
@@ -79,7 +79,6 @@ namespace OpenRa
|
|||||||
players[i] = new Player(i, LobbyInfo.Clients.FirstOrDefault(a => a.Index == i));
|
players[i] = new Player(i, LobbyInfo.Clients.FirstOrDefault(a => a.Index == i));
|
||||||
}
|
}
|
||||||
|
|
||||||
Game.world.Map.InitOreDensity();
|
|
||||||
worldRenderer = new WorldRenderer(renderer);
|
worldRenderer = new WorldRenderer(renderer);
|
||||||
|
|
||||||
SequenceProvider.Initialize(usingAftermath);
|
SequenceProvider.Initialize(usingAftermath);
|
||||||
|
|||||||
@@ -110,17 +110,17 @@ namespace OpenRa
|
|||||||
return (byte)sum;
|
return (byte)sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool HasOverlay(this Map map, int i, int j)
|
static bool HasOverlay(this Map map, int i, int j)
|
||||||
{
|
{
|
||||||
return map.MapTiles[i, j].overlay < overlayIsOre.Length;
|
return map.MapTiles[i, j].overlay < overlayIsOre.Length;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool ContainsOre(this Map map, int i, int j)
|
static bool ContainsOre(this Map map, int i, int j)
|
||||||
{
|
{
|
||||||
return map.HasOverlay(i, j) && overlayIsOre[map.MapTiles[i, j].overlay];
|
return map.HasOverlay(i, j) && overlayIsOre[map.MapTiles[i, j].overlay];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool ContainsGem(this Map map, int i, int j)
|
static bool ContainsGem(this Map map, int i, int j)
|
||||||
{
|
{
|
||||||
return map.HasOverlay(i, j) && overlayIsGems[map.MapTiles[i, j].overlay];
|
return map.HasOverlay(i, j) && overlayIsGems[map.MapTiles[i, j].overlay];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace OpenRa
|
|||||||
|
|
||||||
oreFrequency = (int)(Rules.General.GrowthRate * 60 * 25);
|
oreFrequency = (int)(Rules.General.GrowthRate * 60 * 25);
|
||||||
oreTicks = oreFrequency;
|
oreTicks = oreFrequency;
|
||||||
|
Map.InitOreDensity();
|
||||||
|
|
||||||
CreateActor("World", new int2(int.MaxValue, int.MaxValue), null);
|
CreateActor("World", new int2(int.MaxValue, int.MaxValue), null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user