Skip to content

Commit

Permalink
Merge branch 'release/0.10.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Aug 23, 2024
2 parents b5b6a05 + 34dfc0c commit 80f3248
Show file tree
Hide file tree
Showing 26 changed files with 1,939 additions and 1,274 deletions.
23 changes: 22 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# 0.10.2

## New Features
Ruler history (faded ruler markings) is used to represent prior movement of a combatant in its combat turn. Arrow-key movement is added to the ruler history as well.

New setting to scale the ruler labels based on zoom. Thanks @Aedif for advice on this.

New setting to force strictly Euclidean measurement for diagonals. Foundry's "Exact" core "Square Grid Diagonals" setting actually measures diagonals in number of hexes or number of squares, which in some cases can vary (slightly) from Euclidean measurement.

New setting and `CONFIG` options to display the ruler labels using configurable styles. Thanks @Ichabod for the idea and layout suggestions! You can control the styles, icons, and scaling using `CONFIG.elevationruler.labeling`. Generally modifications to these should affect the next ruler movement; no reload required.

## Bug fixes and other updates
Reworked the measurement system to directly measure the 3d movement instead of projecting to a 2d plane. This matters a lot for hex movement, as projecting assumed a geometrically impossible 3d hex grid whereas now hex elevation movement assumes the 3d hex grid has stacked 2d hexes (square shapes in the z-direction). This means that the core "Square Grid Diagonals" setting is now used to modify how elevation diagonal movement is calculated for 3d hexes. Also now accounts for "double-diagonal" moves in 3d square grids in a more consistent manner. Reworked the movement penalty class to more closely mimic the cost function expected by Foundry ruler. Closes #163 and probably other measurement bugs. Creates unknown number of new measurement bugs!

Use the existing cost approach in Foundry ruler to measure difficult movement.

Fix for rounding happening even when "Rounding Distance to Multiple" is set to 0. Closes #173. Fix for Levels / Wall Height always dropping to ground. Closes issue #174. Thanks @Larkinabout for PRs on both!

Fix for GURPS modifying the Ruler waypoints without using the `Ruler#_addWaypoint` method. Closes #166. Submitted [PR #1959](https://github.com/crnormand/gurps/pull/1959).

Update Polish translation. Thanks @Lioheart! Closes #180. Update Brazilian Portugese translation. Thanks @Kharmans!

# 0.10.1

## New Features
Expand All @@ -9,7 +31,6 @@ Fix display of terrain region penalty measurement.
Update Polish, Italian, and Brazilian Portugese translations. Closes #171. Thanks @GregoryWarn, @Kharmans, and @Lioheart!
Fixes for the scene graph used for pathfinding. Address graph errors when the token overlaps walls. Address graph errors with overlapping walls.


# 0.10.0
Support Terrain Mapper v0.4.0 elevated regions and tiles.
Better support for difficult terrain using Terrain Mapper or drawings.
Expand Down
22 changes: 18 additions & 4 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"elevationruler.settings.speed-highlighting-no-hostiles.name": "No Speed Highlighting of Hostiles",
"elevationruler.settings.speed-highlighting-no-hostiles.hint": "When enabled, the user cannot see a hostile or secret token's speed unless the user has observer or owner permissions.",

"elevationruler.settings.token-ruler-combat-history.name": "Track Combat Move",
"elevationruler.settings.token-ruler-combat-history.hint": "For token speed highlighting, sum all the token moves within the round when displaying the highlight.",
"elevationruler.settings.token-ruler-combat-history.name": "Track Combat Move History",
"elevationruler.settings.token-ruler-combat-history.hint": "Display history in the ruler when a token moves repeatedly in the same combat round.",

"elevationruler.settings.combine-prior-with-total.name": "Combine Prior Movement with Total Movement",
"elevationruler.settings.combine-prior-with-total.hint": "When Track Combat Move is enabled, combine the token's prior movement in the round with the total movement. Otherwise, place the prior movement on a separate line.",
Expand All @@ -74,7 +74,7 @@
"elevationruler.settings.token-speed-multiplier.hint": "For token speed highlighting, this is the multiplier used to go from walk to run (dash) to maximum. For example, with a multiplier of 2, a token with 25 walk speed will have its ruler highlight orange after the first 25 units of distance, and red after the first 50.",

