mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.3.08a
This commit is contained in:
parent
6419b4372b
commit
702a1fe954
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@
|
|||
let army = m * perc; // basic army for rural cell
|
||||
|
||||
if (u.type === "naval") {
|
||||
if (!b.port || b.port < 1) continue; // only ports have naval units
|
||||
if (!b.port || !pack.features[b.port] || b.port < 1) continue; // only ports have naval units
|
||||
army *= normalizeNaval(pack.features[b.port].ports);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue