update location names
This commit is contained in:
@@ -35,9 +35,9 @@ public class Game {
|
||||
regularEnemies.add(new Vampire());
|
||||
|
||||
locations = new ArrayList<>();
|
||||
locations.add(new Location("Jungle", regularEnemies));
|
||||
locations.add(new Location("China", new ArrayList<>(regularEnemies.subList(0, 2))));
|
||||
locations.add(new Location("Iran", new ArrayList<>(regularEnemies.subList(1, 3))));
|
||||
locations.add(new Location("Dark Forest", regularEnemies));
|
||||
locations.add(new Location("Mountain Village", new ArrayList<>(regularEnemies.subList(0, 2))));
|
||||
locations.add(new Location("Ancient Ruins", new ArrayList<>(regularEnemies.subList(1, 3))));
|
||||
}
|
||||
|
||||
public void start() {
|
||||
@@ -124,7 +124,7 @@ public class Game {
|
||||
|
||||
private Location chooseLocation() {
|
||||
displayLocations();
|
||||
System.out.print("1. Jungle\n2. China\n3. Iran\nChoose location: ");
|
||||
System.out.print("1. Dark Forest\n2. Mountain Village\n3. Ancient Ruins\nChoose location: ");
|
||||
int choice = sc.nextInt();
|
||||
Location location = switch (choice) {
|
||||
case 1 -> locations.get(0);
|
||||
|
||||
Reference in New Issue
Block a user