Debug: Agregar info de facción y rol en fase MISSION

- Muestra facción y rol del jugador
- Ayuda a identificar por qué algunos espías no ven carta de sabotaje
This commit is contained in:
Resistencia Dev
2025-12-05 23:46:43 +01:00
parent 00434daf97
commit 1c8f1b08f5

View File

@@ -510,8 +510,10 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB
</p>
{/* DEBUG INFO - TEMPORAL */}
<div className="text-xs text-gray-400 bg-black/50 p-2 rounded">
<div className="text-xs text-gray-400 bg-black/50 p-2 rounded mb-4">
Debug: Tu ID: {currentPlayerId} | Equipo: [{gameState.proposedTeam.join(', ')}]
<br />
Tu facción: {currentPlayer?.faction || 'UNDEFINED'} | Rol: {currentPlayer?.role || 'UNDEFINED'}
</div>
{/* Cartas en orden aleatorio */}