mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
The dandelifeon produces a lot more mana per cell now, however, whenever a cell is eaten, the board is wiped. Also added an "warning: experimental" page to the entry.
This commit is contained in:
1 parent
218aec3016
commit
16e87bcc94
3 files changed
+14
-6
No files matched your search
+11
-4
@@ -28,7 +28,7 @@ public class SubTileDandelifeon extends SubTileGenerating {
|
||||
private static final int RANGE = 12;
|
||||
private static final int SPEED = 10;
|
||||
private static final int MAX_GENERATIONS = 60;
|
||||
private static final int MANA_PER_GEN = 35;
|
||||
private static final int MANA_PER_GEN = 150;
|
||||
|
||||
private static final int[][] ADJACENT_BLOCKS = new int[][] {
|
||||
{ -1, -1 },
|
||||
@@ -52,6 +52,7 @@ public class SubTileDandelifeon extends SubTileGenerating {
|
||||
void runSimulation() {
|
||||
int[][] table = getCellTable();
|
||||
List<int[]> changes = new ArrayList();
|
||||
boolean wipe = false;
|
||||
|
||||
for(int i = 0; i < table.length; i++)
|
||||
for(int j = 0; j < table[0].length; j++) {
|
||||
@@ -70,24 +71,30 @@ public class SubTileDandelifeon extends SubTileGenerating {
|
||||
|
||||
int xdist = Math.abs(i - RANGE);
|
||||
int zdist = Math.abs(j - RANGE);
|
||||
int allowDist = newVal == 1 && gen == 0 ? 3 : 1;
|
||||
int allowDist = 1;
|
||||
if(xdist <= allowDist && zdist <= allowDist && newVal > -1) {
|
||||
gen = newVal;
|
||||
newVal = gen == 1 ? -1 : -2;
|
||||
}
|
||||
|
||||
if(newVal != gen)
|
||||
if(newVal != gen) {
|
||||
changes.add(new int[] { i, j, newVal, gen });
|
||||
if(newVal == -2)
|
||||
wipe = true;
|
||||
}
|
||||
}
|
||||
|
||||
int x = supertile.xCoord;
|
||||
int y = supertile.yCoord;
|
||||
int z = supertile.zCoord;
|
||||
|
||||
|
||||
for(int[] change : changes) {
|
||||
int px = x - RANGE + change[0];
|
||||
int pz = z - RANGE + change[1];
|
||||
int val = change[2];
|
||||
if(val != -2 && wipe)
|
||||
val = -1;
|
||||
|
||||
int old = change[3];
|
||||
|
||||
setBlockForGeneration(px, y, pz, val, old);
|
||||
|
||||
@@ -571,7 +571,7 @@ public final class LexiconData {
|
||||
spectrolus.setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.spectrolusRecipe));
|
||||
|
||||
dandelifeon = new ALexiconEntry(LibLexicon.GFLOWER_DANDELIFEON, categoryGenerationFlowers);
|
||||
dandelifeon.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("6"), new PageText("10"), new PageText("7"), new PagePetalRecipe("8", ModPetalRecipes.dandelifeonRecipe), new PageCraftingRecipe("9", ModCraftingRecipes.recipeCellBlock));
|
||||
dandelifeon.setLexiconPages(new PageText("_w"), new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("6"), new PageText("10"), new PageText("7"), new PagePetalRecipe("8", ModPetalRecipes.dandelifeonRecipe), new PageCraftingRecipe("9", ModCraftingRecipes.recipeCellBlock));
|
||||
|
||||
// DEVICES ENTRIES
|
||||
pylon = new BLexiconEntry(LibLexicon.DEVICE_PYLON, categoryDevices);
|
||||
|
||||
Reference in new issue
Block a user