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 { } else {
// video // video
const polytanProgress = gameProgress.polytan_unlocked_parts; const polytanProgress = gameProgress.polytan_unlocked_parts;
const isPolytanFullyUnlocked = Object.keys(polytanProgress).every( const isPolytanFullyUnlocked = Object.values(polytanProgress).every(
(key) => !polytanProgress[key as keyof typeof polytanProgress] (v) => v
); );
if (site === GameSite.B && isPolytanFullyUnlocked && Math.random() < 0.3) { if (site === GameSite.B && isPolytanFullyUnlocked && Math.random() < 0.3) {
return { return {