feat: achievement system with 10 unlockable achievements

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 15:33:12 +09:00
parent 57e56ae7a4
commit fb0e64a109
7 changed files with 229 additions and 4 deletions

View File

@@ -50,6 +50,8 @@ type GameState struct {
SubmittedActions map[string]string // fingerprint -> action description
PendingLogs []string // logs waiting to be revealed one by one
TurnResolving bool // true while logs are being replayed
BossKilled bool
FleeSucceeded bool
}
func (s *GameSession) addLog(msg string) {
@@ -277,6 +279,8 @@ func (s *GameSession) GetState() GameState {
SubmittedActions: submittedCopy,
PendingLogs: pendingCopy,
TurnResolving: s.state.TurnResolving,
BossKilled: s.state.BossKilled,
FleeSucceeded: s.state.FleeSucceeded,
}
}