Skip to content

Commit

Permalink
Merge pull request #157 from sh4rkman/dev
Browse files Browse the repository at this point in the history
Yeho fix
  • Loading branch information
sh4rkman authored Jun 13, 2024
2 parents a4dbd37 + fd6a1e7 commit c8601de
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@


# <img src="https://img.shields.io/badge/-major%20release-blue?style=flat-square"> **25.0.2** *(2024-06-12)*

<img src="https://img.shields.io/badge/-%20fix%20-orange"> Corrected Yehorivka heightmap [#155](https://github.com/sh4rkman/SquadCalc/issues/155) (Thanks SuisQi!)


</br></br><!-- CHANGELOG SPLIT MARKER -->


# <img src="https://img.shields.io/badge/-major%20release-blue?style=flat-square"> **25.0.1** *(2024-06-12)*

<img src="https://img.shields.io/badge/-%20Improv%20-orange"> Added minimum range for M1064-A3
Expand Down
6 changes: 3 additions & 3 deletions config/playwright-tests/legacyui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Binary file modified public/maps/yehorivka/heightmap.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/tests/mapdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
Expand Down

0 comments on commit c8601de

Please sign in to comment.