Skip to content

Commit 735e678

Browse files
committed
candisplay was misspelled??? (also some changes for an upcoming feature)
1 parent 289ae6a commit 735e678

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

game/js/Cfunction.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,16 @@ var oS = {
539539
SetStyle($("tGround"), bgStyle);
540540
$("tGround").innerHTML = oS.GifHTML;
541541

542-
const startGame = function (delay) {
542+
const startGame = function (delay, zombies) {
543543
const self = oS;
544544
NewImg("imgGrowSoil", "images/interface/GrowSoil.gif", "visibility:hidden;z-index:50", EDAll);
545545
NewImg("imgGrowSpray", "images/interface/GrowSpray.gif", "visibility:hidden;z-index:50", EDAll);
546546
innerText(ESSunNum, self.SunNum);
547-
InitPCard();
547+
if (zombies) {
548+
InitZCard();
549+
} else {
550+
InitPCard();
551+
}
548552

549553
if (self.ShowScroll) {
550554
oSym.addTask(
@@ -579,7 +583,12 @@ var oS = {
579583
SetVisible($("dMenu"));
580584
if (oS.CanSelectCard) {
581585
SetVisible($("dTop"), $("dCardList"));
582-
$("dSelectCard").className = "show";
586+
if ($("dSelectCard").className === "zombies") {
587+
$("dSelectCard").className = "show";
588+
$("dSelectCard").classList.add("zombies");
589+
} else {
590+
$("dSelectCard").className = "show";
591+
}
583592
$("dSelectCard")
584593
.getAnimations()
585594
.forEach((a) => (a.playbackRate = oSym.NowStep));
@@ -1866,7 +1875,7 @@ var DisplayZombie = function () {
18661875
const htmlList = [];
18671876

18681877
while (i--) {
1869-
if (azCopy[i][0].prototype.CanDiaplay === 0) {
1878+
if (azCopy[i][0].prototype.CanDisplay === 0) {
18701879
azCopy.splice(i, 1);
18711880
}
18721881
}
@@ -2440,7 +2449,7 @@ var CancelShovel = function (e) {
24402449
const prevId = oS.MPID;
24412450
ClearChild($("tShovel"));
24422451
oS.Chose = 0;
2443-
SetVisible($("imgShovel"));
2452+
$("imgShovel").style = "";
24442453
if (prevId) {
24452454
SetAlpha($(prevId).childNodes[1], 100, 1);
24462455
}

0 commit comments

Comments
 (0)