reaper-arcade-hub 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/js/app.js +15 -15
  2. package/main/js/app.js +15 -15
  3. package/package.json +2 -2
package/js/app.js CHANGED
@@ -49,25 +49,25 @@ class ReaperHubApp {
49
49
  // 4. Validate Gateway Key Verification Session with HWID Check
50
50
  const isAuthed = this.checkGatewayAuthentication();
51
51
  const gateModal = document.getElementById('key-gate-modal');
52
- if (!this.currentUser.username) {
53
- const stored = localStorage.getItem('reaper_username');
54
- if (stored) {
55
- this.currentUser.username = stored;
56
- } else {
57
- const newName = typeof getRandomUsername === 'function' ? getRandomUsername() : "Reaper_" + Math.floor(Math.random() * 9999);
58
- this.currentUser.username = newName;
59
- localStorage.setItem('reaper_username', newName);
60
- }
61
- }
62
- this.playtimeSeconds = parseInt(localStorage.getItem('reaper_playtime_' + this.currentUser.username) || '0', 10);
63
-
64
52
  if (!isAuthed) {
65
- if (gateModal) gateModal.style.display = 'none';
66
- this.currentUser.isGuest = false;
67
- this.currentUser.rank = localStorage.getItem('reaper_rank') || "member";
53
+ if (gateModal) gateModal.style.display = 'flex';
54
+ this.currentUser.isGuest = true;
55
+ this.currentUser.username = "";
56
+ this.currentUser.rank = "guest";
68
57
  } else {
69
58
  if (gateModal) gateModal.style.display = 'none';
70
59
  this.currentUser.isGuest = false;
60
+ if (!this.currentUser.username) {
61
+ const stored = localStorage.getItem('reaper_username');
62
+ if (stored) {
63
+ this.currentUser.username = stored;
64
+ } else {
65
+ const newName = typeof getRandomUsername === 'function' ? getRandomUsername() : "Reaper_" + Math.floor(Math.random() * 9999);
66
+ this.currentUser.username = newName;
67
+ localStorage.setItem('reaper_username', newName);
68
+ }
69
+ }
70
+ this.playtimeSeconds = parseInt(localStorage.getItem('reaper_playtime_' + this.currentUser.username) || '0', 10);
71
71
  }
72
72
 
73
73
  // 6. Role check
package/main/js/app.js CHANGED
@@ -49,25 +49,25 @@ class ReaperHubApp {
49
49
  // 4. Validate Gateway Key Verification Session with HWID Check
50
50
  const isAuthed = this.checkGatewayAuthentication();
51
51
  const gateModal = document.getElementById('key-gate-modal');
52
- if (!this.currentUser.username) {
53
- const stored = localStorage.getItem('reaper_username');
54
- if (stored) {
55
- this.currentUser.username = stored;
56
- } else {
57
- const newName = typeof getRandomUsername === 'function' ? getRandomUsername() : "Reaper_" + Math.floor(Math.random() * 9999);
58
- this.currentUser.username = newName;
59
- localStorage.setItem('reaper_username', newName);
60
- }
61
- }
62
- this.playtimeSeconds = parseInt(localStorage.getItem('reaper_playtime_' + this.currentUser.username) || '0', 10);
63
-
64
52
  if (!isAuthed) {
65
- if (gateModal) gateModal.style.display = 'none';
66
- this.currentUser.isGuest = false;
67
- this.currentUser.rank = localStorage.getItem('reaper_rank') || "member";
53
+ if (gateModal) gateModal.style.display = 'flex';
54
+ this.currentUser.isGuest = true;
55
+ this.currentUser.username = "";
56
+ this.currentUser.rank = "guest";
68
57
  } else {
69
58
  if (gateModal) gateModal.style.display = 'none';
70
59
  this.currentUser.isGuest = false;
60
+ if (!this.currentUser.username) {
61
+ const stored = localStorage.getItem('reaper_username');
62
+ if (stored) {
63
+ this.currentUser.username = stored;
64
+ } else {
65
+ const newName = typeof getRandomUsername === 'function' ? getRandomUsername() : "Reaper_" + Math.floor(Math.random() * 9999);
66
+ this.currentUser.username = newName;
67
+ localStorage.setItem('reaper_username', newName);
68
+ }
69
+ }
70
+ this.playtimeSeconds = parseInt(localStorage.getItem('reaper_playtime_' + this.currentUser.username) || '0', 10);
71
71
  }
72
72
 
73
73
  // 6. Role check
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reaper-arcade-hub",
3
- "version": "2.0.6",
4
- "description": "Reaper Hub - High-Speed 788-Game Arcade Engine, Direct CDN Boot, 60 FPS Focus, Security Shield, HWID Gateway & Realtime Chat",
3
+ "version": "2.0.7",
4
+ "description": "Reaper Hub - Strict HWID Key Gatekeeper, 788 High-Speed Games, Security Shield, Realtime Chat & DMs, Playtime Leaderboard & Working Game Launcher",
5
5
  "main": "main/index.html",
6
6
  "unpkg": "main/index.html",
7
7
  "jsdelivr": "main/index.html",