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) {
|
||||
const reg = document.createElement("div");
|
||||
reg.innerHTML = regiment.name;
|
||||
div.append(reg);
|
||||
let line = `<tr><th>${regiment.name}</th>`;
|
||||
for (const u of options.military) {
|
||||
line += `<th>${regiment.u[u.name]||0}</th>`;
|
||||
}
|
||||
line += `<th>${regiment.a||0}</th></tr>`;
|
||||
div.querySelector("tbody").insertAdjacentHTML("beforebegin", line);
|
||||
}
|
||||
|
||||
function closeBattleScreen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue