This commit is contained in:
Azgaar 2020-05-16 01:11:01 +03:00
parent 2a67ee5d9f
commit a21e7f5ea4

View file

@ -153,7 +153,7 @@ function overviewRegiments(state) {
const military = pack.states[state].military;
const i = military.length ? last(military).i + 1 : 0;
const n = +(pack.cells.h[cell] < 20); // naval or land
const reg = {a:0, cell, i, n, u:{}, x, y, bx:x, by:y, icon:"🛡️"};
const reg = {a:0, cell, i, n, u:{}, x, y, bx:x, by:y, state, icon:"🛡️"};
reg.name = Military.getName(reg, military);
military.push(reg);
Military.generateNote(reg, pack.states[state]); // add legend