mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 04:21:24 +01:00
Submap with options
This commit is contained in:
parent
6f97864962
commit
e6e12a01fa
5 changed files with 168 additions and 65 deletions
|
|
@ -114,7 +114,7 @@ window.Military = (function () {
|
|||
for (const u of options.military) {
|
||||
if (u.type === "naval" && !b.port) continue; // only ports produce naval units
|
||||
const perc = +u.urban;
|
||||
if (isNaN(perc) || perc <= 0 || !s.temp[u.name]) continue;
|
||||
if (isNaN(perc) || perc <= 0 || !s.temp || !s.temp[u.name]) continue;
|
||||
|
||||
const mod = type === "generic" ? 1 : burgTypeModifier[type][u.type]; // cell specific modifier
|
||||
const army = m * perc * mod; // urban cell army
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue