mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.4.02
This commit is contained in:
parent
72d124d95d
commit
cf8c21c94d
1 changed files with 6 additions and 3 deletions
|
|
@ -38,9 +38,12 @@ function showBattleScreen(attacker, defender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addRegiment(div, regiment) {
|
function addRegiment(div, regiment) {
|
||||||
const reg = document.createElement("div");
|
let line = `<tr><th>${regiment.name}</th>`;
|
||||||
reg.innerHTML = regiment.name;
|
for (const u of options.military) {
|
||||||
div.append(reg);
|
line += `<th>${regiment.u[u.name]||0}</th>`;
|
||||||
|
}
|
||||||
|
line += `<th>${regiment.a||0}</th></tr>`;
|
||||||
|
div.querySelector("tbody").insertAdjacentHTML("beforebegin", line);
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeBattleScreen() {
|
function closeBattleScreen() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue