Add camouflage system, add greenhouse door and clean up

This commit is contained in:
Nedelosk committed 2016-03-13 21:00:45 +01:00
1 parent 7238886d00
commit bde92c4afc
158 files changed
+1476 -491

No files matched your search

@@ -97,7 +97,7 @@ public class BeekeepingMode implements IBeekeepingMode {
float productionModifier = beeModifier.getProductionModifier(queen.getGenome(), 1f);
if (productionModifier > 16) {
if (housing.getWorld().rand.nextFloat() * 100 < 0.01 * ((productionModifier * productionModifier) - 100)) {
if (housing.getWorld().rand.nextFloat() * 100 < 0.01 * (productionModifier * productionModifier - 100)) {
return true;
}
}
@@ -111,7 +111,7 @@ public class BeekeepingMode implements IBeekeepingMode {
float mutationModifier = beeModifier.getMutationModifier(queen.getGenome(), queen.getMate(), 1.0f);
if (mutationModifier > 10) {
if (housing.getWorld().rand.nextFloat() * 100 < 0.4 * ((mutationModifier * mutationModifier) - 100)) {
if (housing.getWorld().rand.nextFloat() * 100 < 0.4 * (mutationModifier * mutationModifier - 100)) {
return true;
}
}