From 9e0e343868a6aa06ff1a0a04c23bb8f89e08c4d3 Mon Sep 17 00:00:00 2001 From: Resistencia Dev Date: Sun, 7 Dec 2025 00:20:33 +0100 Subject: [PATCH] feat: Actualizar roles y facciones a Francia Ocupada MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cambiar nombre del juego de 'La Resistencia' a 'Francia Ocupada' - Actualizar roles: Marlene, Capitán Philippe, Partisano, Comandante Schmidt, Francotirador, Agente Doble, Infiltrado, Colaboracionista - Actualizar facciones: Aliados vs Alemanes - Implementar timer de votación de líder con auto-avance - Eliminar componentes de debug --- client/src/app/layout.tsx | 2 +- client/src/app/page.tsx | 2 +- client/src/components/GameBoard.tsx | 98 +++++++++++-------------- client/src/components/MissionResult.tsx | 46 +++++++----- client/src/components/MissionReveal.tsx | 21 +++--- server/src/index.ts | 40 ++++++++++ server/src/models/Game.ts | 62 ++++++++++------ shared/types.ts | 24 +++--- 8 files changed, 177 insertions(+), 118 deletions(-) diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx index 9db5f48..d315d1b 100644 --- a/client/src/app/layout.tsx +++ b/client/src/app/layout.tsx @@ -5,7 +5,7 @@ import './globals.css' const inter = Inter({ subsets: ['latin'] }) export const metadata: Metadata = { - title: 'La Resistencia: WWII', + title: 'Francia Ocupada: WWII', description: 'Juego de deducción social ambientado en la Segunda Guerra Mundial', } diff --git a/client/src/app/page.tsx b/client/src/app/page.tsx index e6258af..326fa16 100644 --- a/client/src/app/page.tsx +++ b/client/src/app/page.tsx @@ -173,7 +173,7 @@ export default function Home() {
Logo

- La Resistencia + Francia Ocupada

{view === 'lobby' && ( diff --git a/client/src/components/GameBoard.tsx b/client/src/components/GameBoard.tsx index 4e1f0fb..3bffc97 100644 --- a/client/src/components/GameBoard.tsx +++ b/client/src/components/GameBoard.tsx @@ -63,26 +63,6 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB actions.voteMission(vote); }; - // Componente de Debug para mostrar facción - const DebugInfo = () => ( -
-
- 🐛 DEBUG INFO -
-
-
Fase: {gameState.phase}
-
ID: {currentPlayerId}
-
Facción: - {currentPlayer?.faction || 'UNDEFINED'} -
-
Rol: {currentPlayer?.role || 'UNDEFINED'}
- {gameState.currentLeaderId && ( -
Líder: {gameState.currentLeaderId === currentPlayerId ? 'TÚ' : gameState.currentLeaderId}
- )} -
-
- ); - // Coordenadas porcentuales de los hexágonos de misión en el mapa const missionCoords = [ @@ -109,12 +89,14 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB Guerra Total - {/* Audio Auto-Play */} -