biome fixes + refactoring, blackened
This commit is contained in:
parent
6d912ae7ac
commit
1834c26b72
41 changed files with 296 additions and 328 deletions
|
@ -1,6 +1,7 @@
|
|||
package game.worldgen.layer;
|
||||
|
||||
import game.biome.Biome;
|
||||
import game.biome.Temperature;
|
||||
|
||||
public class GenLayerBiomeEdge extends GenLayer
|
||||
{
|
||||
|
@ -153,9 +154,9 @@ public class GenLayerBiomeEdge extends GenLayer
|
|||
|
||||
if (biomegenbase != null && biomegenbase1 != null)
|
||||
{
|
||||
Biome.TempCategory biomegenbase$tempcategory = biomegenbase.getTempCategory();
|
||||
Biome.TempCategory biomegenbase$tempcategory1 = biomegenbase1.getTempCategory();
|
||||
return biomegenbase$tempcategory == biomegenbase$tempcategory1 || biomegenbase$tempcategory == Biome.TempCategory.MEDIUM || biomegenbase$tempcategory1 == Biome.TempCategory.MEDIUM;
|
||||
Temperature biomegenbase$tempcategory = biomegenbase.getTempCategory();
|
||||
Temperature biomegenbase$tempcategory1 = biomegenbase1.getTempCategory();
|
||||
return biomegenbase$tempcategory == biomegenbase$tempcategory1 || biomegenbase$tempcategory == Temperature.MEDIUM || biomegenbase$tempcategory1 == Temperature.MEDIUM;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -66,13 +66,13 @@ public class GenLayerShore extends GenLayer
|
|||
}
|
||||
else if (id != Biome.extremeHills.id && id != Biome.extremeHillsPlus.id && id != Biome.extremeHillsEdge.id)
|
||||
{
|
||||
if (biome != null && biome.snowyGen)
|
||||
if (biome != null && biome.allowColdBeach)
|
||||
{
|
||||
this.putBeach(pre, data, j, i, width, id, Biome.coldBeach.id);
|
||||
}
|
||||
else // if (id != Biome.mesa.id && id != Biome.mesaPlateau_F.id)
|
||||
// {
|
||||
if (biome != null && !biome.waterGen)
|
||||
if (biome != null && !biome.disallowBeach)
|
||||
{
|
||||
int l1 = pre[j + 1 + (i + 1 - 1) * (width + 2)];
|
||||
int k2 = pre[j + 1 + 1 + (i + 1) * (width + 2)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue