public override void MakeFoliage()
{
int topy = Pos[1] + Height - 1;
int start = topy - 2;
int end = topy + 2;
for ( int y = start; y < end; y++ ) {
int rad;
if ( y > start + 1 ) {
rad = 1;
} else {
rad = 2;
}
for ( int xoff = -rad; xoff < rad + 1; xoff++ ) {
for ( int zoff = -rad; zoff < rad + 1; zoff++ ) {
if ( Args.Rand.NextDouble() > .618 &&
Math.Abs( xoff ) == Math.Abs( zoff ) &&
Math.Abs( xoff ) == rad ) {
continue;
}
Args.PlaceBlock( Pos[0] + xoff, Pos[2] + zoff, y, Args.FoliageBlock );
}
}
}
}