Fix 3 multiplayer bugs: type error, reconnect, lobby count

- game_screen.gd: fix Parser Error on line 270 — use 'as Environment'
  cast instead of ': Variant' annotation for WorldEnvironment.environment
- Game.gd: auto-resend game.ready on auth_success reconnect so the
  game session is restored when the WebSocket reconnects mid-game
- lobby_browser_row.gd: show real N/Max player count instead of
  hardcoded "1/2" / "2/2"
- CustomLobbyDto: add MaxPlayers, CurrentPlayerCount, GameMode, TeamCount
- GameListCustomLobbiesHandler: compute currentPlayerCount from
  GuestAccountId + AdditionalPlayersJson; pass new fields to DTO

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-26 09:05:40 -04:00
co-authored by Claude Happy
parent 9d4302cc6c
commit 9c7dc098aa
5 changed files with 43 additions and 7 deletions
@@ -267,7 +267,7 @@ func _ready() -> void:
func _process(delta: float) -> void:
var env := $WorldEnvironment.environment
var env := $WorldEnvironment.environment as Environment
if env != null:
env.sky_rotation.y += delta * SKY_ROTATION_SPEED