cleaner polytan fully unlocked check

This commit is contained in:
ad044 2022-07-25 16:36:37 +04:00
parent c3497fb874
commit 589f5ee7bb

View file

@ -88,8 +88,8 @@ export const getRandomIdle = (
} else {
// video
const polytanProgress = gameProgress.polytan_unlocked_parts;
const isPolytanFullyUnlocked = Object.keys(polytanProgress).every(
(key) => !polytanProgress[key as keyof typeof polytanProgress]
const isPolytanFullyUnlocked = Object.values(polytanProgress).every(
(v) => v
);
if (site === GameSite.B && isPolytanFullyUnlocked && Math.random() < 0.3) {
return {