BlaDe
Farmer
Rocks in the mines use MinutesUntilReady to hold their health.
in MineShaft.getAppropriateOre, there is this code:
In MineShaft.tryToAddOreClumps, these is this code:
Items 668 and 670 are the 2 variations of the grey rocks that spawn in the mines.
The code in tryToAddOreClumps makes a new copy of Object without explicitly setting MinutesUntilReady. If the 670 variant was originally chosen, then resulting clump of 668 will have less health than if 668 was chosen directly.
in MineShaft.getAppropriateOre, there is this code:
C#:
if (this.mineRandom.NextDouble() < 0.25 && this.getMineArea() != 40 && this.GetAdditionalDifficulty() <= 0)
{
ore = new Object(this.mineRandom.Choose("668", "670"), 1)
{
MinutesUntilReady = 2
};
}
C#:
Object ore = this.getAppropriateOre(endPoint);
if (ore.QualifiedItemId == "(O)670")
{
ore = new Object("668", 1);
}
The code in tryToAddOreClumps makes a new copy of Object without explicitly setting MinutesUntilReady. If the 670 variant was originally chosen, then resulting clump of 668 will have less health than if 668 was chosen directly.