|
|
@ -36,6 +36,10 @@ func Clear(uuid []byte, slot int, seed string, save defs.SessionSaveData) (Clear
|
|
|
|
waveCompleted--
|
|
|
|
waveCompleted--
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if save.Score >= 20000 {
|
|
|
|
|
|
|
|
db.UpdateAccountBanned(uuid, true)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
err = db.AddOrUpdateAccountDailyRun(uuid, save.Score, waveCompleted)
|
|
|
|
err = db.AddOrUpdateAccountDailyRun(uuid, save.Score, waveCompleted)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.Printf("failed to add or update daily run record: %s", err)
|
|
|
|
log.Printf("failed to add or update daily run record: %s", err)
|
|
|
|