feat: 파티 인원 기반 MaxPlayers 설정 + validate-entry에 expectedPlayers 응답
All checks were successful
Server CI/CD / lint-and-build (push) Successful in 56s
Server CI/CD / deploy (push) Successful in 56s

- RequestEntry에서 MaxPlayers를 len(usernames)로 설정 (기존 고정 3 → 동적)
- ValidateEntryToken 응답에 expectedPlayers 필드 추가
- 데디 서버가 파티 크기만큼 접속 시 레이드 시작 가능

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 18:54:13 +09:00
parent cc9884bdfe
commit d46ba47c63
2 changed files with 12 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ func (s *Service) RequestEntry(usernames []string, bossID int) (*BossRoom, error
SessionName: slot.SessionName,
BossID: bossID,
Status: StatusWaiting,
MaxPlayers: defaultMaxPlayers,
MaxPlayers: len(usernames),
Players: string(playersJSON),
}
if err := txRepo.Create(room); err != nil {