mirror of
https://github.com/JorySeverijnse/ui-fixer-supreme.git
synced 2026-01-29 16:18:38 +00:00
changed time on site achivements times
This commit is contained in:
parent
f600f2653f
commit
0e0c320477
@ -40,11 +40,11 @@ const defaultAchievements: Achievement[] = [
|
||||
{ id: 'all_pages', name: 'Completionist', description: 'Visit every page on the site', icon: '🗺️', unlocked: false, secret: true },
|
||||
|
||||
// Time achievements
|
||||
{ id: 'time_5min', name: 'Quick Visit', description: 'Spend 5 minutes on the site', icon: '⏱️', unlocked: false },
|
||||
{ id: 'time_15min', name: 'Taking Your Time', description: 'Spend 15 minutes on the site', icon: '⏰', unlocked: false },
|
||||
{ id: 'time_30min', name: 'Deep Dive', description: 'Spend 30 minutes on the site', icon: '🕐', unlocked: false },
|
||||
{ id: 'time_1hour', name: 'Marathon Session', description: 'Spend 1 hour on the site', icon: '🕑', unlocked: false, secret: true },
|
||||
{ id: 'time_2hour', name: 'No Life', description: 'Spend 2 hours on the site', icon: '💀', unlocked: false, secret: true },
|
||||
{ id: 'time_15min', name: 'Quick Visit', description: 'Spend 15 minutes on the site', icon: '⏱️', unlocked: false },
|
||||
{ id: 'time_30min', name: 'Taking Your Time', description: 'Spend 30 minutes on the site', icon: '⏰', unlocked: false },
|
||||
{ id: 'time_1hour', name: 'Deep Dive', description: 'Spend 1 hour on the site', icon: '🕐', unlocked: false },
|
||||
{ id: 'time_3hour', name: 'Marathon Session', description: 'Spend 3 hour on the site', icon: '🕑', unlocked: false },
|
||||
{ id: 'time_24hour', name: 'No Life', description: 'Spend 24 hours on the site', icon: '💀', unlocked: false, secret: true },
|
||||
|
||||
// Game achievements
|
||||
{ id: 'tetris_played', name: 'Block Stacker', description: 'Play Tetris', icon: '🧱', unlocked: false },
|
||||
@ -125,11 +125,11 @@ export const AchievementsProvider = ({ children }: { children: ReactNode }) => {
|
||||
|
||||
// Check time-based achievements
|
||||
useEffect(() => {
|
||||
if (timeOnSite >= 300) unlockAchievement('time_5min');
|
||||
if (timeOnSite >= 900) unlockAchievement('time_15min');
|
||||
if (timeOnSite >= 1800) unlockAchievement('time_30min');
|
||||
if (timeOnSite >= 3600) unlockAchievement('time_1hour');
|
||||
if (timeOnSite >= 7200) unlockAchievement('time_2hour');
|
||||
if (timeOnSite >= 10800) unlockAchievement('time_3hour');
|
||||
if (timeOnSite >= 86400) unlockAchievement('time_24hour');
|
||||
}, [timeOnSite]);
|
||||
|
||||
// Check time of day achievements
|
||||
|
||||
Loading…
Reference in New Issue
Block a user