Ban if daily score over 20000
This commit is contained in:
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user