diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-02 18:39:25 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:13:09 +0100 |
commit | daf0e6956a392ffb54215156c193924d1b209ba2 (patch) | |
tree | 89486175153f95e39585be2f74aa6ad5d59a1f5b /tools/gendata.js | |
parent | 86ed19aa0765a974cac5518f533afab496f334ec (diff) | |
download | plantagenet-daf0e6956a392ffb54215156c193924d1b209ba2.tar.gz |
More cutting.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index 8595fcd..1ed9bdb 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -156,10 +156,10 @@ const scale = 1 function defloc(region, stronghold, type, name) { let [x, y, w, h] = boxes[name] - x = Math.floor(x * 75 / 300) - y = Math.floor(y * 75 / 300) - w = Math.ceil(w * 75 / 300) - h = Math.ceil(h * 75 / 300) + x = Math.floor(x) + y = Math.floor(y) + w = Math.ceil(w) + h = Math.ceil(h) locmap[name] = locales.length if (stronghold > 0) strongholds.push(locales.length) |