some small changes to make it actually *work*.
This commit is contained in:
@@ -104,7 +104,7 @@ namespace OpenRA.Traits
|
||||
public int GetIdealDensity(int x, int y)
|
||||
{
|
||||
return (GetAdjacentCellsWith(content[x, y].type, x, y) *
|
||||
content[x, y].image.Length) / 9;
|
||||
(content[x, y].image.Length - 1)) / 9;
|
||||
}
|
||||
|
||||
public void AddResource(ResourceTypeInfo info, int i, int j, int n)
|
||||
@@ -130,7 +130,10 @@ namespace OpenRA.Traits
|
||||
if (type == null) return null;
|
||||
|
||||
if (--content[p.X, p.Y].density < 0)
|
||||
{
|
||||
content[p.X, p.Y].type = null;
|
||||
content[p.X, p.Y].image = null;
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
Building:
|
||||
Dimensions: 1,1
|
||||
Footprint: x
|
||||
BaseNormal: no
|
||||
BuildSounds: constru2.aud, hvydoor1.aud
|
||||
SellSounds: cashturn.aud
|
||||
RenderBuilding:
|
||||
@@ -64,6 +63,7 @@
|
||||
SellSounds: cashturn.aud
|
||||
Capturable: false
|
||||
Bib: no
|
||||
BaseNormal: no
|
||||
Crewed: no
|
||||
Sight: 0
|
||||
Wall:
|
||||
|
||||
Reference in New Issue
Block a user