mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
fix: json-export vertices data
This commit is contained in:
parent
9ad08c80c6
commit
778bea15ee
3 changed files with 7 additions and 7 deletions
|
|
@ -8028,7 +8028,7 @@
|
|||
<script defer src="modules/io/save.js?v=1.93.02"></script>
|
||||
<script defer src="modules/io/load.js?v=1.93.02"></script>
|
||||
<script defer src="modules/io/cloud.js"></script>
|
||||
<script defer src="modules/io/export.js?v=1.89.36"></script>
|
||||
<script defer src="modules/io/export.js?v=1.93.12"></script>
|
||||
<script defer src="modules/io/formats.js"></script>
|
||||
|
||||
<!-- Web Components -->
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ function getPackCellsData() {
|
|||
religion: dataArrays.religion[cellId],
|
||||
province: dataArrays.province[cellId]
|
||||
})),
|
||||
vertices: pack.vertices.c.map(vertexId => ({
|
||||
vertices: Array.from(pack.vertices.p).map((_, vertexId) => ({
|
||||
i: vertexId,
|
||||
p: pack.vertices.p[vertexId],
|
||||
v: pack.vertices.v[vertexId],
|
||||
|
|
@ -203,11 +203,11 @@ function getGridCellsData() {
|
|||
temp: dataArrays.temp[cellId],
|
||||
prec: dataArrays.prec[cellId]
|
||||
})),
|
||||
vertices: grid.vertices.c.map(vertexId => ({
|
||||
vertices: Array.from(grid.vertices.p).map((_, vertexId) => ({
|
||||
i: vertexId,
|
||||
p: pack.vertices.p[vertexId],
|
||||
v: pack.vertices.v[vertexId],
|
||||
c: pack.vertices.c[vertexId]
|
||||
p: grid.vertices.p[vertexId],
|
||||
v: grid.vertices.v[vertexId],
|
||||
c: grid.vertices.c[vertexId]
|
||||
})),
|
||||
cellsDesired: grid.cellsDesired,
|
||||
spacing: grid.spacing,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
// version and caching control
|
||||
const version = "1.93.11"; // generator version, update each time
|
||||
const version = "1.93.12"; // generator version, update each time
|
||||
|
||||
{
|
||||
document.title += " v" + version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue