Retreats now work as expected

This commit is contained in:
Tyler Marques 2025-03-26 17:05:30 -04:00
parent 34371a40af
commit cae33dd5ba
No known key found for this signature in database
GPG key ID: 7672EFD79378341C
13 changed files with 92 additions and 69 deletions

View file

@ -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 = {};