not showing crown based on local data if a funbox is active

This commit is contained in:
Miodec 2021-07-10 01:38:27 +01:00
parent 08ad5728db
commit 3fb097c62c

View file

@ -1553,6 +1553,13 @@ export function finish(difficultyFailed = false) {
if (lpb < stats.wpm && stats.wpm < highestwpm) {
dontShowCrown = true;
}
if (
Config.funbox !== "none" &&
Config.funbox !== "plus_one" &&
Config.funbox !== "plus_two"
) {
dontShowCrown = true;
}
if (Config.mode == "quote") dontShowCrown = true;
if (lpb < stats.wpm) {
//new pb based on local