Generate weapon data dynamically from counters
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user