Implement solid territory supply system

This commit is contained in:
sokol
2026-02-21 17:59:41 +03:00
parent 7035f0457b
commit 254287c124
3 changed files with 89 additions and 15 deletions

View File

@@ -513,14 +513,16 @@ class GameUI {
instruction.textContent = 'Select a cell with dice to move';
}
// Update selected cell info
// Update selected cell info - always show with placeholder if nothing selected
const cellInfo = document.getElementById('selected-cell-info');
cellInfo.style.display = 'block';
if (this.selectedCell) {
cellInfo.style.display = 'block';
document.getElementById('cell-strength').textContent = this.selectedCell.getStrength();
document.getElementById('cell-dice').textContent = this.selectedCell.dice.length;
} else {
cellInfo.style.display = 'none';
document.getElementById('cell-strength').textContent = '-';
document.getElementById('cell-dice').textContent = '-';
}
// Update buttons