Skip to content

Commit 924d487

Browse files
committed
Replace CFP_Beta.js with IZombie.js and update script references in index.html
1 parent 4ad9dd1 commit 924d487

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

game/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@
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",
@@ -1149,7 +1149,7 @@
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

game/js/Cheatcodes.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ let keySequence = "";
22
let sequenceTimeout = null;
33

44
let 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.

0 commit comments

Comments
 (0)