mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 15:33:08 +00:00
Removed diminishing returns for passive flowers and made Dayblooms and Nightshades about twice as strong.
This commit is contained in:
1 parent
cc1b32ca5c
commit
1734c89454
5 files changed
+9
-68
No files matched your search
@@ -70,31 +70,7 @@ public class SubTileDaybloom extends SubTilePassiveGenerating {
|
||||
|
||||
@Override
|
||||
public int getDelayBetweenPassiveGeneration() {
|
||||
return isPrime() ? 22 : 25 + (int) (getSurroundingFlowers() * 7.5);
|
||||
}
|
||||
|
||||
public int getSurroundingFlowers() {
|
||||
int flowers = 0;
|
||||
for(ForgeDirection dir : LibMisc.CARDINAL_DIRECTIONS) {
|
||||
TileEntity tile = supertile.getWorldObj().getTileEntity(supertile.xCoord + dir.offsetX, supertile.yCoord, supertile.zCoord + dir.offsetZ);
|
||||
if(tile != null && tile instanceof ISubTileContainer) {
|
||||
ISubTileContainer flower = (ISubTileContainer) tile;
|
||||
if(flower.getSubTile() != null && flower.getSubTile().getClass() == getClass()) {
|
||||
flowers++;
|
||||
|
||||
Color color = new Color(getColor());
|
||||
float r = color.getRed() / 255F;
|
||||
float g = color.getGreen() / 255F;
|
||||
float b = color.getBlue() / 255F;
|
||||
|
||||
float m = 0.045F;
|
||||
if(ticksExisted % 10 == 0)
|
||||
Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.5, supertile.yCoord + 0.05, supertile.zCoord + 0.5, r, g, b, 0.1F, dir.offsetX * m, dir.offsetY * m, dir.offsetZ * m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return flowers;
|
||||
return isPrime() ? 10 : 12;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-26
@@ -94,30 +94,6 @@ public class SubTileHydroangeas extends SubTilePassiveGenerating {
|
||||
}
|
||||
}
|
||||
|
||||
public int getSurroundingFlowers() {
|
||||
int flowers = 0;
|
||||
for(int[] offsetArray : OFFSETS) {
|
||||
TileEntity tile = supertile.getWorldObj().getTileEntity(supertile.xCoord + offsetArray[0], supertile.yCoord, supertile.zCoord + offsetArray[1]);
|
||||
if(tile != null && tile instanceof ISubTileContainer) {
|
||||
ISubTileContainer flower = (ISubTileContainer) tile;
|
||||
if(flower.getSubTile() != null && flower.getSubTile().getClass() == getClass()) {
|
||||
flowers++;
|
||||
|
||||
Color color = new Color(getColor());
|
||||
float r = color.getRed() / 255F;
|
||||
float g = color.getGreen() / 255F;
|
||||
float b = color.getBlue() / 255F;
|
||||
|
||||
float m = 0.045F;
|
||||
if(ticksExisted % 10 == 0)
|
||||
Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.5, supertile.yCoord + 0.05, supertile.zCoord + 0.5, r, g, b, 0.1F, offsetArray[0] * m, 0, offsetArray[1] * m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return flowers;
|
||||
}
|
||||
|
||||
public void doBurnParticles() {
|
||||
Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.yCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.zCoord + 0.5, 0.05F, 0.05F, 0.7F, (float) Math.random() / 6, (float) -Math.random() / 60);
|
||||
}
|
||||
@@ -193,8 +169,7 @@ public class SubTileHydroangeas extends SubTilePassiveGenerating {
|
||||
|
||||
@Override
|
||||
public boolean canGeneratePassively() {
|
||||
int adj = getSurroundingFlowers();
|
||||
return supertile.getWorldObj().rand.nextInt(adj + 1) == 0 && burnTime > 0;
|
||||
return burnTime > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,11 +32,6 @@ public class SubTileThermalily extends SubTileHydroangeas {
|
||||
Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.yCoord + 0.9 + Math.random() * 0.2 - 0.1, supertile.zCoord + 0.5, 0.7F, 0.05F, 0.05F, (float) Math.random() / 6, (float) -Math.random() / 60);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSurroundingFlowers() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPassiveFlower() {
|
||||
return false;
|
||||
|
||||
@@ -537,16 +537,16 @@ public final class LexiconData {
|
||||
primusLoci.setIcon(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DAYBLOOM_PRIME));
|
||||
|
||||
daybloom = new BLexiconEntry(LibLexicon.GFLOWER_DAYBLOOM, categoryGenerationFlowers);
|
||||
daybloom.setPriority().setLexiconPages(new PageText("0"), new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "1a" : "1"), new PageImage("3", LibResources.ENTRY_DIMINISHING_RETURNS), new PagePetalRecipe("2", ModPetalRecipes.daybloomRecipe));
|
||||
daybloom.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.daybloomRecipe));
|
||||
|
||||
nightshade = new BLexiconEntry(LibLexicon.GFLOWER_NIGHTSHADE, categoryGenerationFlowers);
|
||||
nightshade.setLexiconPages(new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "0a" :"0"), new PagePetalRecipe("1", ModPetalRecipes.nightshadeRecipe));
|
||||
nightshade.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.nightshadeRecipe));
|
||||
|
||||
endoflame = new BLexiconEntry(LibLexicon.GFLOWER_ENDOFLAME, categoryGenerationFlowers);
|
||||
endoflame.setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.endoflameRecipe));
|
||||
|
||||
hydroangeas = new BLexiconEntry(LibLexicon.GFLOWER_HYDROANGEAS, categoryGenerationFlowers);
|
||||
hydroangeas.setLexiconPages(new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "0a" : "0"), new PageImage("2", LibResources.ENTRY_HYDROANGEAS), new PageText("3"), new PagePetalRecipe("1", ModPetalRecipes.hydroangeasRecipe));
|
||||
hydroangeas.setLexiconPages(new PageText("0"), new PageImage("2", LibResources.ENTRY_HYDROANGEAS), new PagePetalRecipe("1", ModPetalRecipes.hydroangeasRecipe));
|
||||
|
||||
thermalily = new BLexiconEntry(LibLexicon.GFLOWER_THERMALILY, categoryGenerationFlowers);
|
||||
thermalily.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.thermalilyRecipe));
|
||||
|
||||
Reference in new issue
Block a user