File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11401140 <script src="js/Cheatcodes.js" defer><\/script>
11411141 <script src="js/CPlants.js"><\/script>
11421142 <script src="js/CZombie.js"><\/script>
1143- <script src="js/CFP_Beta .js"><\/script>
1143+ <script src="js/IZombie .js"><\/script>
11441144 */
11451145 const scriptUrls = [
11461146 "js/Welcome.js" ,
11491149 "js/Cheatcodes.js" ,
11501150 "js/CPlants.js" ,
11511151 "js/CZombie.js" ,
1152- "js/CFP_Beta .js" ,
1152+ "js/IZombie .js" ,
11531153 "js/Init.js" ,
11541154 ] ;
11551155 // check if autoplay is allowed
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ let keySequence = "";
22let sequenceTimeout = null ;
33
44let cheatCodes = {
5- speed : ( ) => {
5+ fast : ( ) => {
66 CSpeed ( 1000 , 10 , 1000 ) ;
77 } ,
88 balloon : ( ) => {
99 oBalloon . prototype . Birth ( ) ;
1010 } ,
11- restartlevel : ( ) => {
11+ re : ( ) => {
1212 SelectModal ( oS . Lvl ) ;
1313 } ,
1414 handbook : ( ) => {
@@ -20,6 +20,15 @@ let cheatCodes = {
2020 oSym . addTask ( Math . round ( 1000 / oSym . TimeStep ) , ClickSun , [ sunId ] ) ;
2121 }
2222 } ,
23+ abminArrowUp : ( ) => {
24+ window . open ( "https://backend.pvzm.net/admin.html" , "_blank" ) ;
25+ } ,
26+ mustache : ( ) => {
27+ alert ( "yearn for the mustache" ) ;
28+ } ,
29+ moustache : ( ) => {
30+ alert ( "yearn for the moustache" ) ;
31+ } ,
2332} ;
2433
2534// oxlint-disable-next-line complexity
@@ -30,7 +39,7 @@ document.addEventListener("keydown", (event) => {
3039 }
3140
3241 // Add key to sequence
33- keySequence += event . key . toLowerCase ( ) ;
42+ keySequence += event . key ;
3443
3544 // Clear sequence after 5 seconds of inactivity
3645 clearTimeout ( sequenceTimeout ) ;
@@ -50,4 +59,5 @@ document.addEventListener("keydown", (event) => {
5059 if ( keySequence . length > 20 ) {
5160 keySequence = keySequence . slice ( - 10 ) ;
5261 }
62+ console . log ( keySequence ) ;
5363} ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments