Remove anti cheat
This commit is contained in:
4 files changed
+2
-22
No files matched your search
@@ -53,10 +53,6 @@ func Clear(uuid []byte, slot int, seed string, save defs.SessionSaveData) (Clear
|
||||
waveCompleted--
|
||||
}
|
||||
|
||||
if save.Score >= 20000 {
|
||||
db.SetAccountLimited(uuid, true)
|
||||
}
|
||||
|
||||
err = db.AddOrUpdateAccountDailyRun(uuid, save.Score, waveCompleted)
|
||||
if err != nil {
|
||||
log.Printf("failed to add or update daily run record: %s", err)
|
||||
|
||||
@@ -56,13 +56,6 @@ func Update(uuid []byte, slot int, save any) error {
|
||||
return fmt.Errorf("client version out of date")
|
||||
}
|
||||
|
||||
if save.VoucherCounts["0"] > 300 ||
|
||||
save.VoucherCounts["1"] > 150 ||
|
||||
save.VoucherCounts["2"] > 100 ||
|
||||
save.VoucherCounts["3"] > 10 {
|
||||
db.SetAccountLimited(uuid, true)
|
||||
}
|
||||
|
||||
err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to update account stats: %s", err)
|
||||
|
||||
Reference in new issue
Block a user