"elevationruler.settings.round-to-multiple.name": "Round Distance to Multiple",
"elevationruler.settings.round-to-multiple.hint": "For gridless distance measurement, round the distance displayed to the nearest multiple of the number entered. Set to 0 to disable rounding.",
"elevationruler.settings.round-to-multiple.hint": "Round the distance displayed to the nearest multiple of the number entered. Set to 0 to disable rounding.",

"elevationruler.settings.token-terrain-multiplier.name": "Token as Terrain Multiplier",
"elevationruler.settings.token-terrain-multiplier.hint": "Multiplier to use to calculate movement speed when moving through other tokens. Set to 1 to ignore. Values less than 1 treat token spaces as faster than normal; values greater than 1 penalize movement through token spaces.",
Expand Down Expand Up @@ -106,11 +106,25 @@
"elevationruler.settings.automatic-movement-type.name": "Autodetect Movement Type",
"elevationruler.settings.automatic-movement-type.hint": "Automatically detect the movement type based on token position. Set the token status effect to 'fly' or 'burrowing' to override.",

"elevationruler.settings.euclidean-grid-distance.name": "Prefer Euclidean Distance",
"elevationruler.settings.euclidean-grid-distance.hint": "For gridded scenes, if 'Exact (√2)' is chosen for the 'Square Grid Diagonals' core setting, this will force it to measure Euclidean distance instead of distance in unit hexes/squares. For hex grids, only diagonal elevation movement is affected.",

"elevationruler.settings.scale-text.name": "Scale Ruler Text",
"elevationruler.settings.scale-text.hint": "When enabled, ruler text will be scaled depending on `canvas.dimensions.size`. Further adjust scaling by using `CONFIG.elevationruler.textScale`.",

"elevationruler.settings.customized-labels.name": "Customized Ruler Text",
"elevationruler.settings.customized-labels.hint": "Customize the ruler text. Change styles using `CONFIG.elevationruler.labelStyles` and `CONFIG.elevationruler.labelIcons`.",

"elevationruler.controls.prefer-token-elevation.name": "Prefer Token Elevation",
"elevationruler.controls.pathfinding-control.name": "Use Pathfinding",

"elevationruler.drawingconfig.movementPenalty.name": "Movement Bonus/Penalty",
"elevationruler.drawingconfig.movementPenalty.hint": "Set to 1 for no penalty. Values greater than one penalize movement by that percent; values less than one effectively grant a bonus to movement. For example, set to 2 to double movement through this area. Movement under the drawing elevation will be ignored.",

"elevationruler.clearMovement": "Clear Combatant Movement"
"elevationruler.clearMovement": "Clear Combatant Movement",
"elevationruler.waypoint": "waypoint",
"elevationruler.up": "up",
"elevationruler.down": "down",
"elevationruler.added": "added",
"elevationruler.prior": "prior"
}
6 changes: 6 additions & 0 deletions languages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
"elevationruler.settings.token-ruler-combat-history.name": "Śledzenie ruchu w walce",
"elevationruler.settings.token-ruler-combat-history.hint": "W przypadku podświetlania szybkości tokenów, podczas wyświetlania podświetlenia należy zsumować wszystkie ruchy tokenów w rundzie.",

"elevationruler.settings.combine-prior-with-total.name": "Połączenie wcześniejszego ruchu z całkowitym ruchem",
"elevationruler.settings.combine-prior-with-total.hint": "Jeśli opcja śledzenia ruchu bojowego jest włączona, połącz wcześniejszy ruch tokena w rundzie z całkowitym ruchem. W przeciwnym razie umieść wcześniejszy ruch w osobnej linii.",

"elevationruler.settings.token-speed-property.name": "Właściwość ruchu tokena",
"elevationruler.settings.token-speed-property.hint": "W przypadku podświetlania szybkości tokena jest to właściwość aktora reprezentująca szybkość chodzenia tokena.",

