Generate weapon data dynamically from counters

This commit is contained in:
2024-05-02 16:58:00 -07:00
parent e0019128a0
commit ddd32d47c5
4 changed files with 84 additions and 27 deletions

View File

@@ -43,7 +43,7 @@ function updatePlacement(cell, selected, clone) {
selected.dataset.previous = prevCoords;
cell.appendChild(selected);
selected.childNodes.forEach(n => {
Array.from(selected.children).forEach(n => {
if (n.classList.contains('removed')) {
n.remove();
} else if ('preexisting' in n.dataset) {