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;
}
case 2: {
ps.increaseScore(statisticsPointsAcquired, 5);
ps.increaseScore(statisticsPointsAcquired, 10);
break;
}
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) {
for (int i = 0; i < mineCount; i++) {
int x = (int) (Math.random() * width);
@ -76,14 +77,11 @@ public class Game {
i--;
continue;
}
if(x == xFirst +1 && y == yFirst) {
i--;
continue;
}
if(x == xFirst +1 && y == yFirst -1) {
i--;
continue;
}
if(x == xFirst -1 && y == yFirst) {
i--;
continue;
@ -96,6 +94,8 @@ public class Game {
i--;
continue;
}
//Corners
if(x == xFirst +1 && y == yFirst +1) {
i--;
continue;