Browse Source

remove map stop debug functions (not needed)

lairaalmas 1 year ago
parent
commit
52c54478f7
2 changed files with 5 additions and 9 deletions
  1. 3 3
      src/js/globals/globals_debug.js
  2. 2 6
      src/js/screens/map.js

+ 3 - 3
src/js/globals/globals_debug.js

@@ -1,16 +1,16 @@
 const isDebugMode = true;
 
 const debugState = {
-  lang: { status: true, lang: 'en_US' },
+  lang: { status: true, lang: 'fr_FR' },
   name: { status: true, name: 'Username' },
-  menu: { status: true, id: 2 },
+  menu: { status: true, id: 0 },
   customMenu: {
     status: true,
     getData: () => {
       return { mode: 'a', operation: 'plus', difficulty: 1, label: true };
     },
   },
-  map: { status: false, stop: false },
+  map: { status: false },
   end: { status: false, stop: false },
 };
 

+ 2 - 6
src/js/screens/map.js

@@ -255,12 +255,8 @@ const mapState = {
 
     if (isDebugMode && debugState.map.status) {
       // programmatically skip map
-      if (debugState.map.stop) {
-        self.moveCounter--;
-      } else {
-        curMapPosition++;
-        self.loadGame();
-      }
+      curMapPosition++;
+      self.loadGame();
     }
 
     if (self.moveCounter > 60) {