public int DisplayGetNextIslandLocation() { int islandLocationId = 0; bool validIslandLocationId = false; //UpdateRoomAccessability(islandLocationId); DisplayGamePlayScreen("Travel to a New Island Location", Text.Travel(_gameSurvivor, _gameUniverse.IslandLocations), ActionMenu.MainMenu, ""); while (!validIslandLocationId) { // // get an integer from the player // GetInteger($"Enter your new location {_gameSurvivor.Name}: ", 1, _gameUniverse.GetMaxIslandLocationId(), out islandLocationId); // // validate integer as a valid space-time location id and determine accessibility // if (_gameUniverse.IsValidIslandLocationId(islandLocationId)) { if (_gameUniverse.GetIslandLocationById(islandLocationId).Accessible) { validIslandLocationId = true; } else { ClearInputBox(); DisplayInputErrorMessage("It appears you are attempting to travel to an inaccessible location. Please try again."); } } else { DisplayInputErrorMessage("It appears you entered an invalid Island location ID. Please try again."); } } //CheckForBunny(islandLocationId); CheckHealthPoints(); return(islandLocationId); }