diff --git a/bin/buildcache.py b/bin/buildcache.py index 6529c80f9..f956b1fe9 100755 --- a/bin/buildcache.py +++ b/bin/buildcache.py @@ -24,7 +24,7 @@ def score(inputbuffer, displayname): likely = False score += x startat += y + 1 - score = int((score/len(displayname)) + (score/len(inputbuffer))+0.99) + score = int(score/len(displayname) + (score/len(inputbuffer)) + 0.99)/2 if (inputbuffer[0] == displayname[0]) and (score < 85): score += 15 return score, likely @@ -128,4 +128,5 @@ def main(): print(f' !word {cache[a][b][c][d]}') print(' !byte 0') -main() +if __name__ == '__main__': + main() diff --git a/res/CACHE00.IDX b/res/CACHE00.IDX index ffc25544e..98c8bd422 100644 Binary files a/res/CACHE00.IDX and b/res/CACHE00.IDX differ diff --git a/res/CACHE01.IDX b/res/CACHE01.IDX index 135416a8d..b0c475397 100644 Binary files a/res/CACHE01.IDX and b/res/CACHE01.IDX differ diff --git a/res/CACHE10.IDX b/res/CACHE10.IDX index 512225830..373d17a4b 100644 Binary files a/res/CACHE10.IDX and b/res/CACHE10.IDX differ diff --git a/res/CACHE11.IDX b/res/CACHE11.IDX index e2a3050b2..ceba920bc 100644 Binary files a/res/CACHE11.IDX and b/res/CACHE11.IDX differ