mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-26 17:13:19 +00:00
Retreats now work as expected
This commit is contained in:
parent
34371a40af
commit
cae33dd5ba
13 changed files with 92 additions and 69 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import * as THREE from "three";
|
||||
import { currentPower, gameState } from "../gameState";
|
||||
import { gameState } from "../gameState";
|
||||
import { config } from "../config";
|
||||
import { advanceToNextPhase } from "../phase";
|
||||
|
||||
|
|
@ -12,6 +12,9 @@ let chatWindows = {}; // Store chat window elements by power
|
|||
export function createChatWindows() {
|
||||
// Clear existing chat windows
|
||||
const chatContainer = document.getElementById('chat-container');
|
||||
if (!chatContainer) {
|
||||
throw new Error("Could not get element with ID 'chat-container'")
|
||||
}
|
||||
chatContainer.innerHTML = '';
|
||||
chatWindows = {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue