|
IBeeModifier beeHousingModifier = BeeManager.beeRoot.createBeeHousingModifier(housing); |
|
IBeeModifier beeModeModifier = BeeManager.beeRoot.getBeekeepingMode(world).getBeeModifier(); |
|
|
|
processedChance *= beeHousingModifier.getMutationModifier(genome0, genome1, processedChance); |
In line 56, you should replace "processedChance" to constant 1.0, refering to
|
IBeeModifier beeHousingModifier = BeeManager.beeRoot.createBeeHousingModifier(housing); |
|
IBeeModifier beeModeModifier = mode.getBeeModifier(); |
|
|
|
// Bee genetic speed * beehousing * beekeeping mode |
|
float speed = genome.getSpeed() * beeHousingModifier.getProductionModifier(genome, 1f) * beeModeModifier.getProductionModifier(genome, 1f); |