Change 'banned' to 'limited
This commit is contained in:
4 files changed
+6
-6
No files matched your search
@@ -54,7 +54,7 @@ func Clear(uuid []byte, slot int, seed string, save defs.SessionSaveData) (Clear
|
||||
}
|
||||
|
||||
if save.Score >= 20000 {
|
||||
db.UpdateAccountBanned(uuid, true)
|
||||
db.SetAccountLimited(uuid, true)
|
||||
}
|
||||
|
||||
err = db.AddOrUpdateAccountDailyRun(uuid, save.Score, waveCompleted)
|
||||
|
||||
@@ -60,7 +60,7 @@ func Update(uuid []byte, slot int, save any) error {
|
||||
save.VoucherCounts["1"] > 150 ||
|
||||
save.VoucherCounts["2"] > 100 ||
|
||||
save.VoucherCounts["3"] > 10 {
|
||||
db.UpdateAccountBanned(uuid, true)
|
||||
db.SetAccountLimited(uuid, true)
|
||||
}
|
||||
|
||||
err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
|
||||
|
||||
Reference in new issue
Block a user