ZPM generating patched. If it won't work this time, imma look for the
razors in the drawer...
This commit is contained in:
		@@ -228,7 +228,7 @@ public class Game {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            while (!source.canHazZPM()) {
 | 
					            while (!source.canHazZPM()) {
 | 
				
			||||||
                int j = 0;
 | 
					                int newSourceCounter = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                for (int i = 0; i < dungeon.getMapHeight(); i++) {
 | 
					                for (int i = 0; i < dungeon.getMapHeight(); i++) {
 | 
				
			||||||
                    compare = source.getAdjacentTile(Direction.getRandom());
 | 
					                    compare = source.getAdjacentTile(Direction.getRandom());
 | 
				
			||||||
@@ -236,12 +236,17 @@ public class Game {
 | 
				
			|||||||
                        source = compare;
 | 
					                        source = compare;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                while(j != 20) {
 | 
					                while(newSourceCounter != 20) {
 | 
				
			||||||
                    compare = source.getAdjacentTile(Direction.getRandom());
 | 
					                    compare = source.getAdjacentTile(Direction.getRandom());
 | 
				
			||||||
                    if (compare != null)
 | 
					                    if (compare != null) {
 | 
				
			||||||
                        if (!compare.hasZPM() && (compare.playerBaseOnTile == null))
 | 
					 | 
				
			||||||
                        source = compare;
 | 
					                        source = compare;
 | 
				
			||||||
                    j++;
 | 
					                        if (!compare.hasZPM() && (compare.playerBaseOnTile == null)) {
 | 
				
			||||||
 | 
					                            if (source.canHazZPM()) {
 | 
				
			||||||
 | 
					                                break;
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    newSourceCounter++;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user