api specs
This commit is contained in:
@@ -69,7 +69,7 @@ func (a *App) loadCurrentScore(stage string, playerID int) (int, error) {
|
||||
}
|
||||
|
||||
func (a *App) buildAdviceResponse(stage string, playerID int, raw scoreAdviceModelResponse) ScoreAdviceResponse {
|
||||
advised := clampInt(raw.AdvisedScore, 0, 9999)
|
||||
advised := clampInt(raw.AdvisedScore, 0, 100)
|
||||
reason := strings.TrimSpace(raw.Reason)
|
||||
if reason == "" {
|
||||
reason = "AI estimated the score from visible impacts."
|
||||
|
||||
Reference in New Issue
Block a user