Add config option to add a chance of additional princess spawn, for skyblock/limited land maps

Minor Cleanup
This commit is contained in:
Nirek-K authored and mezz committed 2015-02-15 13:26:27 -08:00
1 parent 786dbd82c7
commit 2b4dfcdae3
2 files changed
+19 -5

No files matched your search

@@ -381,11 +381,16 @@ public class BeekeepingLogic implements IBeekeepingLogic {
housing.onQueenDeath(getQueen());
// Princess
IBee heiress = queen.spawnPrincess(housing);
if (heiress != null) {
ItemStack princess = PluginApiculture.beeInterface.getMemberStack(heiress, EnumBeeType.PRINCESS.ordinal());
breedingTracker.registerPrincess(heiress);
offspring.push(princess);
boolean secondPrincess = this.housing.getWorld().rand.nextInt(100) < PluginApiculture.getSecondPrincessChance();
int count = secondPrincess ? 2 : 1;
while (count > 0) {
count--;
IBee heiress = queen.spawnPrincess(housing);
if (heiress != null) {
ItemStack princess = PluginApiculture.beeInterface.getMemberStack(heiress, EnumBeeType.PRINCESS.ordinal());
breedingTracker.registerPrincess(heiress);
offspring.push(princess);
}
}
// Drones