diff --git a/CHANGELOG.md b/CHANGELOG.md index ace84b2442..cd47e9f5e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ +# **25.0.2** *(2024-06-12)* + + Corrected Yehorivka heightmap [#155](https://github.com/sh4rkman/SquadCalc/issues/155) (Thanks SuisQi!) + + +

+ + # **25.0.1** *(2024-06-12)* Added minimum range for M1064-A3 diff --git a/config/playwright-tests/legacyui.spec.ts b/config/playwright-tests/legacyui.spec.ts index c626e54386..2eb37dad34 100644 --- a/config/playwright-tests/legacyui.spec.ts +++ b/config/playwright-tests/legacyui.spec.ts @@ -96,7 +96,7 @@ test('Advanced calc', async ({ }) => { await expect(page.locator('#elevationNum')).toContainText("1214"); // Select BM21 Grad - await page.getByRole('textbox', { name: 'mortar' }).click(); + await page.getByRole('textbox', { name: 'Mortar', exact: true }).click(); await page.getByRole('option', { name: 'BM-21 Grad' }).click(); // Check calcs @@ -122,8 +122,8 @@ test('Save calc', async ({ }) => { await page.locator('#target-location').pressSequentially('C01245'); // Select mortar - await page.getByRole('textbox', { name: 'mortar' }).click(); - await page.getByRole('option', { name: 'mortar' }).click(); + await page.getByRole('textbox', { name: 'Mortar', exact: true }).click(); + await page.getByRole('option', { name: 'Mortar', exact: true }).click(); // Select a map await page.getByRole('textbox', { name: 'Al basrah' }).click(); diff --git a/package.json b/package.json index b2169c41a8..1f17fa813f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squadcalc", - "version": "25.0.1", + "version": "25.0.2", "description": "A Complete Mortar Calculator for Squad", "author": "Maxime 'sharkman' Boussard", "license": "MIT", diff --git a/public/maps/yehorivka/heightmap.webp b/public/maps/yehorivka/heightmap.webp index 4d986e5ef2..d847aee3b7 100644 Binary files a/public/maps/yehorivka/heightmap.webp and b/public/maps/yehorivka/heightmap.webp differ diff --git a/src/js/maps.js b/src/js/maps.js index d3abfd03eb..ac754f6e0b 100644 --- a/src/js/maps.js +++ b/src/js/maps.js @@ -207,7 +207,7 @@ export const MAPS = [ name: "Yehorivka", size: 6350, // Not the SDK values weirdly offset: [-8300, -8300], - scaling: 0.2732, + scaling: 0.3332, mapURL: "/yehorivka/", maxZoomLevel: 4, } diff --git a/src/js/tests/mapdata.js b/src/js/tests/mapdata.js index ee63af60de..d49ae7df0d 100644 --- a/src/js/tests/mapdata.js +++ b/src/js/tests/mapdata.js @@ -687,12 +687,12 @@ const MAPDATA = [ ], extra: { scale: [1, 1, 4], - levels: [70, 753], + levels: [0, 833], minimap: [ [-3002, -3002], [3048, 3048], ], - hDim: [6050, 6050], + hDim: [6351, 6351], lOrigin: [-3002, -3002], // don't trust sdk, landscape origin changed }, },