adjusted points & (hopefully) fix for mine gen
This commit is contained in:
		
					parent
					
						
							
								8ec019713c
							
						
					
				
			
			
				commit
				
					
						5bff8e550f
					
				
			
		
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -173,7 +173,7 @@ public class MinecleanerManager { | |||
|                 break; | ||||
|             } | ||||
|             case 2: { | ||||
|                 ps.increaseScore(statisticsPointsAcquired, 5); | ||||
|                 ps.increaseScore(statisticsPointsAcquired, 10); | ||||
|                 break; | ||||
|             } | ||||
|             default: { | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue