mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
fix: enhance population constraints in UI and calculations
This commit is contained in:
parent
fa8fd58259
commit
0c26f0831f
4 changed files with 10 additions and 15 deletions
|
|
@ -399,8 +399,8 @@ window.Burgs = (() => {
|
|||
const [x2, y2] = cells.p[cells.haven[cell]];
|
||||
const deg = (Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI;
|
||||
|
||||
if (deg <= 0) return normalize(Math.abs(deg), 0, 180);
|
||||
return 2 - normalize(deg, 0, 180);
|
||||
if (deg <= 0) return rn(normalize(Math.abs(deg), 0, 180), 2);
|
||||
return rn(2 - normalize(deg, 0, 180), 2);
|
||||
})();
|
||||
|
||||
const arableBiomes = river ? [1, 2, 3, 4, 5, 6, 7, 8] : [5, 6, 7, 8];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue