diff --git a/core/src/ru/deadsoftware/cavecraft/game/WorldGen.java b/core/src/ru/deadsoftware/cavecraft/game/WorldGen.java
index 4b4f0e8d3772e656b2a5e0d265548ff8badc8df1..bf9eadf8cb3f81847f6cca80f0e5a4ac1287e18b 100644 (file)
}
}
}
- if (x>2 && x<width-2 && rand.nextInt(100)<5){
+ if (x>2 && x<width-2){
if (foreMap[x][height-hMap[x]-1]==0 && foreMap[x][height-hMap[x]]==2) {
- genOak(x,height-hMap[x]-1);
+ switch (rand.nextInt(50)) {
+ case 0:
+ genOak(x, height - hMap[x] - 1);
+ break;
+ case 1:
+ foreMap[x][height-hMap[x]-1] = 26;
+ break;
+ case 2:
+ foreMap[x][height-hMap[x]-1] = 29;
+ break;
+ case 3:
+ foreMap[x][height-hMap[x]-1] = 30;
+ break;
+ case 4:
+ foreMap[x][height-hMap[x]-1] = 31;
+ break;
+ case 5:
+ foreMap[x][height-hMap[x]-1] = 32;
+ break;
+ }
}
if (foreMap[x][height-hMap[x]-1]==0 && foreMap[x][height-hMap[x]]==10) {
- genCactus(x,height-hMap[x]-1);
+ switch(rand.nextInt(20)) {
+ case 0:
+ genCactus(x,height-hMap[x]-1);
+ break;
+ case 1:
+ foreMap[x][height-hMap[x]-1] = 27;
+ break;
+ }
}
}
}