Skip to content

Commit

Permalink
implement tier 2 climate station
Browse files Browse the repository at this point in the history
  • Loading branch information
eerussianguy committed Jul 2, 2021
1 parent 27e48d1 commit f76d1d6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repositories {
}
}

version = "0.4.0"
version = "0.5.0"
group = 'com.eerussianguy.firmalife'
archivesBaseName = 'firmalife'

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/eerussianguy/firmalife/FirmaLife.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class FirmaLife
{
public static final String MOD_ID = "firmalife";
public static final String MODNAME = "FirmaLife";
public static final String MODVERSION = "0.4.0";
public static final String MODVERSION = "0.5.0";

@Mod.Instance
private static FirmaLife INSTANCE = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Rand
{
if (range)
{
double speed = MathHelper.nextDouble(rand, -0.1D, 0.1D);
double speed = MathHelper.nextDouble(rand, -0.2D, 0.2D);
for (int i = 0; i < 5; i++)
{
ParticlesFL.SPRINKLE.spawn(world, pos.getX() + 0.5D, pos.getY() + 0.25D, pos.getZ() + 0.5D, speed * HelpersFL.nextSign(rand), 0.0D, speed * HelpersFL.nextSign(rand), 130);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void onItemTooltip(ItemTooltipEvent event)
event.getToolTip().add("Right click to show either the protected region, or the incorrect block.");
break;
case 2:
event.getToolTip().add("Upgrade Currently Unused");
event.getToolTip().add("Enhanced climate regulation makes planters grow 10.5% faster.");
break;
case 3:
event.getToolTip().add("Enables growing grains in the greenhouse.");
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/eerussianguy/firmalife/te/TEPlanter.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public void reduceCounter(long amount)
@Override
public void onCalendarUpdate(long l)
{
long growthTicks = (long) (ICalendar.TICKS_IN_DAY * ConfigTFC.General.FOOD.cropGrowthTimeModifier);
double tierModifier = tier >= 2 ? 0.95D : 1.05D;
long growthTicks = (long) (ICalendar.TICKS_IN_DAY * tierModifier * ConfigTFC.General.FOOD.cropGrowthTimeModifier);
while (getTicksSinceUpdate() > growthTicks)
{
reduceCounter(growthTicks);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/firmalife/recipes/sprinkler.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"result": {
"item": "firmalife:climate_station_5",
"item": "firmalife:sprinkler",
"count": 1
}
}

0 comments on commit f76d1d6

Please sign in to comment.