diff --git a/handlers/replay_player.go b/handlers/replay_player.go index c918ea3..3f5c90b 100644 --- a/handlers/replay_player.go +++ b/handlers/replay_player.go @@ -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, } diff --git a/tools/replays.go b/tools/replays.go index 3b12b5b..2fb9ee1 100644 --- a/tools/replays.go +++ b/tools/replays.go @@ -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) @@ -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