Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions handlers/replay_player.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func GetVirtualReplayPlayerOutput(c *gin.Context) *APIError {
"count_good": replayStats.CountGood,
"count_okay": replayStats.CountOkay,
"count_miss": replayStats.CountMiss,
"count_minehit": replayStats.CountMineHit,
},
"deviance": replayStats.Hits,
}
Expand Down
22 changes: 12 additions & 10 deletions tools/replays.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func BuildReplay(user *db.User, score *db.Score, headerlessPath string, outputPa
strconv.Itoa(score.CountGood),
strconv.Itoa(score.CountOkay),
strconv.Itoa(score.CountMiss),
strconv.Itoa(score.CountMineHit),
strconv.Itoa(score.PauseCount),
user.Username)

Expand All @@ -48,16 +49,17 @@ func BuildReplay(user *db.User, score *db.Score, headerlessPath string, outputPa
}

type VirtualReplayPlayer struct {
Score int `json:"Score"`
Accuracy float64 `json:"Accuracy"`
MaxCombo int `json:"MaxCombo"`
CountMarv int `json:"CountMarv"`
CountPerf int `json:"CountPerf"`
CountGreat int `json:"CountGreat"`
CountGood int `json:"CountGood"`
CountOkay int `json:"CountOkay"`
CountMiss int `json:"CountMiss"`
Hits []string `json:"Hits"`
Score int `json:"Score"`
Accuracy float64 `json:"Accuracy"`
MaxCombo int `json:"MaxCombo"`
CountMarv int `json:"CountMarv"`
CountPerf int `json:"CountPerf"`
CountGreat int `json:"CountGreat"`
CountGood int `json:"CountGood"`
CountOkay int `json:"CountOkay"`
CountMiss int `json:"CountMiss"`
CountMineHit int `json:"CountMineHit"`
Hits []string `json:"Hits"`
}

// PlayReplayVirtually Plays a replay virtually and returns the result
Expand Down
Loading