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