IC2 Classic

IC2 Classic

2M Downloads

[1.19.2] Whiskey does not mature as quickly as described in the wiki

KennysDaywalker opened this issue ยท 5 comments

commented

here Daenara whiskey. Because with hers it's pretty obvious to see:
2022-12-17_20 54 51

More than 7 days have passed but the whiskey has not matured for 10 years.

commented

@KennysDaywalker her power system is mostly based on solar.
I know she has wavegens, but if it constantly rains or is night she might have ran out of power for a few days.
Edit: This is the code.
Not sure if there is a bug.

	@Override
	public void onTick()
	{
		if(!isEmpty() && !hasTreeTap && !opened)
		{
			age += 1;
			if(brewType == BrewType.WHISKY)
			{
				if(age >= 1728000 && beerQuality < 50)
				{
					age = 0;
					beerQuality++;
				}
			}
		}
	}

Like this code is dead simple.
1728000 / 72000 => 24
72000 is 1 hour in game time.
(20 * 60 * 60)

commented

ok @KennysDaywalker did a amazing job and figured out the bug.
My math was completely off...
While this is not perfect either but this is way closer and within my acceptable range this is the value that @KennysDaywalker found that the brew time should take.

1.209.600

Which is a difference of roughly 520k ticks or (7 hours)

commented

@Ar4ibald2115 The One Probe
Which is the mod ic2c also suggests in the first 2-3 wiki pages.

commented

@KennysDaywalker out off topic, which mod add this HUD on the left?

commented