adjusted points & (hopefully) fix for mine gen

This commit is contained in:
LunarAkai 2024-03-24 20:42:34 +01:00
commit 5bff8e550f
2 changed files with 5 additions and 5 deletions

View file

@ -173,7 +173,7 @@ public class MinecleanerManager {
break; break;
} }
case 2: { case 2: {
ps.increaseScore(statisticsPointsAcquired, 5); ps.increaseScore(statisticsPointsAcquired, 10);
break; break;
} }
default: { default: {

View file

@ -67,6 +67,7 @@ public class Game {
} }
} }
// Todo selten auch noch mine bei xFirst-1
private void generateMines(int xFirst, int yFirst) { private void generateMines(int xFirst, int yFirst) {
for (int i = 0; i < mineCount; i++) { for (int i = 0; i < mineCount; i++) {
int x = (int) (Math.random() * width); int x = (int) (Math.random() * width);
@ -76,14 +77,11 @@ public class Game {
i--; i--;
continue; continue;
} }
if(x == xFirst +1 && y == yFirst) { if(x == xFirst +1 && y == yFirst) {
i--; i--;
continue; continue;
} }
if(x == xFirst +1 && y == yFirst -1) {
i--;
continue;
}
if(x == xFirst -1 && y == yFirst) { if(x == xFirst -1 && y == yFirst) {
i--; i--;
continue; continue;
@ -96,6 +94,8 @@ public class Game {
i--; i--;
continue; continue;
} }
//Corners
if(x == xFirst +1 && y == yFirst +1) { if(x == xFirst +1 && y == yFirst +1) {
i--; i--;
continue; continue;