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)
|
public int GetIdealDensity(int x, int y)
|
||||||
{
|
{
|
||||||
return (GetAdjacentCellsWith(content[x, y].type, x, 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)
|
public void AddResource(ResourceTypeInfo info, int i, int j, int n)
|
||||||
@@ -130,7 +130,10 @@ namespace OpenRA.Traits
|
|||||||
if (type == null) return null;
|
if (type == null) return null;
|
||||||
|
|
||||||
if (--content[p.X, p.Y].density < 0)
|
if (--content[p.X, p.Y].density < 0)
|
||||||
|
{
|
||||||
content[p.X, p.Y].type = null;
|
content[p.X, p.Y].type = null;
|
||||||
|
content[p.X, p.Y].image = null;
|
||||||
|
}
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
Building:
|
Building:
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
BaseNormal: no
|
|
||||||
BuildSounds: constru2.aud, hvydoor1.aud
|
BuildSounds: constru2.aud, hvydoor1.aud
|
||||||
SellSounds: cashturn.aud
|
SellSounds: cashturn.aud
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
@@ -64,6 +63,7 @@
|
|||||||
SellSounds: cashturn.aud
|
SellSounds: cashturn.aud
|
||||||
Capturable: false
|
Capturable: false
|
||||||
Bib: no
|
Bib: no
|
||||||
|
BaseNormal: no
|
||||||
Crewed: no
|
Crewed: no
|
||||||
Sight: 0
|
Sight: 0
|
||||||
Wall:
|
Wall:
|
||||||
|
|||||||
Reference in New Issue
Block a user