Expand Down Expand Up @@ -88,6 +91,9 @@
"elevationruler.settings.pathfinding_limit_token_los.name": "Ograniczenie wyszukiwania ścieżek do zbadanych obszarów",
"elevationruler.settings.pathfinding_limit_token_los.hint": "Podczas odnajdywania ścieżek należy ograniczyć ich zasięg do zbadanych obszarów, chyba że użytkownikiem jest MG.",

"elevationruler.settings.pathfinding_snap_to_grid.name": "Wyznaczanie ścieżek - Przyciąganie do siatki",
"elevationruler.settings.pathfinding_snap_to_grid.hint": "Podczas wyznaczania ścieżki na mapie z siatką należy przyciągnąć ścieżkę do centrów siatki, chyba że spowoduje to zablokowanie ścieżki.",

"elevationruler.settings.grid-terrain-algorithm.name": "Pomiar siatki terenu",
"elevationruler.settings.grid-terrain-algorithm.hint": "Jak uwzględnić kary lub premie za ruch wynikające z terenu i tokenów na siatce? Środek: zastosuj, jeśli teren/token pokrywa się ze środkiem siatki; Procent obszaru: zastosuj, jeśli teren/token pokrywa co najmniej taką część kwadratu/heksu siatki; Euklidesowy: proporcjonalnie na podstawie procentu segmentu linii w obrębie terenu/tokenu między tym kwadratem/heksem siatki a poprzednim.",
"elevationruler.settings.grid-terrain-choice-center-point": "Punkt środkowy",
Expand Down
6 changes: 6 additions & 0 deletions languages/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
"elevationruler.settings.token-ruler-combat-history.name": "Rastrear Movimento de Combate",
"elevationruler.settings.token-ruler-combat-history.hint": "Para destacar a velocidade do token, soma todos os movimentos do token na rodada, ao exibir o Destaque de Velocidade.",

"elevationruler.settings.combine-prior-with-total.name": "Combinar Movimento Anterior com Movimento Total",
"elevationruler.settings.combine-prior-with-total.hint": "Quando Rastrear Movimento de Combate estiver habilitado, combine o movimento anterior da ficha na rodada com o movimento total. Caso contrário, coloque o movimento anterior em uma linha separada.",

"elevationruler.settings.token-speed-property.name": "Propriedade de Caminhada do Token",
"elevationruler.settings.token-speed-property.hint": "Para Destaque de Velocidade do token, esta é a propriedade do ator que representa a velocidade de caminhada do token.",

Expand Down Expand Up @@ -88,6 +91,9 @@
"elevationruler.settings.pathfinding_limit_token_los.name": "Limitar Descoberta de Rota às Áreas Exploradas",
"elevationruler.settings.pathfinding_limit_token_los.hint": "Ao encontrar rotas, limite o alcance da descoberta de rotas às áreas exploradas, a menos que o usuário seja o MJ.",

"elevationruler.settings.pathfinding_snap_to_grid.name": "Ajustar Descoberta de Rota à Grade",
"elevationruler.settings.pathfinding_snap_to_grid.hint": "Ao descobrir uma rota em um mapa com grade, ajuste a rota aos centros da grade, a menos que isso resulte no bloqueio do caminho.",

"elevationruler.settings.grid-terrain-algorithm.name": "Medição de Grade de Terreno",
"elevationruler.settings.grid-terrain-algorithm.hint": "Quando estiver em uma grade, como contabilizar penalidades de movimento ou bônus de terreno e tokens? Centro: aplica se o terreno/token se sobrepõe ao centro da grade; Percentual de Área: aplica se o terreno/token cobrir pelo menos esta parte do quadrado/hexágono da grade; Euclidiano: rateado com base na porcentagem do segmento de linha dentro do terreno/token entre esta grade quadrada/hexágono e o anterior.",
"elevationruler.settings.grid-terrain-choice-center-point": "Centro",
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"library": false,
"compatibility": {
"minimum": "12",
"verified": "12.330"
"verified": "12.331"
},
"authors": [
{
Expand Down
Loading

0 comments on commit 80f3248

Please sign in to comment.