@@ -104,7 +104,7 @@ function playSound(type) {
104104 }
105105}
106106
107- let unlockedEggs = JSON . parse ( localStorage . getItem ( "unlockedEggs" ) ) || [ ] ;
107+ const unlockedEggs = JSON . parse ( localStorage . getItem ( "unlockedEggs" ) ) || [ ] ;
108108let surpriseClickCount = 0 ;
109109let matrixActive = false ;
110110let destructInterval ;
@@ -233,7 +233,7 @@ function reopenConsole() {
233233let isProcessingXP = false ;
234234
235235// Ensure this is in the GLOBAL scope (not hidden inside another function)
236- window . createFloatingXP = function ( e ) {
236+ window . createFloatingXP = ( e ) => {
237237 // Prevent "spam" firing from high-speed mouse movement
238238 if ( isProcessingXP ) return ;
239239 isProcessingXP = true ;
@@ -758,7 +758,7 @@ document
758758/**
759759 * 7. SELF DESTRUCT ENGINE
760760 */
761- window . startSelfDestruct = function ( ) {
761+ window . startSelfDestruct = ( ) => {
762762 const btn = document . getElementById ( "self-destruct-btn" ) ;
763763 const devPanel = document . getElementById ( "dev-tools" ) ;
764764
@@ -886,7 +886,7 @@ function scrollToRandomUser() {
886886/**
887887 * UTILITY: SCREENSHOT MODE
888888 */
889- window . toggleScreenshotMode = function ( ) {
889+ window . toggleScreenshotMode = ( ) => {
890890 const devPanel = document . getElementById ( "dev-tools" ) ;
891891 const header = document . querySelector ( "header" ) ;
892892 const footer = document . querySelector ( "footer" ) ;
@@ -1002,7 +1002,7 @@ document.addEventListener("keydown", (e) => {
10021002
10031003async function addExperience ( amount ) {
10041004 // 1. Force strict numeric types to prevent "1" + "1" = "11"
1005- let xpToAdd = Number ( amount ) || 0 ;
1005+ const xpToAdd = Number ( amount ) || 0 ;
10061006 currentXP = Number ( currentXP ) || 0 ;
10071007 currentLevel = Number ( currentLevel ) || 0 ;
10081008 const XP_THRESHOLD = 45 ;
@@ -1064,7 +1064,7 @@ function updateInventoryCounts(lvl) {
10641064 const levelEntry = LEVELS [ i ] ;
10651065 if ( levelEntry && levelEntry . rarity ) {
10661066 const r = levelEntry . rarity . toLowerCase ( ) ;
1067- if ( counts . hasOwnProperty ( r ) ) {
1067+ if ( Object . hasOwn ( counts , r ) ) {
10681068 counts [ r ] ++ ;
10691069 }
10701070 }
@@ -1199,7 +1199,7 @@ function initProfileTracker() {
11991199
12001200 // Only increment if the link text contains "Profile"
12011201 if ( targetLink && targetLink . textContent . includes ( "Profile" ) ) {
1202- let currentCount = parseInt (
1202+ const currentCount = parseInt (
12031203 localStorage . getItem ( "profile_view_count" ) || 0 ,
12041204 ) ;
12051205 localStorage . setItem ( "profile_view_count" , currentCount + 1 ) ;
0 commit comments