Skip to content

Commit

Permalink
Added deep and urgoz's warren to map
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Sep 1, 2024
1 parent 309abcc commit e1268dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions GuildWarsPartySearch.NodeJSServer/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
party_search_types,
districts,
district_regions,
getDistrictName, district_region_info, region_from_district, isValidOutpost
getDistrictName, district_region_info, region_from_district, isValidOutpost, getNearestOutpost, map_ids
} from "./src/js/gw_constants.mjs";
import {is_numeric, to_number} from "./src/js/string_functions.mjs";
import {groupBy, unique} from "./src/js/array_functions.mjs";
Expand Down Expand Up @@ -222,7 +222,8 @@ function getLeafletLocationByMapId(map_id) {
return null;
}

async function navigateToLocation(map_id, showParties) {
async function navigateToLocation(_map_id, showParties) {
const map_id = getNearestOutpost(_map_id);
const leaflet_location = getLeafletLocationByMapId(map_id);
if (!leaflet_location) return;
if (leaflet_location.continent.id !== currentContinent) {
Expand Down Expand Up @@ -703,7 +704,7 @@ async function check_websocket() {
let ws = get_websocket_client();
if(document.visibilityState !== 'hidden') {
try {
reconnect_websocket();
await reconnect_websocket();
} catch(e) {
console.log(e.message);
}
Expand Down
12 changes: 12 additions & 0 deletions GuildWarsPartySearch.NodeJSServer/src/data/2.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@
"coordinates": [ 3511, 2715 ],
"mapId": 77
},
{
"name": "Urgoz's Warren",
"type": "outpost_cantha_kurzick",
"coordinates": [ 3576, 2629 ],
"mapId": 266
},
{
"name": "Aspenwood Gate (Kurzick)",
"type": "outpost_cantha_kurzick",
Expand Down Expand Up @@ -473,6 +479,12 @@
"coordinates": [ 4451, 2259 ],
"mapId": 193
},
{
"name": "The Deep",
"type": "outpost_cantha_luxon",
"coordinates": [ 4530, 2255 ],
"mapId": 307
},
{
"name": "Breaker Hollow",
"type": "outpost_cantha_luxon",
Expand Down

0 comments on commit e1268dc

Please sign in to comment.