From be8c73b884c751bc4a1e05e2c2870377efac888e Mon Sep 17 00:00:00 2001 From: ClaytonTDM Date: Wed, 9 Oct 2024 06:39:25 +0000 Subject: [PATCH] Prettified Code! --- .github/ISSUE_TEMPLATE/bug_report.md | 24 +- .github/ISSUE_TEMPLATE/feature_request.md | 7 +- game/js/CPlants.js | 1238 ++++++++++--------- game/js/CZombie.js | 1324 +++++++++++---------- game/js/Cfunction.js | 228 ++-- game/level/0.js | 12 +- game/level/1.js | 18 +- game/level/112.js | 16 +- game/level/2.js | 27 +- game/level/30.js | 16 +- game/level/4.js | 8 +- game/level/40.js | 16 +- game/level/5.js | 12 +- game/level/50.js | 16 +- game/level/CardRain.js | 6 +- game/level/FB.js | 16 +- game/level/FlowerDefense.js | 14 +- game/level/SunPower.js | 2 +- game/level/btlzombie.js | 16 +- game/level/izombieleveleditor.js | 2 +- game/level/izombieleveleditorbeta.js | 2 +- 21 files changed, 1573 insertions(+), 1447 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e8d3f7c4..ff2be839 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,10 +1,9 @@ --- name: Bug report about: Create a report to help us improve PVZM -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index ab277a0b..ae9f87cf 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,9 @@ --- name: Feature request about: Suggest an idea for PVZM -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Is your feature request related to a problem? Please describe.** diff --git a/game/js/CPlants.js b/game/js/CPlants.js index 89fb854c..1c19e8ac 100644 --- a/game/js/CPlants.js +++ b/game/js/CPlants.js @@ -22,18 +22,18 @@ var CPlants = NewO({ return d ? oGd.$LF[b] == 1 ? e > 0 && - e < d.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) + e < d.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) : c[0] && !c[1] : oGd.$LF[b] == 1 - ? !( - e < 1 || - e > 9 || - oGd.$Crater[a] || - oGd.$Tombstones[a] || - c[1] - ) - : c[0] && !c[1]; + ? !( + e < 1 || + e > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + c[1] + ) + : c[0] && !c[1]; }, getHurt: function (e, c, b) { var d = this, @@ -310,11 +310,11 @@ var CPlants = NewO({ k > c ? b.Die() : ((b.pixelRight += 10), - (b.AttackedLX = k += 10), - (b.AttackedRX = j += 10), - (g.style.left = (b.pixelLeft += 10) + "px"), - oSym.addTask(1, arguments.callee, [b, c, k, j, e, g]), - [this]); + (b.AttackedLX = k += 10), + (b.AttackedRX = j += 10), + (g.style.left = (b.pixelLeft += 10) + "px"), + oSym.addTask(1, arguments.callee, [b, c, k, j, e, g]), + [this]); })(a, oS.W, a.AttackedLX, a.AttackedRX, a.R, $(a.id)); }, }), @@ -404,11 +404,11 @@ var CPlants = NewO({ k > c ? b.Die() : ((b.pixelRight += 10), - (b.AttackedLX = k += 10), - (b.AttackedRX = j += 10), - (g.style.left = (b.pixelLeft += 10) + "px"), - oSym.addTask(1, arguments.callee, [b, c, k, j, e, g]), - [this]); + (b.AttackedLX = k += 10), + (b.AttackedRX = j += 10), + (g.style.left = (b.pixelLeft += 10) + "px"), + oSym.addTask(1, arguments.callee, [b, c, k, j, e, g]), + [this]); })(a, oS.W, a.AttackedLX, a.AttackedRX, a.R, $(a.id)); }, }), @@ -428,7 +428,7 @@ var CPlants = NewO({ PrivateBirth: function (a) { a.PrivateDie = oS.BrainsNum ? ((a.DieStep = Math.floor(150 / oS.BrainsNum)), - function (d) { + function (d) { var c, b; AppearSun( Math.floor(GetX(d.C) - 40 + Math.random() * 41), @@ -438,17 +438,17 @@ var CPlants = NewO({ ); (b = --oS.BrainsNum) ? ((c = b * d.DieStep), - ($("imgFlagHead").style.left = c - 11 + "px"), - ($("imgFlagMeterFull").style.clip = + ($("imgFlagHead").style.left = c - 11 + "px"), + ($("imgFlagMeterFull").style.clip = "rect(0,157px,21px," + c + "px)")) : (($("imgFlagHead").style.left = "-1px"), - ($("imgFlagMeterFull").style.clip = + ($("imgFlagMeterFull").style.clip = "rect(0,157px,21px,0)"), - oP.FlagToEnd()); - }) + oP.FlagToEnd()); + }) : function (b) { GameOver(); - }; + }; }, GetDX: function () { return -40; @@ -579,13 +579,13 @@ var CPlants = NewO({ ((m -= 5) < 100 ? ClearChild(i) : ((i.style.left = (l -= 5) + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, k, l, i, j, - ]))); + ]))); }, [ f, @@ -619,14 +619,14 @@ var CPlants = NewO({ ((k -= 5) < -15 ? ClearChild(i) : ((i.style.top = k + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, n, GetR(k + 15), k, i, j, - ]))); + ]))); }, [ d, @@ -661,14 +661,14 @@ var CPlants = NewO({ ((k += 5) > 600 ? ClearChild(i) : ((i.style.top = k + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, n, GetR(k + 15), k, i, j, - ]))); + ]))); }, [ d, @@ -705,15 +705,15 @@ var CPlants = NewO({ : (SetStyle(i, { left: (m += 4) + "px", top: k + "px", - }), - oSym.addTask(1, arguments.callee, [ + }), + oSym.addTask(1, arguments.callee, [ n, GetR(k + 15), m, k, i, j, - ]))); + ]))); }, [ f, @@ -750,15 +750,15 @@ var CPlants = NewO({ : (SetStyle(i, { left: (m += 4) + "px", top: k + "px", - }), - oSym.addTask(1, arguments.callee, [ + }), + oSym.addTask(1, arguments.callee, [ n, GetR(k + 15), m, k, i, j, - ]))); + ]))); }, [ f, @@ -904,13 +904,13 @@ var CPlants = NewO({ ((m -= 5) < 100 ? ClearChild(i) : ((i.style.left = (l -= 5) + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, k, l, i, j, - ]))); + ]))); }, [ f, @@ -944,14 +944,14 @@ var CPlants = NewO({ ((k -= 5) < -15 ? ClearChild(i) : ((i.style.top = k + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, n, GetR(k + 15), k, i, j, - ]))); + ]))); }, [ d, @@ -986,14 +986,14 @@ var CPlants = NewO({ ((k += 5) > 600 ? ClearChild(i) : ((i.style.top = k + "px"), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ m, n, GetR(k + 15), k, i, j, - ]))); + ]))); }, [ d, @@ -1030,15 +1030,15 @@ var CPlants = NewO({ : (SetStyle(i, { left: (m += 4) + "px", top: k + "px", - }), - oSym.addTask(1, arguments.callee, [ + }), + oSym.addTask(1, arguments.callee, [ n, GetR(k + 15), m, k, i, j, - ]))); + ]))); }, [ f, @@ -1075,15 +1075,15 @@ var CPlants = NewO({ : (SetStyle(i, { left: (m += 4) + "px", top: k + "px", - }), - oSym.addTask(1, arguments.callee, [ + }), + oSym.addTask(1, arguments.callee, [ n, GetR(k + 15), m, k, i, j, - ]))); + ]))); }, [ f, @@ -1185,29 +1185,29 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = [ + }).src = [ "images/Plants/PeaBulletHit.gif", "images/Plants/FireBulletHit.webp", - ][m]), - oSym.addTask(10, ClearChild, [j])) + ][m]), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1305,29 +1305,29 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = [ + }).src = [ "images/Plants/PeaBulletHit.gif", "images/Plants/FireBulletHit.webp", - ][m]), - oSym.addTask(10, ClearChild, [j])) + ][m]), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1441,26 +1441,26 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = "images/Plants/LotusRoot/BulletHit.png"), - oSym.addTask(10, ClearChild, [j])) + }).src = "images/Plants/LotusRoot/BulletHit.png"), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1540,26 +1540,26 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = "images/Plants/PeaBulletHit1.gif"), - oSym.addTask(10, ClearChild, [j])) + }).src = "images/Plants/PeaBulletHit1.gif"), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1639,26 +1639,26 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = "images/Plants/PeaBulletHit1.gif"), - oSym.addTask(10, ClearChild, [j])) + }).src = "images/Plants/PeaBulletHit1.gif"), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1830,28 +1830,28 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", width: "52px", height: "46px", - }).src = "images/Plants/PeaBulletHit.gif"), - oSym.addTask(10, ClearChild, [j])) + }).src = "images/Plants/PeaBulletHit.gif"), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -1921,28 +1921,28 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", width: "52px", height: "46px", - }).src = "images/Plants/PeaBulletHit.gif"), - oSym.addTask(10, ClearChild, [j])) + }).src = "images/Plants/PeaBulletHit.gif"), + oSym.addTask(10, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -2072,29 +2072,29 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[o] - ](f, j, e), - (SetStyle(l, { + ](f, j, e), + (SetStyle(l, { left: q + 28 + "px", - }).src = [ + }).src = [ "images/Plants/PeaBulletHit.gif", "images/Plants/FireBulletHit.webp", - ][o]), - oSym.addTask(10, ClearChild, [l])) + ][o]), + oSym.addTask(10, ClearChild, [l])) : (p += n = !e ? 5 : -5) < oS.W && p > 100 - ? ((l.style.left = (q += n) + "px"), - oSym.addTask(1, arguments.callee, [ - h, - l, - j, - e, - p, - k, - o, - m, - q, - i, - ])) - : ClearChild(l); + ? ((l.style.left = (q += n) + "px"), + oSym.addTask(1, arguments.callee, [ + h, + l, + j, + e, + p, + k, + o, + m, + q, + i, + ])) + : ClearChild(l); }, [ d, @@ -2222,29 +2222,29 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[o] - ](f, j, e), - (SetStyle(l, { + ](f, j, e), + (SetStyle(l, { left: q + 28 + "px", - }).src = [ + }).src = [ "images/Plants/PeaBulletHit.gif", "images/Plants/FireBulletHit.webp", - ][o]), - oSym.addTask(10, ClearChild, [l])) + ][o]), + oSym.addTask(10, ClearChild, [l])) : (p += n = !e ? 5 : -5) < oS.W && p > 100 - ? ((l.style.left = (q += n) + "px"), - oSym.addTask(1, arguments.callee, [ - h, - l, - j, - e, - p, - k, - o, - m, - q, - i, - ])) - : ClearChild(l); + ? ((l.style.left = (q += n) + "px"), + oSym.addTask(1, arguments.callee, [ + h, + l, + j, + e, + p, + k, + o, + m, + q, + i, + ])) + : ClearChild(l); }, [ d, @@ -2431,8 +2431,8 @@ var CPlants = NewO({ $P[f] && b(1); }, [d.id] - ), - d.AttackedRX - 16) + ), + d.AttackedRX - 16) : d.AttackedLX - 40, b = function () { EditEle( @@ -2472,29 +2472,29 @@ var CPlants = NewO({ 0: "getPea", 1: "getFirePea", }[p] - ](g, k, f), - (SetStyle(m, { + ](g, k, f), + (SetStyle(m, { left: r + 28 + "px", - }).src = [ + }).src = [ "images/Plants/PeaBulletHit.gif", "images/Plants/FireBulletHit.webp", - ][m]), - oSym.addTask(10, ClearChild, [m])) + ][m]), + oSym.addTask(10, ClearChild, [m])) : (q += o = !f ? 5 : -5) < oS.W && q > 100 - ? ((m.style.left = (r += o) + "px"), - oSym.addTask(1, arguments.callee, [ - i, - m, - k, - f, - q, - l, - p, - n, - r, - j, - ])) - : ClearChild(m); + ? ((m.style.left = (r += o) + "px"), + oSym.addTask(1, arguments.callee, [ + i, + m, + k, + f, + q, + l, + p, + n, + r, + j, + ])) + : ClearChild(m); }, [e, $(e), 20, c, d.AttackedLX, d.R, 0, 0, a, oGd.$Torch] ); @@ -2540,11 +2540,11 @@ var CPlants = NewO({ ? SetStyle(b, { clip: "rect(74px,auto,auto,auto)", top: "-74px", - }) + }) : SetStyle(b, { clip: "rect(auto,auto,74px,auto)", top: 0, - }); + }); }, PrivateBirth: function (a) { oS.ProduceSun @@ -2582,7 +2582,7 @@ var CPlants = NewO({ )); }, [a.id, GetX(a.C) - 40, GetY(a.R)] - ) + ) : (a.getHurt = function (f, c, b) { var e = this; switch (c) { @@ -2631,7 +2631,7 @@ var CPlants = NewO({ ); }, [e.C, e.R] - )); + )); break; case 3: (e.HP -= b) < 1 && e.Die(); @@ -2639,7 +2639,7 @@ var CPlants = NewO({ default: e.Die(1); } - }); + }); }, InitTrigger: function () {}, }), @@ -2686,11 +2686,11 @@ BirthStyle: function (c, e, b, a) { ? SetStyle(b, { clip: "rect(84px,auto,auto,auto)", top: "-84px", - }) + }) : SetStyle(b, { clip: "rect(auto,auto,84px,auto)", top: 0, - }); + }); }, PrivateBirth: function (a) { var b = GetX(a.C); @@ -2760,8 +2760,8 @@ BirthStyle: function (c, e, b, a) { return c[2] ? 1 : oGd.$LF[b] == 1 - ? !(d < 1 || d > 9 || oGd.$Crater[a] || oGd.$Tombstones[a]) - : c[0]; + ? !(d < 1 || d > 9 || oGd.$Crater[a] || oGd.$Tombstones[a]) + : c[0]; }, GetDY: function (b, c, a) { return a[0] ? -12 : -5; @@ -2850,8 +2850,8 @@ BirthStyle: function (c, e, b, a) { return c[2] ? 1 : oGd.$LF[b] == 1 - ? !(d < 1 || d > 9 || oGd.$Crater[a] || oGd.$Tombstones[a]) - : c[0]; + ? !(d < 1 || d > 9 || oGd.$Crater[a] || oGd.$Tombstones[a]) + : c[0]; }, GetDY: function (b, c, a) { return a[0] ? -12 : -5; @@ -2942,7 +2942,7 @@ BirthStyle: function (c, e, b, a) { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -3079,18 +3079,18 @@ BirthStyle: function (c, e, b, a) { return d ? oGd.$LF[b] == 1 ? e > 0 && - e < d.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) + e < d.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) : c[0] && !c[1] : oGd.$LF[b] == 1 - ? !( - e < 1 || - e > 9 || - oGd.$Crater[a] || - oGd.$Tombstones[a] || - c[1] - ) - : c[0] && !c[1]; + ? !( + e < 1 || + e > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + c[1] + ) + : c[0] && !c[1]; }, PicArr: [ "images/Card/Plants/PotatoMine.png", @@ -3113,8 +3113,8 @@ BirthStyle: function (c, e, b, a) { d.Status = 1; d.canTrigger = 1; d.getHurt = d.getHurt2; - })(), - "images/Plants/PotatoMine/PotatoMine.gif"); + })(), + "images/Plants/PotatoMine/PotatoMine.gif"); EditEle( c, { @@ -3213,18 +3213,18 @@ BirthStyle: function (c, e, b, a) { return d ? oGd.$LF[b] == 1 ? e > 0 && - e < d.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) + e < d.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) : c[0] && !c[1] : oGd.$LF[b] == 1 - ? !( - e < 1 || - e > 9 || - oGd.$Crater[a] || - oGd.$Tombstones[a] || - c[1] - ) - : c[0] && !c[1]; + ? !( + e < 1 || + e > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + c[1] + ) + : c[0] && !c[1]; }, PicArr: [ "images/Card/Plants/PotatoMine.png", @@ -3247,8 +3247,8 @@ BirthStyle: function (c, e, b, a) { d.Status = 1; d.canTrigger = 1; d.getHurt = d.getHurt2; - })(), - "images/Plants/PotatoMine/PotatoMine.gif"); + })(), + "images/Plants/PotatoMine/PotatoMine.gif"); EditEle( c, { @@ -3347,18 +3347,18 @@ BirthStyle: function (c, e, b, a) { return d ? oGd.$LF[b] == 1 ? e > 0 && - e < d.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) + e < d.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || c[1]) : c[0] && !c[1] : oGd.$LF[b] == 1 - ? !( - e < 1 || - e > 9 || - oGd.$Crater[a] || - oGd.$Tombstones[a] || - c[1] - ) - : c[0] && !c[1]; + ? !( + e < 1 || + e > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + c[1] + ) + : c[0] && !c[1]; }, PicArr: [ "images/Card/Plants/PotatoMine.png", @@ -3381,8 +3381,8 @@ BirthStyle: function (c, e, b, a) { d.Status = 1; d.canTrigger = 1; d.getHurt = d.getHurt2; - })(), - "images/Plants/PotatoMine/PotatoMine.gif"); + })(), + "images/Plants/PotatoMine/PotatoMine.gif"); EditEle( c, { @@ -3539,26 +3539,26 @@ BirthStyle: function (c, e, b, a) { 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = "images/Plants/FireBulletHit.webp"), - oSym.addTask(75, ClearChild, [j])) + }).src = "images/Plants/FireBulletHit.webp"), + oSym.addTask(75, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -3649,26 +3649,26 @@ BirthStyle: function (c, e, b, a) { 0: "getPea", 1: "getFirePea", }[m] - ](d, h, c), - (SetStyle(j, { + ](d, h, c), + (SetStyle(j, { left: o + 28 + "px", - }).src = "images/Plants/FireBulletHit.webp"), - oSym.addTask(75, ClearChild, [j])) + }).src = "images/Plants/FireBulletHit.webp"), + oSym.addTask(75, ClearChild, [j])) : (n += l = !c ? 5 : -5) < oS.W && n > 100 - ? ((j.style.left = (o += l) + "px"), - oSym.addTask(1, arguments.callee, [ - f, - j, - h, - c, - n, - i, - m, - k, - o, - g, - ])) - : ClearChild(j); + ? ((j.style.left = (o += l) + "px"), + oSym.addTask(1, arguments.callee, [ + f, + j, + h, + c, + n, + i, + m, + k, + o, + g, + ])) + : ClearChild(j); }, [ b, @@ -3711,14 +3711,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oWallNut" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, InitTrigger: function () {}, HurtStatus: 0, @@ -3729,13 +3735,15 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 1334 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/WallNut/Wallnut_cracked2.gif")) - : c.HP < 2667 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Plants/WallNut/Wallnut_cracked1.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = + "images/Plants/WallNut/Wallnut_cracked2.gif")) + : c.HP < 2667 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = + "images/Plants/WallNut/Wallnut_cracked1.gif")) : c.Die(1); }, }), @@ -3765,14 +3773,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oWallNut" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, InitTrigger: function () {}, HurtStatus: 0, @@ -3783,13 +3797,15 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 1334 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/WallNut/Wallnut_cracked2.gif")) - : c.HP < 2667 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Plants/WallNut/Wallnut_cracked1.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = + "images/Plants/WallNut/Wallnut_cracked2.gif")) + : c.HP < 2667 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = + "images/Plants/WallNut/Wallnut_cracked1.gif")) : c.Die(1); }, }), @@ -3817,14 +3833,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oBalloon" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, InitTrigger: function () {}, HurtStatus: 0, @@ -3835,13 +3857,13 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 1334 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Card/Plants/BalloonGoober.png")) - : c.HP < 2667 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Zombies/Balloon/popped.png")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = "images/Card/Plants/BalloonGoober.png")) + : c.HP < 2667 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = "images/Zombies/Balloon/popped.png")) : c.Die(1); }, }), @@ -4269,13 +4291,13 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 1334 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/Ling/Ling.gif")) - : c.HP < 2667 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Plants/Ling/Ling.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = "images/Plants/Ling/Ling.gif")) + : c.HP < 2667 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = "images/Plants/Ling/Ling.gif")) : c.Die(1); }, }), @@ -4349,7 +4371,7 @@ BirthStyle: function (c, e, b, a) { 0, 0, 0 - ); + ); } z.CanAttack = 0; switch (a) { @@ -4394,26 +4416,26 @@ BirthStyle: function (c, e, b, a) { q > y ? z.Die() : ((i = GetC((z.pixelRight += 2))), - (z.AttackedLX = q += 2), - (z.AttackedRX = r += 2), - (w = GetR((z.pixelBottom += e * 2))), - SetStyle(x, { + (z.AttackedLX = q += 2), + (z.AttackedRX = r += 2), + (w = GetR((z.pixelBottom += e * 2))), + SetStyle(x, { left: (z.pixelLeft = p += 2) + "px", top: (z.pixelTop += e * 2) + "px", - }), - w != a && + }), + w != a && ((z.R = w), (t = true), !z.CanAttack && (z.CanAttack = 1)), - i != l && ((z.C = i), (t = true)), - t && + i != l && ((z.C = i), (t = true)), + t && (oGd.del({ R: a, C: l, PKind: 1, }), oGd.add(z, w + "_" + i + "_1")), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ z, y, z.AttackedLX, @@ -4423,7 +4445,7 @@ BirthStyle: function (c, e, b, a) { e, g, b, - ])); + ])); } })( c, @@ -4472,10 +4494,10 @@ BirthStyle: function (c, e, b, a) { n > c ? b.Die() : ((j = GetC((b.pixelRight += 2))), - (b.AttackedLX = n += 2), - (b.AttackedRX = m += 2), - (g.style.left = (b.pixelLeft += 2) + "px"), - j != h && + (b.AttackedLX = n += 2), + (b.AttackedRX = m += 2), + (g.style.left = (b.pixelLeft += 2) + "px"), + j != h && ((b.C = j), oGd.del({ R: l, @@ -4483,7 +4505,7 @@ BirthStyle: function (c, e, b, a) { PKind: 1, }), oGd.add(b, l + "_" + j + "_1")), - oSym.addTask(1, arguments.callee, [b, c, n, m, e, g])); + oSym.addTask(1, arguments.callee, [b, c, n, m, e, g])); })(a, oS.W, a.AttackedLX, a.AttackedRX, a.R, $(a.id)); }, }), @@ -4544,12 +4566,12 @@ BirthStyle: function (c, e, b, a) { b > q ? s.Die() : ((l = GetC((s.pixelRight += 2))), - (s.AttackedLX = b += 2), - (s.AttackedRX = c += 2), - SetStyle(m, { + (s.AttackedLX = b += 2), + (s.AttackedRX = c += 2), + SetStyle(m, { left: (s.pixelLeft += 2) + "px", - }), - l != p && + }), + l != p && ((s.C = l), oGd.del({ R: v, @@ -4557,13 +4579,13 @@ BirthStyle: function (c, e, b, a) { PKind: 1, }), oGd.add(s, v + "_" + l + "_1")), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ s, q, s.AttackedLX, s.AttackedRX, m, - ])); + ])); } })(a, oS.W, a.AttackedLX, a.AttackedRX, $(a.id)); }, @@ -4594,14 +4616,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oTallNut" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, Stature: 1, getHurt: function (e, b, a) { @@ -4611,13 +4639,15 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 2667 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/TallNut/TallnutCracked2.gif")) - : c.HP < 5333 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Plants/TallNut/TallnutCracked1.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = + "images/Plants/TallNut/TallnutCracked2.gif")) + : c.HP < 5333 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = + "images/Plants/TallNut/TallnutCracked1.gif")) : c.Die(1); }, }), @@ -4647,14 +4677,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oTallNut" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, Stature: 1, getHurt: function (e, b, a) { @@ -4664,13 +4700,15 @@ BirthStyle: function (c, e, b, a) { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 2667 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/TallNut/TallnutCracked2.gif")) - : c.HP < 5333 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = "images/Plants/TallNut/TallnutCracked1.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = + "images/Plants/TallNut/TallnutCracked2.gif")) + : c.HP < 5333 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = + "images/Plants/TallNut/TallnutCracked1.gif")) : c.Die(1); }, }), @@ -5029,7 +5067,7 @@ BirthStyle: function (c, e, b, a) { c[0] || oGd.$Crater[a] || oGd.$Tombstones[a] - ); + ); }, getHurt: function (d, b, a) { var c = this; @@ -5121,7 +5159,7 @@ BirthStyle: function (c, e, b, a) { c[0] || oGd.$Crater[a] || oGd.$Tombstones[a] - ); + ); }, getHurt: function (d, b, a) { var c = this; @@ -5255,14 +5293,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oGarlic" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, InitTrigger: function () {}, HurtStatus: 0, @@ -5280,15 +5324,16 @@ BirthStyle: function (c, e, b, a) { ? c.Die() : (e.ChangeR({ R: c.R, - }), - c.HP < 134 + }), + c.HP < 134 ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/Garlic/Garlic_body3.gif")) + ((c.HurtStatus = 2), + (d.src = + "images/Plants/Garlic/Garlic_body3.gif")) : c.HP < 267 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = "images/Plants/Garlic/Garlic_body2.gif"))) : c.Die(1); }, @@ -5318,14 +5363,20 @@ BirthStyle: function (c, e, b, a) { return e ? oGd.$LF[b] == 1 ? f > 0 && - f < e.ArC[1] && - !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) + f < e.ArC[1] && + !(oGd.$Crater[a] || oGd.$Tombstones[a] || d) : c[0] && !d : d && d.EName == "oGarlic" - ? 1 - : oGd.$LF[b] == 1 - ? !(f < 1 || f > 9 || oGd.$Crater[a] || oGd.$Tombstones[a] || d) - : c[0] && !d; + ? 1 + : oGd.$LF[b] == 1 + ? !( + f < 1 || + f > 9 || + oGd.$Crater[a] || + oGd.$Tombstones[a] || + d + ) + : c[0] && !d; }, InitTrigger: function () {}, HurtStatus: 0, @@ -5343,15 +5394,16 @@ BirthStyle: function (c, e, b, a) { ? c.Die() : (e.ChangeR({ R: c.R, - }), - c.HP < 134 + }), + c.HP < 134 ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = "images/Plants/Garlic/Garlic_body3.gif")) + ((c.HurtStatus = 2), + (d.src = + "images/Plants/Garlic/Garlic_body3.gif")) : c.HP < 267 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = "images/Plants/Garlic/Garlic_body2.gif"))) : c.Die(1); }, @@ -5385,7 +5437,7 @@ BirthStyle: function (c, e, b, a) { c, d.id, d.ZX + d.Speed * 4 * (!d.WalkDirection ? -1 : 1) - 50 - ) + ) : (c.HP -= a) < 1 && c.Die(); }, getTriggerRange: function (a, b, c) { @@ -5479,7 +5531,7 @@ BirthStyle: function (c, e, b, a) { c, d.id, d.ZX + d.Speed * 4 * (!d.WalkDirection ? -1 : 1) - 50 - ) + ) : (c.HP -= a) < 1 && c.Die(); }, getTriggerRange: function (a, b, c) { @@ -5597,7 +5649,7 @@ BirthStyle: function (c, e, b, a) { ((h = $Z[f]) && h.beAttacked && h.PZ ? ($(e).childNodes[1].src = h.getRaven( e - ) + ) ? (oSym.addTask( 4200, function (i) { @@ -5610,10 +5662,10 @@ BirthStyle: function (c, e, b, a) { "images/Plants/Chomper/Chomper.gif")); }, [e] - ), - "images/Plants/Chomper/ChomperDigest.gif") + ), + "images/Plants/Chomper/ChomperDigest.gif") : ((g.canTrigger = 1), - "images/Plants/Chomper/Chomper.gif")) + "images/Plants/Chomper/Chomper.gif")) : oSym.addTask( 18, function (i) { @@ -5626,7 +5678,7 @@ BirthStyle: function (c, e, b, a) { "images/Plants/Chomper/Chomper.gif")); }, [e] - )); + )); }, [c, d] ); @@ -5688,7 +5740,7 @@ BirthStyle: function (c, e, b, a) { ((h = $Z[f]) && h.beAttacked && h.PZ ? ($(e).childNodes[1].src = h.getRaven( e - ) + ) ? (oSym.addTask( 4200, function (i) { @@ -5701,10 +5753,10 @@ BirthStyle: function (c, e, b, a) { "images/Plants/Chomper/Chomper.gif")); }, [e] - ), - "images/Plants/Chomper/ChomperDigest.gif") + ), + "images/Plants/Chomper/ChomperDigest.gif") : ((g.canTrigger = 1), - "images/Plants/Chomper/Chomper.gif")) + "images/Plants/Chomper/Chomper.gif")) : oSym.addTask( 18, function (i) { @@ -5717,7 +5769,7 @@ BirthStyle: function (c, e, b, a) { "images/Plants/Chomper/Chomper.gif")); }, [e] - )); + )); }, [c, d] ); @@ -5766,7 +5818,7 @@ return c && c.EName == "oChomper" ((h = $Z[f]) && h.beAttacked && h.PZ ? ($(e).childNodes[1].src = h.getRaven( e - ) + ) ? (oSym.addTask( 2100, function (i) { @@ -5779,10 +5831,10 @@ return c && c.EName == "oChomper" "images/Plants/BigChomper/Chomper.gif")); }, [e] - ), - "images/Plants/BigChomper/ChomperDigest.gif") + ), + "images/Plants/BigChomper/ChomperDigest.gif") : ((g.canTrigger = 1), - "images/Plants/BigChomper/Chomper.gif")) + "images/Plants/BigChomper/Chomper.gif")) : oSym.addTask( 9, function (i) { @@ -5795,7 +5847,7 @@ return c && c.EName == "oChomper" "images/Plants/BigChomper/Chomper.gif")); }, [e] - )); + )); }, [c, d] ); @@ -6145,8 +6197,8 @@ return c && c.EName == "oChomper" !b ? (($(d.id).childNodes[1].src = d.PicArr[d.NormalGif]), - (d.canTrigger = 1), - (d.Sleep = 0)) + (d.canTrigger = 1), + (d.Sleep = 0)) : b(d)); a.Die(); }, @@ -6476,14 +6528,20 @@ return c && c.EName == "oChomper" h = oZ.getZ0(e, f); h && h.Altitude == 1 ? (h.getPea(h, 20, 0), - (SetStyle(d, { + (SetStyle(d, { left: g + 38 + "px", - }).src = "images/Plants/ShroomBulletHit.gif"), - oSym.addTask(10, ClearChild, [d])) + }).src = "images/Plants/ShroomBulletHit.gif"), + oSym.addTask(10, ClearChild, [d])) : (e += 5) < oS.W - ? ((d.style.left = (g += 5) + "px"), - oSym.addTask(1, arguments.callee, [j, d, e, f, g])) - : ClearChild(d); + ? ((d.style.left = (g += 5) + "px"), + oSym.addTask(1, arguments.callee, [ + j, + d, + e, + f, + g, + ])) + : ClearChild(d); }, [c, $(c), a, b.R, a - 46] ); @@ -6557,14 +6615,20 @@ return c && c.EName == "oChomper" h = oZ.getZ0(e, f); h && h.Altitude == 1 ? (h.getPea(h, 20, 0), - (SetStyle(d, { + (SetStyle(d, { left: g + 38 + "px", - }).src = "images/Plants/ShroomBulletHit.gif"), - oSym.addTask(10, ClearChild, [d])) + }).src = "images/Plants/ShroomBulletHit.gif"), + oSym.addTask(10, ClearChild, [d])) : (e += 5) < oS.W - ? ((d.style.left = (g += 5) + "px"), - oSym.addTask(1, arguments.callee, [j, d, e, f, g])) - : ClearChild(d); + ? ((d.style.left = (g += 5) + "px"), + oSym.addTask(1, arguments.callee, [ + j, + d, + e, + f, + g, + ])) + : ClearChild(d); }, [c, $(c), a, b.R, a - 46] ); @@ -6604,17 +6668,17 @@ return c && c.EName == "oChomper" a = b.id; e.PZ && Math.abs(e.ZX - b.MX) < 121 && e.beAttacked ? (b.ArZ.push(e.id), - !b.Cry && + !b.Cry && ((b.Cry = 1), ($(a).childNodes[1].src = "images/Plants/ScaredyShroom/ScaredyShroomCry.gif"), b.CryCheck(a))) : e.R == b.R && - !b.Cry && - !b.Attacking && - e.Altitude > 0 && - e.Altitude < 3 && - b.NormalAttack(); + !b.Cry && + !b.Attacking && + e.Altitude > 0 && + e.Altitude < 3 && + b.NormalAttack(); }, PrivateBirth: function (c) { var b = c.AttackedLX, @@ -6660,14 +6724,20 @@ return c && c.EName == "oChomper" i = oZ.getZ0(f, g); i && i.Altitude == 1 ? (i.getPea(i, 20, 0), - (SetStyle(e, { + (SetStyle(e, { left: h + 38 + "px", - }).src = "images/Plants/ShroomBulletHit.gif"), - oSym.addTask(10, ClearChild, [e])) + }).src = "images/Plants/ShroomBulletHit.gif"), + oSym.addTask(10, ClearChild, [e])) : (f += 5) < oS.W - ? ((e.style.left = (h += 5) + "px"), - oSym.addTask(1, arguments.callee, [k, e, f, g, h])) - : ClearChild(e); + ? ((e.style.left = (h += 5) + "px"), + oSym.addTask(1, arguments.callee, [ + k, + e, + f, + g, + h, + ])) + : ClearChild(e); }, [d, $(d), b, c.R, b - 46] ); @@ -6708,7 +6778,7 @@ return c && c.EName == "oChomper" f.length ? d.CryCheck(b) : ((d.Cry = 0), - ($(b).childNodes[1].src = + ($(b).childNodes[1].src = "images/Plants/ScaredyShroom/ScaredyShroom.gif")); } }, @@ -6750,17 +6820,17 @@ return c && c.EName == "oChomper" a = b.id; e.PZ && Math.abs(e.ZX - b.MX) < 121 && e.beAttacked ? (b.ArZ.push(e.id), - !b.Cry && + !b.Cry && ((b.Cry = 1), ($(a).childNodes[1].src = "images/Plants/ScaredyShroom/ScaredyShroomCry.gif"), b.CryCheck(a))) : e.R == b.R && - !b.Cry && - !b.Attacking && - e.Altitude > 0 && - e.Altitude < 3 && - b.NormalAttack(); + !b.Cry && + !b.Attacking && + e.Altitude > 0 && + e.Altitude < 3 && + b.NormalAttack(); }, PrivateBirth: function (c) { var b = c.AttackedLX, @@ -6806,14 +6876,20 @@ return c && c.EName == "oChomper" i = oZ.getZ0(f, g); i && i.Altitude == 1 ? (i.getPea(i, 20, 0), - (SetStyle(e, { + (SetStyle(e, { left: h + 38 + "px", - }).src = "images/Plants/ShroomBulletHit.gif"), - oSym.addTask(10, ClearChild, [e])) + }).src = "images/Plants/ShroomBulletHit.gif"), + oSym.addTask(10, ClearChild, [e])) : (f += 5) < oS.W - ? ((e.style.left = (h += 5) + "px"), - oSym.addTask(1, arguments.callee, [k, e, f, g, h])) - : ClearChild(e); + ? ((e.style.left = (h += 5) + "px"), + oSym.addTask(1, arguments.callee, [ + k, + e, + f, + g, + h, + ])) + : ClearChild(e); }, [d, $(d), b, c.R, b - 46] ); @@ -6854,7 +6930,7 @@ return c && c.EName == "oChomper" f.length ? d.CryCheck(b) : ((d.Cry = 0), - ($(b).childNodes[1].src = + ($(b).childNodes[1].src = "images/Plants/ScaredyShroom/ScaredyShroom.gif")); } }, @@ -7110,8 +7186,8 @@ return c && c.EName == "oChomper" BirthStyle: function (c, d, b, a) { oS.DKind ? ((c.canTrigger = 0), - (c.Sleep = 1), - (b.childNodes[1].src = + (c.Sleep = 1), + (b.childNodes[1].src = "images/Plants/SunShroom/SunShroomSleep.gif")) : (oSym.addTask( 600, @@ -7120,8 +7196,8 @@ return c && c.EName == "oChomper" e && e.ProduceSun(e, g, f); }, [d, GetX(c.C) - 40, GetY(c.R)] - ), - oSym.addTask( + ), + oSym.addTask( 12e3, function (f) { var e = $P[f]; @@ -7132,7 +7208,7 @@ return c && c.EName == "oChomper" (e.Status = 1)); }, [d] - )); + )); EditEle( b, { @@ -7207,10 +7283,10 @@ return c && c.EName == "oChomper" oS.DKind ? ((c.Sleep = 1), (b.childNodes[1].src = c.PicArr[c.SleepGif])) : ((c.Sleep = 0), - (c.getHurt = function () {}), - (b.childNodes[1].src = + (c.getHurt = function () {}), + (b.childNodes[1].src = "images/Plants/DoomShroom/BeginBoom.gif"), - c.NormalAttack(d)); + c.NormalAttack(d)); EditEle( b, { @@ -7421,10 +7497,10 @@ return c && c.EName == "oChomper" oS.DKind ? ((c.Sleep = 1), (b.childNodes[1].src = c.PicArr[c.SleepGif])) : ((c.Sleep = 0), - (c.getHurt = function () {}), - (b.childNodes[1].src = + (c.getHurt = function () {}), + (b.childNodes[1].src = "images/Plants/DoomShroom/BeginBoom.gif"), - c.NormalAttack(d)); + c.NormalAttack(d)); EditEle( b, { @@ -8200,9 +8276,16 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e && e.Altitude == 1 ? (e.getPea(e, 30, d), ClearChild(i)) : (k += j = !d ? 5 : -5) < oS.W && k > 100 - ? ((i.style.left = (l += j) + "px"), - oSym.addTask(1, arguments.callee, [g, i, d, k, h, l])) - : ClearChild(i); + ? ((i.style.left = (l += j) + "px"), + oSym.addTask(1, arguments.callee, [ + g, + i, + d, + k, + h, + l, + ])) + : ClearChild(i); }, [c, $(c), 0, b.AttackedLX, b.R, b.AttackedLX - 40] ); @@ -8248,9 +8331,16 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e && e.Altitude == 3 ? (e.getHit0(e, 20, d), e.Drop(), ClearChild(i)) : (k += j = !d ? 5 : -5) < oS.W && k > 100 - ? ((i.style.left = (l += j) + "px"), - oSym.addTask(1, arguments.callee, [g, i, d, k, h, l])) - : ClearChild(i); + ? ((i.style.left = (l += j) + "px"), + oSym.addTask(1, arguments.callee, [ + g, + i, + d, + k, + h, + l, + ])) + : ClearChild(i); }, [c, $(c), 0, b.AttackedLX, b.R, b.AttackedLX - 40] ); @@ -8454,9 +8544,16 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e && e.Altitude == 1 ? (e.getPea(e, 30, d), ClearChild(i)) : (k += j = !d ? 5 : -5) < oS.W && k > 100 - ? ((i.style.left = (l += j) + "px"), - oSym.addTask(1, arguments.callee, [g, i, d, k, h, l])) - : ClearChild(i); + ? ((i.style.left = (l += j) + "px"), + oSym.addTask(1, arguments.callee, [ + g, + i, + d, + k, + h, + l, + ])) + : ClearChild(i); }, [c, $(c), 0, b.AttackedLX, b.R, b.AttackedLX - 40] ); @@ -8504,9 +8601,16 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e && e.Altitude == 3 ? (e.getHit0(e, 20, d), e.Drop(), ClearChild(i)) : (k += j = !d ? 5 : -5) < oS.W && k > 100 - ? ((i.style.left = (l += j) + "px"), - oSym.addTask(1, arguments.callee, [g, i, d, k, h, l])) - : ClearChild(i); + ? ((i.style.left = (l += j) + "px"), + oSym.addTask(1, arguments.callee, [ + g, + i, + d, + k, + h, + l, + ])) + : ClearChild(i); }, [c, $(c), 0, b.AttackedLX, b.R, b.AttackedLX - 40] ); @@ -8658,7 +8762,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -8716,15 +8820,15 @@ oSeedSeaShroom = InheritO(oPuffShroom, { ? (c.HP -= a) < 1 ? c.Die() : c.HP < 2667 - ? c.HurtStatus < 2 && - ((c.HurtStatus = 2), - (d.src = - "images/Plants/FlamesMushroom/FlamesMushroom2.gif")) - : c.HP < 5333 && - c.HurtStatus < 1 && - ((c.HurtStatus = 1), - (d.src = - "images/Plants/FlamesMushroom/FlamesMushroom1.gif")) + ? c.HurtStatus < 2 && + ((c.HurtStatus = 2), + (d.src = + "images/Plants/FlamesMushroom/FlamesMushroom2.gif")) + : c.HP < 5333 && + c.HurtStatus < 1 && + ((c.HurtStatus = 1), + (d.src = + "images/Plants/FlamesMushroom/FlamesMushroom1.gif")) : c.Die(1); }, NormalAttack: function () {}, @@ -8795,7 +8899,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -8946,7 +9050,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -8986,7 +9090,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { 0, 0, 0 - ); + ); } z.CanAttack = 0; switch (a) { @@ -9031,26 +9135,26 @@ oSeedSeaShroom = InheritO(oPuffShroom, { q > y ? z.Die() : ((i = GetC((z.pixelRight += 2))), - (z.AttackedLX = q += 2), - (z.AttackedRX = r += 2), - (w = GetR((z.pixelBottom += e * 2))), - SetStyle(x, { + (z.AttackedLX = q += 2), + (z.AttackedRX = r += 2), + (w = GetR((z.pixelBottom += e * 2))), + SetStyle(x, { left: (z.pixelLeft = p += 2) + "px", top: (z.pixelTop += e * 2) + "px", - }), - w != a && + }), + w != a && ((z.R = w), (t = true), !z.CanAttack && (z.CanAttack = 1)), - i != l && ((z.C = i), (t = true)), - t && + i != l && ((z.C = i), (t = true)), + t && (oGd.del({ R: a, C: l, PKind: 1, }), oGd.add(z, w + "_" + i + "_1")), - oSym.addTask(1, arguments.callee, [ + oSym.addTask(1, arguments.callee, [ z, y, z.AttackedLX, @@ -9060,7 +9164,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e, g, b, - ])); + ])); } })( c, @@ -9110,10 +9214,10 @@ oSeedSeaShroom = InheritO(oPuffShroom, { n > c ? b.Die() : ((j = GetC((b.pixelRight += 2))), - (b.AttackedLX = n += 2), - (b.AttackedRX = m += 2), - (g.style.left = (b.pixelLeft += 2) + "px"), - j != h && + (b.AttackedLX = n += 2), + (b.AttackedRX = m += 2), + (g.style.left = (b.pixelLeft += 2) + "px"), + j != h && ((b.C = j), oGd.del({ R: l, @@ -9121,7 +9225,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { PKind: 1, }), oGd.add(b, l + "_" + j + "_1")), - oSym.addTask(1, arguments.callee, [b, c, n, m, e, g])); + oSym.addTask(1, arguments.callee, [b, c, n, m, e, g])); })(a, oS.W, a.AttackedLX, a.AttackedRX, a.R, $(a.id)); }, })), @@ -9156,7 +9260,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -9219,14 +9323,20 @@ oSeedSeaShroom = InheritO(oPuffShroom, { h = oZ.getZ0(e, f); h && h.Altitude == 1 ? (h.getPea(h, 20, 0), - (SetStyle(d, { + (SetStyle(d, { left: g + 38 + "px", - }).src = "images/Plants/gun/ShroomBulletHit.gif"), - oSym.addTask(10, ClearChild, [d])) + }).src = "images/Plants/gun/ShroomBulletHit.gif"), + oSym.addTask(10, ClearChild, [d])) : (e += 5) < oS.W - ? ((d.style.left = (g += 5) + "px"), - oSym.addTask(1, arguments.callee, [j, d, e, f, g])) - : ClearChild(d); + ? ((d.style.left = (g += 5) + "px"), + oSym.addTask(1, arguments.callee, [ + j, + d, + e, + f, + g, + ])) + : ClearChild(d); }, [c, $(c), a, b.R, a - 46] ); @@ -9281,7 +9391,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -9401,7 +9511,7 @@ oSeedSeaShroom = InheritO(oPuffShroom, { e[0] || oGd.$Crater[c] || oGd.$Tombstones[c] - ) + ) : !(a || e[0] || oGd.$Crater[c]) : 0; }, @@ -9815,8 +9925,8 @@ oFlowerVase = InheritO(CPlants, { (VType == "SunNum" ? 50 : VType == "Plants" - ? oPeashooter - : oZombie); // 获取该花瓶的内部玩意 + ? oPeashooter + : oZombie); // 获取该花瓶的内部玩意 switch (VType) { case "Plants": // 植物类型 EleCard.style = diff --git a/game/js/CZombie.js b/game/js/CZombie.js index 8f35ee2f..0f8f1b9b 100644 --- a/game/js/CZombie.js +++ b/game/js/CZombie.js @@ -254,11 +254,11 @@ var CZombies = (function (b, a) { var d, c, g; !(h.FreeFreezeTime || h.FreeSetbodyTime) ? (h.beAttacked && !h.isAttacking && h.JudgeAttack(), - !h.isAttacking + !h.isAttacking ? (c = h.AttackedRX -= d = h.Speed) < -50 ? (j.splice(e, 1), - h.DisappearDie(), - (g = 0)) + h.DisappearDie(), + (g = 0)) : (c < 100 && !h.PointZombie && ((h.PointZombie = 1), @@ -271,10 +271,10 @@ var CZombies = (function (b, a) { CustomTop: 400 - h.height + h.GetDY(), })), - (h.ZX = h.AttackedLX -= d), - (h.Ele.style.left = + (h.ZX = h.AttackedLX -= d), + (h.Ele.style.left = Math.floor((h.X -= d)) + "px"), - (g = 1)) + (g = 1)) : (g = 1)) : (g = 1); return g; @@ -283,15 +283,15 @@ var CZombies = (function (b, a) { var c, f; !(g.FreeFreezeTime || g.FreeSetbodyTime) ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - !g.isAttacking + !g.isAttacking ? (g.AttackedLX += c = g.Speed) > oS.W ? (h.splice(d, 1), - g.DisappearDie(), - (f = 0)) + g.DisappearDie(), + (f = 0)) : ((g.ZX = g.AttackedRX += c), - (g.Ele.style.left = + (g.Ele.style.left = Math.ceil((g.X += c)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); return f; @@ -321,12 +321,12 @@ var CZombies = (function (b, a) { d.CanPass((q += 2), i[q]) && (g[++m] = q)); g.length ? ((l = !d.WalkDirection ? -5 : 5), - (d.ZX += l), - (d.AttackedLX += l), - (d.AttackedRX += l), - (d.X += l), - (q = g[Math.floor(Math.random() * g.length)]), - SetStyle(f, { + (d.ZX += l), + (d.AttackedLX += l), + (d.AttackedRX += l), + (d.X += l), + (q = g[Math.floor(Math.random() * g.length)]), + SetStyle(f, { left: d.X + "px", top: (d.pixelTop = @@ -334,9 +334,9 @@ var CZombies = (function (b, a) { ? GetY(q) - d.height + d.GetDY() : j) + "px", zIndex: (d.zIndex = 3 * q + 1), - }), - d.isAttacking && (n.src = d.PicArr[d.NormalGif]), - oZ.moveTo(k, h, q)) + }), + d.isAttacking && (n.src = d.PicArr[d.NormalGif]), + oZ.moveTo(k, h, q)) : (n.src = d.PicArr[d.NormalGif]); d.isAttacking = 0; }, @@ -462,7 +462,7 @@ var CZombies = (function (b, a) { i && ((i.FreeSetbodyTime = 0), SetBlock(g)); }, [d, c] - ) + ) : SetBlock(c); }, Birth: function () { @@ -665,10 +665,10 @@ var CZombies = (function (b, a) { ? (!g.isAttacking && ((g.isAttacking = 1), (g.EleBody.src = g.PicArr[g.AttackGif])), - g.NormalAttack(c[0], c[1])) + g.NormalAttack(c[0], c[1])) : g.isAttacking && - ((g.isAttacking = 0), - (g.EleBody.src = g.PicArr[g.NormalGif])); + ((g.isAttacking = 0), + (g.EleBody.src = g.PicArr[g.NormalGif])); }, JudgeLR: function (f, d, e, c, g) { return e > 10 || e < 1 @@ -685,7 +685,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, JudgeSR: function (f, d, e, c, g) { return e > 9 @@ -702,7 +702,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, JudgeAttackH1: function () { var e = this, @@ -723,13 +723,13 @@ var CZombies = (function (b, a) { d && d.beAttacked && d.AttackedLX < oS.W && d.Altitude == 1 ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = e.PicArr[e.AttackGif]), - e.AttackZombie(f, (c = d.id)), - !d.isAttacking && d.AttackZombie2(d, c, f)) + (e.EleBody.src = e.PicArr[e.AttackGif]), + e.AttackZombie(f, (c = d.id)), + !d.isAttacking && d.AttackZombie2(d, c, f)) : e.AttackZombie(f, d.id, 1) : e.isAttacking && - ((e.isAttacking = 0), - (e.EleBody.src = e.PicArr[e.NormalGif])); + ((e.isAttacking = 0), + (e.EleBody.src = e.PicArr[e.NormalGif])); }, AttackZombie: function (d, c) { oSym.addTask( @@ -761,12 +761,13 @@ var CZombies = (function (b, a) { !i.FreeSetbodyTime && ((h = $Z[f]) ? (h.getHit0(h, 10, 0), - oSym.addTask(10, arguments.callee, [ + oSym.addTask(10, arguments.callee, [ g, f, - ])) + ])) : ((i.isAttacking = 0), - (i.EleBody.src = i.PicArr[i.NormalGif]))); + (i.EleBody.src = + i.PicArr[i.NormalGif]))); }, [d, c] ); @@ -819,10 +820,10 @@ var CZombies = (function (b, a) { ? function (e, c, d) { c.style.filter = e.CSS_alpha + (e.CSS_fliph = d ? " fliph" : ""); - } + } : function (e, c, d) { c.className = d ? "fliph" : ""; - }, + }, bedevil: function (c) { c.ExchangeLR(c, 1); c.JudgeAttack = c.JudgeAttackH; @@ -837,10 +838,10 @@ var CZombies = (function (b, a) { d.style.filter = (f.CSS_alpha = "alpha(opacity=" + e + ")") + f.CSS_fliph; - } + } : function (f, d, e, c) { d.style.opacity = c; - }, + }, }), a ); @@ -900,8 +901,8 @@ var CZombies = (function (b, a) { b = oSym.Now + 1e3; e == 0 ? (f.PlaySlowballAudio(), - (f.Speed = 0.5 * f.OSpeed), - (f.Attack = 50)) + (f.Speed = 0.5 * f.OSpeed), + (f.Attack = 50)) : f.PlayNormalballAudio(); e < b && ((f.FreeSlowTime = b), @@ -1101,8 +1102,8 @@ var CZombies = (function (b, a) { var e, b, a, f; !(g.FreeFreezeTime || g.FreeSetbodyTime) ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - (e = g.id), - !g.isAttacking + (e = g.id), + !g.isAttacking ? (a = g.AttackedRX -= b = g.Speed) < -50 ? (h.splice(c, 1), g.DisappearDie(), (f = 0)) : (a < 100 && @@ -1116,10 +1117,10 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - g.height + g.GetDY(), })), - (g.ZX = g.AttackedLX -= b), - (g.Ele.style.left = + (g.ZX = g.AttackedLX -= b), + (g.Ele.style.left = Math.floor((g.X -= b)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); g.ChkSpeed(g); @@ -1429,14 +1430,14 @@ var CZombies = (function (b, a) { var c, d; !(e.FreeFreezeTime || e.FreeSetbodyTime) ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - (c = e.id), - !e.isAttacking + (c = e.id), + !e.isAttacking ? (e.AttackedLX += 3.5) > oS.W ? (f.splice(a, 1), e.DisappearDie(), (d = 0)) : ((e.ZX = e.AttackedRX += 3.5), - (e.Ele.style.left = + (e.Ele.style.left = Math.ceil((e.X += 3.5)) + "px"), - (d = 1)) + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -1449,8 +1450,8 @@ var CZombies = (function (b, a) { var e, b, a, f; !(g.FreeFreezeTime || g.FreeSetbodyTime) ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - (e = g.id), - !g.isAttacking + (e = g.id), + !g.isAttacking ? (a = g.AttackedRX -= b = g.Speed) < -50 ? (h.splice(c, 1), g.DisappearDie(), (f = 0)) : (a < 100 && @@ -1464,10 +1465,10 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - g.height + g.GetDY(), })), - (g.ZX = g.AttackedLX -= b), - (g.Ele.style.left = + (g.ZX = g.AttackedLX -= b), + (g.Ele.style.left = Math.floor((g.X -= b)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); g.ChkSpeed(g); @@ -1531,10 +1532,10 @@ var CZombies = (function (b, a) { !f.FreeSetbodyTime && ((e = $Z[c]) ? (e.getHit0(e, 10, 0), - oSym.addTask(10, arguments.callee, [d, c])) + oSym.addTask(10, arguments.callee, [d, c])) : ((f.isAttacking = 0), - (f.EleBody.src = f.PicArr[f.NormalGif]), - f.TurnLeft(f))); + (f.EleBody.src = f.PicArr[f.NormalGif]), + f.TurnLeft(f))); }, [b, a] ); @@ -2094,14 +2095,14 @@ var CZombies = (function (b, a) { var c, d; !(e.FreeFreezeTime || e.FreeSetbodyTime) ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - (c = e.id), - !e.isAttacking + (c = e.id), + !e.isAttacking ? (e.AttackedLX += 3.5) > oS.W ? (f.splice(a, 1), e.DisappearDie(), (d = 0)) : ((e.ZX = e.AttackedRX += 3.5), - (e.Ele.style.left = + (e.Ele.style.left = Math.ceil((e.X += 3.5)) + "px"), - (d = 1)) + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -2114,8 +2115,8 @@ var CZombies = (function (b, a) { var e, b, a, f; !(g.FreeFreezeTime || g.FreeSetbodyTime) ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - (e = g.id), - !g.isAttacking + (e = g.id), + !g.isAttacking ? (a = g.AttackedRX -= b = g.Speed) < -50 ? (h.splice(c, 1), g.DisappearDie(), (f = 0)) : (a < 100 && @@ -2129,10 +2130,10 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - g.height + g.GetDY(), })), - (g.ZX = g.AttackedLX -= b), - (g.Ele.style.left = + (g.ZX = g.AttackedLX -= b), + (g.Ele.style.left = Math.floor((g.X -= b)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); g.ChkSpeed(g); @@ -2196,10 +2197,10 @@ var CZombies = (function (b, a) { !f.FreeSetbodyTime && ((e = $Z[c]) ? (e.getHit0(e, 10, 0), - oSym.addTask(10, arguments.callee, [d, c])) + oSym.addTask(10, arguments.callee, [d, c])) : ((f.isAttacking = 0), - (f.EleBody.src = f.PicArr[f.NormalGif]), - f.TurnLeft(f))); + (f.EleBody.src = f.PicArr[f.NormalGif]), + f.TurnLeft(f))); }, [b, a] ); @@ -3057,19 +3058,19 @@ var CZombies = (function (b, a) { (p = h[d + f + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= e && - p.AttackedLX < b && - p.canEat && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - g.NormalAttack(g.id, p.id, p.AttackedLX)) + p.AttackedLX < b && + p.canEat && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + g.NormalAttack(g.id, p.id, p.AttackedLX)) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - (g.NormalAttack = CZombies.prototype.NormalAttack)( + p.AttackedLX < b && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + (g.NormalAttack = CZombies.prototype.NormalAttack)( g.id, p.id - ))) + ))) ) {} } }, @@ -3136,32 +3137,32 @@ var CZombies = (function (b, a) { k.AttackedRX) - h.beAttackedPointL) + h.beAttackedPointR), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieWalk.gif"), - SetVisible(l), - (h.isAttacking = 0), - (h.Altitude = 1), - (h.OSpeed = h.Speed = 1.6), - (h.NormalGif = 9), - (h.LostHeadGif = 10), - (h.NormalAttack = (r = + SetVisible(l), + (h.isAttacking = 0), + (h.Altitude = 1), + (h.OSpeed = h.Speed = 1.6), + (h.NormalGif = 9), + (h.LostHeadGif = 10), + (h.NormalAttack = (r = CZombies.prototype).NormalAttack), - (h.getCrushed = r.getCrushed), - (h.getFreeze = r.getFreeze), - (h.getRaven = r.getRaven)) + (h.getCrushed = r.getCrushed), + (h.getFreeze = r.getFreeze), + (h.getRaven = r.getRaven)) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - h.beAttackedPointR) + h.beAttackedPointL), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieJump2.gif" + $Random + Math.random()), - SetVisible(l), - oSym.addTask( + SetVisible(l), + oSym.addTask( 80, function (s, v) { var u = $Z[s], @@ -3181,7 +3182,7 @@ var CZombies = (function (b, a) { (u.getRaven = t.getRaven)); }, [m, n] - ))); + ))); }, [d, b, a, c, e] ); @@ -3271,19 +3272,19 @@ var CZombies = (function (b, a) { (p = h[d + f + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= e && - p.AttackedLX < b && - p.canEat && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - g.NormalAttack(g.id, p.id, p.AttackedLX)) + p.AttackedLX < b && + p.canEat && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + g.NormalAttack(g.id, p.id, p.AttackedLX)) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - (g.NormalAttack = CZombies.prototype.NormalAttack)( + p.AttackedLX < b && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + (g.NormalAttack = CZombies.prototype.NormalAttack)( g.id, p.id - ))) + ))) ) {} } }, @@ -3350,32 +3351,32 @@ var CZombies = (function (b, a) { k.AttackedRX) - h.beAttackedPointL) + h.beAttackedPointR), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieWalk.gif"), - SetVisible(l), - (h.isAttacking = 0), - (h.Altitude = 1), - (h.OSpeed = h.Speed = 1.6), - (h.NormalGif = 9), - (h.LostHeadGif = 10), - (h.NormalAttack = (r = + SetVisible(l), + (h.isAttacking = 0), + (h.Altitude = 1), + (h.OSpeed = h.Speed = 1.6), + (h.NormalGif = 9), + (h.LostHeadGif = 10), + (h.NormalAttack = (r = CZombies.prototype).NormalAttack), - (h.getCrushed = r.getCrushed), - (h.getFreeze = r.getFreeze), - (h.getRaven = r.getRaven)) + (h.getCrushed = r.getCrushed), + (h.getFreeze = r.getFreeze), + (h.getRaven = r.getRaven)) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - h.beAttackedPointR) + h.beAttackedPointL), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieJump2.gif" + $Random + Math.random()), - SetVisible(l), - oSym.addTask( + SetVisible(l), + oSym.addTask( 80, function (s, v) { var u = $Z[s], @@ -3395,7 +3396,7 @@ var CZombies = (function (b, a) { (u.getRaven = t.getRaven)); }, [m, n] - ))); + ))); }, [d, b, a, c, e] ); @@ -3464,32 +3465,32 @@ var CZombies = (function (b, a) { k.AttackedRX) - h.beAttackedPointL) + h.beAttackedPointR), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/wall/PoleVaultingZombie/PoleVaultingZombieWalk.gif"), - SetVisible(l), - (h.isAttacking = 0), - (h.Altitude = 1), - (h.OSpeed = h.Speed = 1.6), - (h.NormalGif = 9), - (h.LostHeadGif = 10), - (h.NormalAttack = (r = + SetVisible(l), + (h.isAttacking = 0), + (h.Altitude = 1), + (h.OSpeed = h.Speed = 1.6), + (h.NormalGif = 9), + (h.LostHeadGif = 10), + (h.NormalAttack = (r = CZombies.prototype).NormalAttack), - (h.getCrushed = r.getCrushed), - (h.getFreeze = r.getFreeze), - (h.getRaven = r.getRaven)) + (h.getCrushed = r.getCrushed), + (h.getFreeze = r.getFreeze), + (h.getRaven = r.getRaven)) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - h.beAttackedPointR) + h.beAttackedPointL), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/wall/PoleVaultingZombie/PoleVaultingZombieJump2.gif" + $Random + Math.random()), - SetVisible(l), - oSym.addTask( + SetVisible(l), + oSym.addTask( 80, function (s, v) { var u = $Z[s], @@ -3509,7 +3510,7 @@ var CZombies = (function (b, a) { (u.getRaven = t.getRaven)); }, [m, n] - ))); + ))); }, [d, b, a, c, e] ); @@ -3653,12 +3654,12 @@ var CZombies = (function (b, a) { } (f.HP -= b) < f.BreakPoint ? ((f.getFirePea = OrnNoneZombies.prototype.getFirePea), - f.GoingDie( + f.GoingDie( f.PicArr[ [f.LostHeadGif, f.LostHeadAttackGif][f.isAttacking] ] - ), - (f.getHit = + ), + (f.getHit = f.getHit0 = f.getHit1 = f.getHit2 = @@ -3672,15 +3673,15 @@ var CZombies = (function (b, a) { f.PicArr, f.isAttacking, 0 - ), - f.SetAlpha(f, f.EleBody, 50, 0.5), - oSym.addTask( + ), + f.SetAlpha(f, f.EleBody, 50, 0.5), + oSym.addTask( 10, function (j, i) { (i = $Z[j]) && i.SetAlpha(i, i.EleBody, 100, 1); }, [f.id] - )); + )); }, getHit0: function (c, a, b) { b == c.WalkDirection @@ -3692,24 +3693,24 @@ var CZombies = (function (b, a) { c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && d.SetAlpha(d, d.EleBody, 100, 1); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [c.LostHeadGif, c.LostHeadAttackGif][c.isAttacking] ] - ), - (c.getFirePea = OrnNoneZombies.prototype.getFirePea), - (c.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (c.getHit = + ), + (c.getFirePea = OrnNoneZombies.prototype.getFirePea), + (c.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -3722,10 +3723,10 @@ var CZombies = (function (b, a) { b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -3739,15 +3740,15 @@ var CZombies = (function (b, a) { b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, getHit2: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -3755,23 +3756,23 @@ var CZombies = (function (b, a) { b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = b.getHit3 = function () {})) : (b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, getHit3: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -3779,10 +3780,10 @@ var CZombies = (function (b, a) { b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -3796,15 +3797,15 @@ var CZombies = (function (b, a) { b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, CheckOrnHP: function (g, h, d, c, f, b, a) { var e = OrnNoneZombies.prototype; @@ -3932,22 +3933,22 @@ var CZombies = (function (b, a) { c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && d.SetAlpha(d, d.EleBody, 100, 1); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [c.LostHeadGif, c.LostHeadAttackGif][c.isAttacking] ] - ), - (c.getHit = + ), + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -3985,8 +3986,8 @@ var CZombies = (function (b, a) { getFireball: function (c, a, b) { b != c.WalkDirection ? ((c.FreeSlowTime = 0), - (c.Attack = 100), - c.Speed != c.OSpeed + (c.Attack = 100), + c.Speed != c.OSpeed ? (c.PlayNormalballAudio(), (c.Speed = c.OSpeed)) : c.PlayFireballAudio()) : c.PlayNormalballAudio(); @@ -4068,22 +4069,22 @@ var CZombies = (function (b, a) { c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && d.SetAlpha(d, d.EleBody, 100, 1); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [c.LostHeadGif, c.LostHeadAttackGif][c.isAttacking] ] - ), - (c.getHit = + ), + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -4121,8 +4122,8 @@ var CZombies = (function (b, a) { getFireball: function (c, a, b) { b != c.WalkDirection ? ((c.FreeSlowTime = 0), - (c.Attack = 100), - c.Speed != c.OSpeed + (c.Attack = 100), + c.Speed != c.OSpeed ? (c.PlayNormalballAudio(), (c.Speed = c.OSpeed)) : c.PlayFireballAudio()) : c.PlayNormalballAudio(); @@ -4230,7 +4231,7 @@ var CZombies = (function (b, a) { k && ((k.FreeSetbodyTime = 0), SetBlock(i)); }, [c, b] - ) + ) : SetBlock(b); }, ChkActsL1: function (f, e, g, d) { @@ -4311,12 +4312,13 @@ var CZombies = (function (b, a) { var a, d; !(e.FreeFreezeTime || e.FreeSetbodyTime) ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - !e.isAttacking + !e.isAttacking ? (e.AttackedLX += a = e.Speed) > oS.W ? (f.splice(b, 1), e.DisappearDie(), (d = 0)) : ((e.ZX = e.AttackedRX += a), - (e.Ele.style.left = Math.ceil((e.X += a)) + "px"), - (d = 1)) + (e.Ele.style.left = + Math.ceil((e.X += a)) + "px"), + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -4355,7 +4357,7 @@ var CZombies = (function (b, a) { b && ((b.HP -= 60) < 1 ? (b.NormalDie(), - oSym.addTask(50, ClearChild, [b.Ele])) + oSym.addTask(50, ClearChild, [b.Ele])) : oSym.addTask(100, arguments.callee, [c])); }, [a] @@ -4694,7 +4696,7 @@ var CZombies = (function (b, a) { k && ((k.FreeSetbodyTime = 0), SetBlock(i)); }, [c, b] - ) + ) : SetBlock(b); }, ChkActsL1: function (f, e, g, d) { @@ -4775,12 +4777,13 @@ var CZombies = (function (b, a) { var a, d; !(e.FreeFreezeTime || e.FreeSetbodyTime) ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - !e.isAttacking + !e.isAttacking ? (e.AttackedLX += a = e.Speed) > oS.W ? (f.splice(b, 1), e.DisappearDie(), (d = 0)) : ((e.ZX = e.AttackedRX += a), - (e.Ele.style.left = Math.ceil((e.X += a)) + "px"), - (d = 1)) + (e.Ele.style.left = + Math.ceil((e.X += a)) + "px"), + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -4819,7 +4822,7 @@ var CZombies = (function (b, a) { b && ((b.HP -= 60) < 1 ? (b.NormalDie(), - oSym.addTask(50, ClearChild, [b.Ele])) + oSym.addTask(50, ClearChild, [b.Ele])) : oSym.addTask(100, arguments.callee, [c])); }, [a] @@ -4921,7 +4924,7 @@ var CZombies = (function (b, a) { k && ((k.FreeSetbodyTime = 0), SetBlock(i)); }, [c, b] - ) + ) : SetBlock(b); }, Produce: @@ -4995,16 +4998,16 @@ var CZombies = (function (b, a) { !(d.FreeFreezeTime || d.FreeSetbodyTime) && (d.AttackedLX > GetX(0) ? (d.beAttacked && !d.isAttacking && d.JudgeAttack(), - !d.isAttacking && + !d.isAttacking && ((d.AttackedRX -= a = d.Speed), (d.ZX = d.AttackedLX -= a), (d.Ele.style.left = Math.floor((d.X -= a)) + "px"))) : d.beAttacked && - ((d.WalkStatus = 0), - (d.Altitude = 1), - (d.EleBody.src = d.PicArr[(d.NormalGif = d.WalkGif0)]), - SetVisible(d.EleShadow), - (d.ChkActs = d.ChkActsL3))); + ((d.WalkStatus = 0), + (d.Altitude = 1), + (d.EleBody.src = d.PicArr[(d.NormalGif = d.WalkGif0)]), + SetVisible(d.EleShadow), + (d.ChkActs = d.ChkActsL3))); return 1; }, JudgeAttack: function () { @@ -5018,8 +5021,8 @@ var CZombies = (function (b, a) { (a = e.JudgeLR(e, c, d, b, g) || e.JudgeSR(e, c, d, b, g)) ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = e.PicArr[9] + Math.random()), - oSym.addTask( + (e.EleBody.src = e.PicArr[9] + Math.random()), + oSym.addTask( 50, function (i, h) { $Z[i] && @@ -5029,12 +5032,12 @@ var CZombies = (function (b, a) { h.NormalAttack(a[0], a[1])); }, [f, e] - )) + )) : e.NormalAttack(a[0], a[1]) : e.isAttacking && - ((e.EleBody.src = e.PicArr[10] + Math.random()), - (e.Altitude = 0), - oSym.addTask( + ((e.EleBody.src = e.PicArr[10] + Math.random()), + (e.Altitude = 0), + oSym.addTask( 70, function (i, h) { $Z[i] && @@ -5043,7 +5046,7 @@ var CZombies = (function (b, a) { (h.EleBody.src = h.PicArr[h.NormalGif])); }, [f, e] - )); + )); }, NormalAttack: function (b, a) { oSym.addTask( @@ -5068,10 +5071,10 @@ var CZombies = (function (b, a) { b && b.beAttacked && b.AttackedLX < 900 && b.Altitude < 2 ? !c.isAttacking ? ((c.isAttacking = 1), - (c.EleBody.src = c.PicArr[9] + Math.random()), - (a = b.id), - !b.isAttacking && b.AttackZombie2(b, a, d), - oSym.addTask( + (c.EleBody.src = c.PicArr[9] + Math.random()), + (a = b.id), + !b.isAttacking && b.AttackZombie2(b, a, d), + oSym.addTask( 50, function (g, h, f, e) { $Z[h] && @@ -5079,17 +5082,17 @@ var CZombies = (function (b, a) { ($Z[e] && f.beAttacked ? ((g.EleBody.src = g.PicArr[g.AttackGif]), - (g.Altitude = 1), - g.AttackZombie(h, e)) + (g.Altitude = 1), + g.AttackZombie(h, e)) : g.JudgeAttackH()); }, [c, d, b, a] - )) + )) : c.AttackZombie(d, a) : c.isAttacking && - ((c.EleBody.src = c.PicArr[10] + Math.random()), - (c.Altitude = 0), - oSym.addTask( + ((c.EleBody.src = c.PicArr[10] + Math.random()), + (c.Altitude = 0), + oSym.addTask( 70, function (f, e) { $Z[f] && @@ -5098,7 +5101,7 @@ var CZombies = (function (b, a) { (e.EleBody.src = e.PicArr[e.NormalGif])); }, [d, c] - )); + )); }, AttackZombie2: function (c, b, a) { c.isAttacking = 1; @@ -5110,8 +5113,8 @@ var CZombies = (function (b, a) { g.beAttacked && ((f = $Z[d]) && f.beAttacked ? ((g.EleBody.src = g.PicArr[g.AttackGif]), - (g.Altitude = 1), - oSym.addTask( + (g.Altitude = 1), + oSym.addTask( 10, function (k, i, j, h) { $Z[i] && @@ -5120,16 +5123,16 @@ var CZombies = (function (b, a) { !k.FreeSetbodyTime && ($Z[h] && j.beAttacked ? (j.getHit0(j, 10, 0), - oSym.addTask( + oSym.addTask( 10, arguments.callee, [k, i, j, h] - )) + )) : ((k.EleBody.src = k.PicArr[10] + Math.random()), - (k.Altitude = 0), - oSym.addTask( + (k.Altitude = 0), + oSym.addTask( 70, function (l, m) { $Z[l] && @@ -5141,13 +5144,13 @@ var CZombies = (function (b, a) { ])); }, [i, k] - ))); + ))); }, [g, e, f, d] - )) + )) : ((g.EleBody.src = g.PicArr[10] + Math.random()), - (g.Altitude = 0), - oSym.addTask( + (g.Altitude = 0), + oSym.addTask( 70, function (h, i) { $Z[h] && @@ -5157,7 +5160,7 @@ var CZombies = (function (b, a) { i.PicArr[i.NormalGif])); }, [e, g] - ))); + ))); }, [c, b, a] ); @@ -5170,7 +5173,7 @@ var CZombies = (function (b, a) { b && ((b.HP -= 60) < 1 ? (b.NormalDie(), - oSym.addTask(200, ClearChild, [b.Ele])) + oSym.addTask(200, ClearChild, [b.Ele])) : oSym.addTask(100, arguments.callee, [c])); }, [a] @@ -5662,20 +5665,20 @@ var CZombies = (function (b, a) { "px;width:800px;height:72px", 0, EDPZ - )), - NewImg( + )), + NewImg( "", "images/interface/blank.png", "position:absolute;clip:rect(0,auto,auto,800px);width:800px;height:72px;left:5px;background:url(images/Zombies/Zomboni/ice.png) repeat-x", f - ), - NewImg( + ), + NewImg( "", "images/Zombies/Zomboni/ice_cap.png", "position:absolute;display:none;left:0", f - ), - (b[d] = [1, 11, h.AttackedLX])) + ), + (b[d] = [1, 11, h.AttackedLX])) : ++b[d][0]; g ? oSym.addTask( @@ -5688,7 +5691,7 @@ var CZombies = (function (b, a) { PlayAudio("zamboni")); }, [e, c] - ) + ) : (SetBlock(c), PlayAudio("zamboni")); }, ChkActs: function (e, j, q, k) { @@ -5715,9 +5718,9 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - e.height + e.GetDY(), })), - (e.ZX = e.AttackedLX -= b), - (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), - (m = 1)); + (e.ZX = e.AttackedLX -= b), + (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), + (m = 1)); d = e.X; h = d + 250; f = d + 100; @@ -5739,8 +5742,8 @@ var CZombies = (function (b, a) { (f.AttackedLX += b = f.Speed) > oS.W ? (g.splice(c, 1), f.DisappearDie(), (e = 0)) : ((f.ZX = f.AttackedRX += b), - (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), - (e = 1)); + (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), + (e = 1)); return e; }, getPea: function (c, b) { @@ -5880,7 +5883,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, JudgeSR: function (e, c, d, b, f) { return d > 9 @@ -5897,7 +5900,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, NormalAttack: function (c, b) { var d = $Z[c]; @@ -5992,20 +5995,20 @@ var CZombies = (function (b, a) { "px;width:800px;height:72px", 0, EDPZ - )), - NewImg( + )), + NewImg( "", "images/interface/blank.png", "position:absolute;clip:rect(0,auto,auto,800px);width:800px;height:72px;left:5px;background:url(images/Zombies/wall/Zomboni/ice.png) repeat-x", f - ), - NewImg( + ), + NewImg( "", "images/Zombies/wall/Zomboni/ice_cap.png", "position:absolute;display:none;left:0", f - ), - (b[d] = [1, 11, h.AttackedLX])) + ), + (b[d] = [1, 11, h.AttackedLX])) : ++b[d][0]; g ? oSym.addTask( @@ -6018,7 +6021,7 @@ var CZombies = (function (b, a) { PlayAudio("zamboni")); }, [e, c] - ) + ) : (SetBlock(c), PlayAudio("zamboni")); }, ChkActs: function (e, j, q, k) { @@ -6045,9 +6048,9 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - e.height + e.GetDY(), })), - (e.ZX = e.AttackedLX -= b), - (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), - (m = 1)); + (e.ZX = e.AttackedLX -= b), + (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), + (m = 1)); d = e.X; h = d + 250; f = d + 100; @@ -6069,8 +6072,8 @@ var CZombies = (function (b, a) { (f.AttackedLX += b = f.Speed) > oS.W ? (g.splice(c, 1), f.DisappearDie(), (e = 0)) : ((f.ZX = f.AttackedRX += b), - (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), - (e = 1)); + (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), + (e = 1)); return e; }, getPea: function (c, b) { @@ -6210,7 +6213,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, JudgeSR: function (e, c, d, b, f) { return d > 9 @@ -6227,7 +6230,7 @@ var CZombies = (function (b, a) { : false; } } - })(); + })(); }, NormalAttack: function (c, b) { var d = $Z[c]; @@ -6377,18 +6380,18 @@ var CZombies = (function (b, a) { (p = g[d + e + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (f.JudgeAttack = CZombies.prototype.JudgeAttack), - f.NormalAttack(f.id, p.id, p.AttackedLX)) + p.AttackedLX < b && + ((a = -1), + (f.JudgeAttack = CZombies.prototype.JudgeAttack), + f.NormalAttack(f.id, p.id, p.AttackedLX)) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (f.JudgeAttack = CZombies.prototype.JudgeAttack), - (f.NormalAttack = CZombies.prototype.NormalAttack)( + p.AttackedLX < b && + ((a = -1), + (f.JudgeAttack = CZombies.prototype.JudgeAttack), + (f.NormalAttack = CZombies.prototype.NormalAttack)( f.id, p.id - ))) + ))) ) {} } }, @@ -6441,18 +6444,18 @@ var CZombies = (function (b, a) { k.AttackedRX) - (h.beAttackedPointL = 45)) + (h.beAttackedPointR = 100)), - SetStyle(i, { left: h.X + "px" }), - (h.EleShadow.style.left = "45px"), - n()) + SetStyle(i, { left: h.X + "px" }), + (h.EleShadow.style.left = "45px"), + n()) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - (h.beAttackedPointR = 100)) + (h.beAttackedPointL = 45)), - SetStyle(i, { left: h.X + "px" }), - (h.EleShadow.style.left = "45px"), - (q.src = h.PicArr[13] + Math.random()), - oSym.addTask( + SetStyle(i, { left: h.X + "px" }), + (h.EleShadow.style.left = "45px"), + (q.src = h.PicArr[13] + Math.random()), + oSym.addTask( 170, function (t, w) { var v = $Z[t], @@ -6460,7 +6463,7 @@ var CZombies = (function (b, a) { v && n(); }, [m, q] - ))); + ))); }, [d, b, a, c, e] ); @@ -6628,7 +6631,7 @@ var CZombies = (function (b, a) { ? (!g.isAttacking && ((g.isAttacking = 1), (g.EleBody.src = g.PicArr[g.AttackGif])), - g.NormalAttack(c[0], c[1])) + g.NormalAttack(c[0], c[1])) : g.isAttacking && (g.isAttacking = 0); }; a.JudgeAttackH = function () { @@ -6639,9 +6642,9 @@ var CZombies = (function (b, a) { d && d.beAttacked && d.AttackedLX < oS.W && d.Altitude == 1 ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = e.PicArr[e.AttackGif]), - e.AttackZombie(f, (c = d.id)), - !d.isAttacking && d.AttackZombie2(d, c, f)) + (e.EleBody.src = e.PicArr[e.AttackGif]), + e.AttackZombie(f, (c = d.id)), + !d.isAttacking && d.AttackZombie2(d, c, f)) : e.AttackZombie(f, d.id, 1) : e.isAttacking && (e.isAttacking = 0); }; @@ -6707,7 +6710,7 @@ var CZombies = (function (b, a) { } } while (g++ < h); } while (q++ < o); - })(e.R, GetC(e.ZX)) + })(e.R, GetC(e.ZX)) : (function (j, l) { var m = j - 120, o = j + 120, @@ -6722,7 +6725,7 @@ var CZombies = (function (b, a) { n[k].ExplosionDie(); } } while (h++ < g); - })(e.ZX, e.R), + })(e.ZX, e.R), e.DisappearDie()); }, [c] @@ -6759,11 +6762,11 @@ var CZombies = (function (b, a) { g.RandomOpenBox(f)); }, [b, a] - ) + ) : (PlayAudio("jackinthebox", true), - ++oGd.$JackinTheBox, - SetBlock(a), - d.RandomOpenBox(b)); + ++oGd.$JackinTheBox, + SetBlock(a), + d.RandomOpenBox(b)); }, NormalDie: function () { var a = this; @@ -6872,7 +6875,7 @@ var CZombies = (function (b, a) { ? (!g.isAttacking && ((g.isAttacking = 1), (g.EleBody.src = g.PicArr[g.AttackGif])), - g.NormalAttack(c[0], c[1])) + g.NormalAttack(c[0], c[1])) : g.isAttacking && (g.isAttacking = 0); }; a.JudgeAttackH = function () { @@ -6883,9 +6886,9 @@ var CZombies = (function (b, a) { d && d.beAttacked && d.AttackedLX < oS.W && d.Altitude == 1 ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = e.PicArr[e.AttackGif]), - e.AttackZombie(f, (c = d.id)), - !d.isAttacking && d.AttackZombie2(d, c, f)) + (e.EleBody.src = e.PicArr[e.AttackGif]), + e.AttackZombie(f, (c = d.id)), + !d.isAttacking && d.AttackZombie2(d, c, f)) : e.AttackZombie(f, d.id, 1) : e.isAttacking && (e.isAttacking = 0); }; @@ -6951,7 +6954,7 @@ var CZombies = (function (b, a) { } } while (g++ < h); } while (q++ < o); - })(e.R, GetC(e.ZX)) + })(e.R, GetC(e.ZX)) : (function (j, l) { var m = j - 120, o = j + 120, @@ -6966,7 +6969,7 @@ var CZombies = (function (b, a) { n[k].ExplosionDie(); } } while (h++ < g); - })(e.ZX, e.R), + })(e.ZX, e.R), e.DisappearDie()); }, [c] @@ -7003,11 +7006,11 @@ var CZombies = (function (b, a) { g.RandomOpenBox(f)); }, [b, a] - ) + ) : (PlayAudio("jackinthebox", true), - ++oGd.$JackinTheBox, - SetBlock(a), - d.RandomOpenBox(b)); + ++oGd.$JackinTheBox, + SetBlock(a), + d.RandomOpenBox(b)); }, NormalDie: function () { var a = this; @@ -7117,10 +7120,10 @@ var CZombies = (function (b, a) { PlayAudio("ballooninflate"); }, [c, a] - ) + ) : (SetBlock(a), - f[b] == undefined ? (f[b] = 1) : ++f[b], - PlayAudio("ballooninflate")); + f[b] == undefined ? (f[b] = 1) : ++f[b], + PlayAudio("ballooninflate")); }, ChkActs: function (f, d, g, c) { var b, a, e; @@ -7137,9 +7140,9 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - f.height + f.GetDY(), })), - (f.ZX = f.AttackedLX -= b), - (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), - (e = 1)) + (f.ZX = f.AttackedLX -= b), + (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), + (e = 1)) : (e = 1); return e; }, @@ -7310,10 +7313,10 @@ var CZombies = (function (b, a) { PlayAudio("ballooninflate"); }, [c, a, b] - ) + ) : (SetBlock(a), - f[b] == undefined ? (f[b] = 1) : ++f[b], - PlayAudio("ballooninflate")); + f[b] == undefined ? (f[b] = 1) : ++f[b], + PlayAudio("ballooninflate")); }, ChkActs: function (f, d, g, c) { var b, a, e; @@ -7335,9 +7338,9 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - f.height + f.GetDY(), })), - (f.ZX = f.AttackedLX -= b), - (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), - (e = 1)) + (f.ZX = f.AttackedLX -= b), + (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), + (e = 1)) : (e = 1); return e; }, @@ -7516,10 +7519,10 @@ var CZombies = (function (b, a) { PlayAudio("ballooninflate"); }, [c, a] - ) + ) : (SetBlock(a), - f[b] == undefined ? (f[b] = 1) : ++f[b], - PlayAudio("ballooninflate")); + f[b] == undefined ? (f[b] = 1) : ++f[b], + PlayAudio("ballooninflate")); }, ChkActs: function (f, d, g, c) { var b, a, e; @@ -7536,9 +7539,9 @@ var CZombies = (function (b, a) { ar: [oS.R - 1], CustomTop: 400 - f.height + f.GetDY(), })), - (f.ZX = f.AttackedLX -= b), - (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), - (e = 1)) + (f.ZX = f.AttackedLX -= b), + (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), + (e = 1)) : (e = 1); return e; }, @@ -7820,19 +7823,19 @@ oCBucketheadZombie = InheritO( (p = h[d + f + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= e && - p.AttackedLX < b && - p.canEat && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - g.NormalAttack(g.id, p.id, p.AttackedLX)) + p.AttackedLX < b && + p.canEat && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + g.NormalAttack(g.id, p.id, p.AttackedLX)) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (g.JudgeAttack = CZombies.prototype.JudgeAttack), - (g.NormalAttack = CZombies.prototype.NormalAttack)( + p.AttackedLX < b && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), + (g.NormalAttack = CZombies.prototype.NormalAttack)( g.id, p.id - ))) + ))) ) {} } }, @@ -7894,31 +7897,31 @@ oCBucketheadZombie = InheritO( (h.X = (h.AttackedLX = h.ZX = q = k.AttackedRX) - h.beAttackedPointL) + h.beAttackedPointR), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/wall/thugZombie/PoleVaultingZombieWalk.gif"), - SetVisible(l), - (h.isAttacking = 0), - (h.Altitude = 1), - (h.OSpeed = h.Speed = 1.6), - (h.NormalGif = 9), - (h.LostHeadGif = 10), - (h.NormalAttack = (r = + SetVisible(l), + (h.isAttacking = 0), + (h.Altitude = 1), + (h.OSpeed = h.Speed = 1.6), + (h.NormalGif = 9), + (h.LostHeadGif = 10), + (h.NormalAttack = (r = CZombies.prototype).NormalAttack), - (h.getCrushed = r.getCrushed), - (h.getFreeze = r.getFreeze), - (h.getRaven = r.getRaven)) + (h.getCrushed = r.getCrushed), + (h.getFreeze = r.getFreeze), + (h.getRaven = r.getRaven)) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - h.beAttackedPointR) + h.beAttackedPointL), - SetStyle(i, { left: h.X + "px" }), - (n.src = + SetStyle(i, { left: h.X + "px" }), + (n.src = "images/Zombies/wall/thugZombie/PoleVaultingZombieJump2.gif" + $Random + Math.random()), - SetVisible(l), - oSym.addTask( + SetVisible(l), + oSym.addTask( 80, function (s, v) { var u = $Z[s], @@ -7938,7 +7941,7 @@ oCBucketheadZombie = InheritO( (u.getRaven = t.getRaven)); }, [m, n] - ))); + ))); }, [d, b, a, c, e] ); @@ -8068,12 +8071,12 @@ oCBucketheadZombie = InheritO( } (f.HP -= b) < f.BreakPoint ? ((f.getFirePea = OrnNoneZombies.prototype.getFirePea), - f.GoingDie( + f.GoingDie( f.PicArr[ [f.LostHeadGif, f.LostHeadAttackGif][f.isAttacking] ] - ), - (f.getHit = + ), + (f.getHit = f.getHit0 = f.getHit1 = f.getHit2 = @@ -8087,15 +8090,15 @@ oCBucketheadZombie = InheritO( f.PicArr, f.isAttacking, 0 - ), - f.SetAlpha(f, f.EleBody, 50, 0.5), - oSym.addTask( + ), + f.SetAlpha(f, f.EleBody, 50, 0.5), + oSym.addTask( 10, function (j, i) { (i = $Z[j]) && i.SetAlpha(i, i.EleBody, 100, 1); }, [f.id] - )); + )); }, getHit0: function (c, a, b) { b == c.WalkDirection @@ -8107,24 +8110,24 @@ oCBucketheadZombie = InheritO( c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && d.SetAlpha(d, d.EleBody, 100, 1); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [c.LostHeadGif, c.LostHeadAttackGif][c.isAttacking] ] - ), - (c.getFirePea = OrnNoneZombies.prototype.getFirePea), - (c.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (c.getHit = + ), + (c.getFirePea = OrnNoneZombies.prototype.getFirePea), + (c.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -8137,10 +8140,10 @@ oCBucketheadZombie = InheritO( b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -8154,15 +8157,15 @@ oCBucketheadZombie = InheritO( b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, getHit2: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -8170,23 +8173,23 @@ oCBucketheadZombie = InheritO( b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = b.getHit3 = function () {})) : (b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, getHit3: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -8194,10 +8197,10 @@ oCBucketheadZombie = InheritO( b.PicArr[ [b.LostHeadGif, b.LostHeadAttackGif][b.isAttacking] ] - ), - (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -8211,15 +8214,15 @@ oCBucketheadZombie = InheritO( b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && c.SetAlpha(c, c.EleBody, 100, 1); }, [b.id] - )); + )); }, CheckOrnHP: function (g, h, d, c, f, b, a) { var e = OrnNoneZombies.prototype; @@ -8556,20 +8559,20 @@ oCBucketheadZombie = InheritO( "px;width:800px;height:205px", 0, EDPZ - )), - NewImg( + )), + NewImg( "", "images/interface/blank.png", "position:absolute;clip:rect(0,auto,auto,800px);width:800px;height:205px;left:0px;background:url(images/Zombies/LGBOSS/ice.png) repeat-x", f - ), - NewImg( + ), + NewImg( "", "images/Zombies/LGBOSS/ice_cap.png", "position:absolute;display:none;left:0", f - ), - (b[d] = [1, 11, h.AttackedLX])) + ), + (b[d] = [1, 11, h.AttackedLX])) : ++b[d][0]; g ? oSym.addTask( @@ -8582,7 +8585,7 @@ oCBucketheadZombie = InheritO( PlayAudio("zamboni")); }, [e, c] - ) + ) : (SetBlock(c), PlayAudio("zamboni")); }, ChkActs: function (e, j, q, k) { @@ -8609,9 +8612,9 @@ oCBucketheadZombie = InheritO( ar: [oS.R - 1], CustomTop: 400 - e.height + e.GetDY(), })), - (e.ZX = e.AttackedLX -= b), - (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), - (m = 1)); + (e.ZX = e.AttackedLX -= b), + (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), + (m = 1)); d = e.X; h = d + 250; f = d + 100; @@ -8633,8 +8636,8 @@ oCBucketheadZombie = InheritO( (f.AttackedLX += b = f.Speed) > oS.W ? (g.splice(c, 1), f.DisappearDie(), (e = 0)) : ((f.ZX = f.AttackedRX += b), - (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), - (e = 1)); + (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), + (e = 1)); return e; }, getPea: function (c, b) { @@ -8774,7 +8777,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, JudgeSR: function (e, c, d, b, f) { return d > 9 @@ -8791,7 +8794,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, NormalAttack: function (c, b) { var d = $Z[c]; @@ -8858,14 +8861,14 @@ oCBucketheadZombie = InheritO( ? (h.beAttacked && !h.isAttacking && h.JudgeAttack(), - !h.isAttacking + !h.isAttacking ? (c = h.AttackedRX -= d = h.Speed) < -50 ? (j.splice(e, 1), - h.DisappearDie(), - (g = 0)) + h.DisappearDie(), + (g = 0)) : (c < 100 && !h.PointZombie && ((h.PointZombie = 1), @@ -8883,13 +8886,13 @@ oCBucketheadZombie = InheritO( h.height + h.GetDY(), })), - (h.ZX = h.AttackedLX -= + (h.ZX = h.AttackedLX -= d), - (h.Ele.style.left = + (h.Ele.style.left = Math.floor( (h.X -= d) ) + "px"), - (g = 1)) + (g = 1)) : (g = 1)) : (g = 1); return g; @@ -8900,19 +8903,19 @@ oCBucketheadZombie = InheritO( ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - !g.isAttacking + !g.isAttacking ? (g.AttackedLX += c = g.Speed) > oS.W ? (h.splice(d, 1), - g.DisappearDie(), - (f = 0)) + g.DisappearDie(), + (f = 0)) : ((g.ZX = g.AttackedRX += c), - (g.Ele.style.left = + (g.Ele.style.left = Math.ceil( (g.X += c) ) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); return f; @@ -8943,30 +8946,30 @@ oCBucketheadZombie = InheritO( (g[++m] = q)); g.length ? ((l = !d.WalkDirection ? -5 : 5), - (d.ZX += l), - (d.AttackedLX += l), - (d.AttackedRX += l), - (d.X += l), - (q = + (d.ZX += l), + (d.AttackedLX += l), + (d.AttackedRX += l), + (d.X += l), + (q = g[ Math.floor( Math.random() * g.length ) ]), - SetStyle(f, { + SetStyle(f, { left: d.X + "px", top: (d.pixelTop = j == undefined ? GetY(q) - - d.height + - d.GetDY() + d.height + + d.GetDY() : j) + "px", zIndex: (d.zIndex = 3 * q + 1), - }), - d.isAttacking && + }), + d.isAttacking && (n.src = d.PicArr[d.NormalGif]), - oZ.moveTo(k, h, q)) + oZ.moveTo(k, h, q)) : (n.src = d.PicArr[d.NormalGif]); d.isAttacking = 0; }, @@ -9104,7 +9107,7 @@ oCBucketheadZombie = InheritO( SetBlock(g)); }, [d, c] - ) + ) : SetBlock(c); }, Birth: function () { @@ -9146,7 +9149,7 @@ oCBucketheadZombie = InheritO( h.Attack = 100; h.FreeFreezeTime || h.FreeSetbodyTime ? (h.PlayNormalballAudio(), - (h.Speed = h.OSpeed)) + (h.Speed = h.OSpeed)) : h.PlayFireballAudio(); var f = h.AttackedLX, j = h.AttackedRX, @@ -9330,10 +9333,10 @@ oCBucketheadZombie = InheritO( ((g.isAttacking = 1), (g.EleBody.src = g.PicArr[g.AttackGif])), - g.NormalAttack(c[0], c[1])) + g.NormalAttack(c[0], c[1])) : g.isAttacking && - ((g.isAttacking = 0), - (g.EleBody.src = + ((g.isAttacking = 0), + (g.EleBody.src = g.PicArr[g.NormalGif])); }, JudgeLR: function (f, d, e, c, g) { @@ -9355,7 +9358,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, JudgeSR: function (f, d, e, c, g) { return e > 9 @@ -9376,7 +9379,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, JudgeAttackH1: function () { var e = this, @@ -9400,15 +9403,15 @@ oCBucketheadZombie = InheritO( d.Altitude == 1 ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = + (e.EleBody.src = e.PicArr[e.AttackGif]), - e.AttackZombie(f, (c = d.id)), - !d.isAttacking && + e.AttackZombie(f, (c = d.id)), + !d.isAttacking && d.AttackZombie2(d, c, f)) : e.AttackZombie(f, d.id, 1) : e.isAttacking && - ((e.isAttacking = 0), - (e.EleBody.src = + ((e.isAttacking = 0), + (e.EleBody.src = e.PicArr[e.NormalGif])); }, AttackZombie: function (d, c) { @@ -9442,13 +9445,13 @@ oCBucketheadZombie = InheritO( !i.FreeSetbodyTime && ((h = $Z[f]) ? (h.getHit0(h, 10, 0), - oSym.addTask( + oSym.addTask( 10, arguments.callee, [g, f] - )) + )) : ((i.isAttacking = 0), - (i.EleBody.src = + (i.EleBody.src = i.PicArr[ i.NormalGif ]))); @@ -9518,10 +9521,10 @@ oCBucketheadZombie = InheritO( (e.CSS_fliph = d ? " fliph" : ""); - } + } : function (e, c, d) { c.className = d ? "fliph" : ""; - }, + }, bedevil: function (c) { c.ExchangeLR(c, 1); c.JudgeAttack = c.JudgeAttackH; @@ -9538,10 +9541,10 @@ oCBucketheadZombie = InheritO( "alpha(opacity=" + e + ")") + f.CSS_fliph; - } + } : function (f, d, e, c) { d.style.opacity = c; - }, + }, }), a ); @@ -9607,8 +9610,8 @@ oCBucketheadZombie = InheritO( b = oSym.Now + 1000; e == 0 ? (f.PlaySlowballAudio(), - (f.Speed = 0.5 * f.OSpeed), - (f.Attack = 50)) + (f.Speed = 0.5 * f.OSpeed), + (f.Attack = 50)) : f.PlayNormalballAudio(); e < b && ((f.FreeSlowTime = b), @@ -9825,13 +9828,13 @@ oCBucketheadZombie = InheritO( ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - (e = g.id), - !g.isAttacking + (e = g.id), + !g.isAttacking ? (a = g.AttackedRX -= b = g.Speed) < - -50 + -50 ? (h.splice(c, 1), - g.DisappearDie(), - (f = 0)) + g.DisappearDie(), + (f = 0)) : (a < 100 && !g.PointZombie && ((g.PointZombie = 1), @@ -9849,11 +9852,11 @@ oCBucketheadZombie = InheritO( g.height + g.GetDY(), })), - (g.ZX = g.AttackedLX -= b), - (g.Ele.style.left = + (g.ZX = g.AttackedLX -= b), + (g.Ele.style.left = Math.floor((g.X -= b)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); g.ChkSpeed(g); @@ -10185,17 +10188,17 @@ oCBucketheadZombie = InheritO( ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - (c = e.id), - !e.isAttacking + (c = e.id), + !e.isAttacking ? (e.AttackedLX += 3.5) > oS.W ? (f.splice(a, 1), - e.DisappearDie(), - (d = 0)) + e.DisappearDie(), + (d = 0)) : ((e.ZX = e.AttackedRX += 3.5), - (e.Ele.style.left = + (e.Ele.style.left = Math.ceil((e.X += 3.5)) + "px"), - (d = 1)) + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -10210,13 +10213,13 @@ oCBucketheadZombie = InheritO( ? (g.beAttacked && !g.isAttacking && g.JudgeAttack(), - (e = g.id), - !g.isAttacking + (e = g.id), + !g.isAttacking ? (a = g.AttackedRX -= b = g.Speed) < - -50 + -50 ? (h.splice(c, 1), - g.DisappearDie(), - (f = 0)) + g.DisappearDie(), + (f = 0)) : (a < 100 && !g.PointZombie && ((g.PointZombie = 1), @@ -10234,11 +10237,11 @@ oCBucketheadZombie = InheritO( g.height + g.GetDY(), })), - (g.ZX = g.AttackedLX -= b), - (g.Ele.style.left = + (g.ZX = g.AttackedLX -= b), + (g.Ele.style.left = Math.floor((g.X -= b)) + "px"), - (f = 1)) + (f = 1)) : (f = 1)) : (f = 1); g.ChkSpeed(g); @@ -10308,15 +10311,15 @@ oCBucketheadZombie = InheritO( !f.FreeSetbodyTime && ((e = $Z[c]) ? (e.getHit0(e, 10, 0), - oSym.addTask( + oSym.addTask( 10, arguments.callee, [d, c] - )) + )) : ((f.isAttacking = 0), - (f.EleBody.src = + (f.EleBody.src = f.PicArr[f.NormalGif]), - f.TurnLeft(f))); + f.TurnLeft(f))); }, [b, a] ); @@ -10941,26 +10944,26 @@ oCBucketheadZombie = InheritO( (p = h[d + f + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= e && - p.AttackedLX < b && - p.canEat && - ((a = -1), - (g.JudgeAttack = + p.AttackedLX < b && + p.canEat && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), - g.NormalAttack( + g.NormalAttack( g.id, p.id, p.AttackedLX - )) + )) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (g.JudgeAttack = + p.AttackedLX < b && + ((a = -1), + (g.JudgeAttack = CZombies.prototype.JudgeAttack), - (g.NormalAttack = + (g.NormalAttack = CZombies.prototype.NormalAttack)( g.id, p.id - ))) + ))) ) {} } }, @@ -11031,36 +11034,36 @@ oCBucketheadZombie = InheritO( k.AttackedRX) - h.beAttackedPointL) + h.beAttackedPointR), - SetStyle(i, { + SetStyle(i, { left: h.X + "px", - }), - (n.src = + }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieWalk.gif"), - SetVisible(l), - (h.isAttacking = 0), - (h.Altitude = 1), - (h.OSpeed = h.Speed = 1.6), - (h.NormalGif = 9), - (h.LostHeadGif = 10), - (h.NormalAttack = (r = + SetVisible(l), + (h.isAttacking = 0), + (h.Altitude = 1), + (h.OSpeed = h.Speed = 1.6), + (h.NormalGif = 9), + (h.LostHeadGif = 10), + (h.NormalAttack = (r = CZombies.prototype).NormalAttack), - (h.getCrushed = r.getCrushed), - (h.getFreeze = r.getFreeze), - (h.getRaven = r.getRaven)) + (h.getCrushed = r.getCrushed), + (h.getFreeze = r.getFreeze), + (h.getRaven = r.getRaven)) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - h.beAttackedPointR) + h.beAttackedPointL), - SetStyle(i, { + SetStyle(i, { left: h.X + "px", - }), - (n.src = + }), + (n.src = "images/Zombies/PoleVaultingZombie/PoleVaultingZombieJump2.gif" + $Random + Math.random()), - SetVisible(l), - oSym.addTask( + SetVisible(l), + oSym.addTask( 80, function (s, v) { var u = $Z[s], @@ -11086,7 +11089,7 @@ oCBucketheadZombie = InheritO( t.getRaven)); }, [m, n] - ))); + ))); }, [d, b, a, c, e] ); @@ -11241,15 +11244,15 @@ oCBucketheadZombie = InheritO( (f.HP -= b) < f.BreakPoint ? ((f.getFirePea = OrnNoneZombies.prototype.getFirePea), - f.GoingDie( + f.GoingDie( f.PicArr[ [ f.LostHeadGif, f.LostHeadAttackGif, ][f.isAttacking] ] - ), - (f.getHit = + ), + (f.getHit = f.getHit0 = f.getHit1 = f.getHit2 = @@ -11263,9 +11266,9 @@ oCBucketheadZombie = InheritO( f.PicArr, f.isAttacking, 0 - ), - f.SetAlpha(f, f.EleBody, 50, 0.5), - oSym.addTask( + ), + f.SetAlpha(f, f.EleBody, 50, 0.5), + oSym.addTask( 10, function (j, i) { (i = $Z[j]) && @@ -11277,7 +11280,7 @@ oCBucketheadZombie = InheritO( ); }, [f.id] - )); + )); }, getHit0: function (c, a, b) { b == c.WalkDirection @@ -11289,9 +11292,9 @@ oCBucketheadZombie = InheritO( c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && @@ -11303,21 +11306,21 @@ oCBucketheadZombie = InheritO( ); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [ c.LostHeadGif, c.LostHeadAttackGif, ][c.isAttacking] ] - ), - (c.getFirePea = + ), + (c.getFirePea = OrnNoneZombies.prototype.getFirePea), - (c.getSnowPea = + (c.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (c.getHit = + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -11333,12 +11336,12 @@ oCBucketheadZombie = InheritO( b.LostHeadAttackGif, ][b.isAttacking] ] - ), - (b.getFirePea = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -11352,9 +11355,9 @@ oCBucketheadZombie = InheritO( b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && @@ -11366,7 +11369,7 @@ oCBucketheadZombie = InheritO( ); }, [b.id] - )); + )); }, getHit2: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -11377,19 +11380,19 @@ oCBucketheadZombie = InheritO( b.LostHeadAttackGif, ][b.isAttacking] ] - ), - (b.getFirePea = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = b.getHit3 = function () {})) : (b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && @@ -11401,7 +11404,7 @@ oCBucketheadZombie = InheritO( ); }, [b.id] - )); + )); }, getHit3: function (b, a) { (b.HP -= a) < b.BreakPoint @@ -11412,12 +11415,12 @@ oCBucketheadZombie = InheritO( b.LostHeadAttackGif, ][b.isAttacking] ] - ), - (b.getFirePea = + ), + (b.getFirePea = OrnNoneZombies.prototype.getFirePea), - (b.getSnowPea = + (b.getSnowPea = OrnNoneZombies.prototype.getSnowPea), - (b.getHit = + (b.getHit = b.getHit0 = b.getHit1 = b.getHit2 = @@ -11431,9 +11434,9 @@ oCBucketheadZombie = InheritO( b.PicArr, b.isAttacking, 0 - ), - b.SetAlpha(b, b.EleBody, 50, 0.5), - oSym.addTask( + ), + b.SetAlpha(b, b.EleBody, 50, 0.5), + oSym.addTask( 10, function (d, c) { (c = $Z[d]) && @@ -11445,7 +11448,7 @@ oCBucketheadZombie = InheritO( ); }, [b.id] - )); + )); }, CheckOrnHP: function (g, h, d, c, f, b, a) { var e = OrnNoneZombies.prototype; @@ -11552,7 +11555,7 @@ oCBucketheadZombie = InheritO( b == c.WalkDirection ? ["shieldhit", "shieldhit2"][ Math.floor(Math.random() * 2) - ] + ] : "splat" + Math.floor(1 + Math.random() * 3) ); @@ -11572,7 +11575,7 @@ oCBucketheadZombie = InheritO( b == c.WalkDirection ? ["shieldhit", "shieldhit2"][ Math.floor(Math.random() * 2) - ] + ] : "splat" + Math.floor(1 + Math.random() * 3) ); @@ -11588,9 +11591,9 @@ oCBucketheadZombie = InheritO( c.PicArr, c.isAttacking, 1 - ), - c.SetAlpha(c, c.EleBody, 50, 0.5), - oSym.addTask( + ), + c.SetAlpha(c, c.EleBody, 50, 0.5), + oSym.addTask( 10, function (e, d) { (d = $Z[e]) && @@ -11602,17 +11605,17 @@ oCBucketheadZombie = InheritO( ); }, [c.id] - )) + )) : (c.HP -= a) < c.BreakPoint && - (c.GoingDie( + (c.GoingDie( c.PicArr[ [ c.LostHeadGif, c.LostHeadAttackGif, ][c.isAttacking] ] - ), - (c.getHit = + ), + (c.getHit = c.getHit0 = c.getHit1 = c.getHit2 = @@ -11651,10 +11654,10 @@ oCBucketheadZombie = InheritO( getFireball: function (c, a, b) { b != c.WalkDirection ? ((c.FreeSlowTime = 0), - (c.Attack = 100), - c.Speed != c.OSpeed + (c.Attack = 100), + c.Speed != c.OSpeed ? (c.PlayNormalballAudio(), - (c.Speed = c.OSpeed)) + (c.Speed = c.OSpeed)) : c.PlayFireballAudio()) : c.PlayNormalballAudio(); }, @@ -11738,7 +11741,7 @@ oCBucketheadZombie = InheritO( SetBlock(i)); }, [c, b] - ) + ) : SetBlock(b); }, ChkActsL1: function (f, e, g, d) { @@ -11831,16 +11834,16 @@ oCBucketheadZombie = InheritO( ? (e.beAttacked && !e.isAttacking && e.JudgeAttack(), - !e.isAttacking + !e.isAttacking ? (e.AttackedLX += a = e.Speed) > oS.W ? (f.splice(b, 1), - e.DisappearDie(), - (d = 0)) + e.DisappearDie(), + (d = 0)) : ((e.ZX = e.AttackedRX += a), - (e.Ele.style.left = + (e.Ele.style.left = Math.ceil((e.X += a)) + "px"), - (d = 1)) + (d = 1)) : (d = 1)) : (d = 1); return d; @@ -11884,14 +11887,14 @@ oCBucketheadZombie = InheritO( b && ((b.HP -= 60) < 1 ? (b.NormalDie(), - oSym.addTask(50, ClearChild, [ + oSym.addTask(50, ClearChild, [ b.Ele, - ])) + ])) : oSym.addTask( 100, arguments.callee, [c] - )); + )); }, [a] ); @@ -12111,20 +12114,20 @@ oCBucketheadZombie = InheritO( ? (d.beAttacked && !d.isAttacking && d.JudgeAttack(), - !d.isAttacking && + !d.isAttacking && ((d.AttackedRX -= a = d.Speed), (d.ZX = d.AttackedLX -= a), (d.Ele.style.left = Math.floor((d.X -= a)) + "px"))) : d.beAttacked && - ((d.WalkStatus = 0), - (d.Altitude = 1), - (d.EleBody.src = + ((d.WalkStatus = 0), + (d.Altitude = 1), + (d.EleBody.src = d.PicArr[ (d.NormalGif = d.WalkGif0) ]), - SetVisible(d.EleShadow), - (d.ChkActs = d.ChkActsL3))); + SetVisible(d.EleShadow), + (d.ChkActs = d.ChkActsL3))); return 1; }, JudgeAttack: function () { @@ -12140,9 +12143,9 @@ oCBucketheadZombie = InheritO( e.JudgeSR(e, c, d, b, g)) ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = + (e.EleBody.src = e.PicArr[9] + Math.random()), - oSym.addTask( + oSym.addTask( 50, function (i, h) { $Z[i] && @@ -12153,13 +12156,13 @@ oCBucketheadZombie = InheritO( h.NormalAttack(a[0], a[1])); }, [f, e] - )) + )) : e.NormalAttack(a[0], a[1]) : e.isAttacking && - ((e.EleBody.src = + ((e.EleBody.src = e.PicArr[10] + Math.random()), - (e.Altitude = 0), - oSym.addTask( + (e.Altitude = 0), + oSym.addTask( 70, function (i, h) { $Z[i] && @@ -12169,7 +12172,7 @@ oCBucketheadZombie = InheritO( h.PicArr[h.NormalGif])); }, [f, e] - )); + )); }, NormalAttack: function (b, a) { oSym.addTask( @@ -12198,12 +12201,12 @@ oCBucketheadZombie = InheritO( b.Altitude < 2 ? !c.isAttacking ? ((c.isAttacking = 1), - (c.EleBody.src = + (c.EleBody.src = c.PicArr[9] + Math.random()), - (a = b.id), - !b.isAttacking && + (a = b.id), + !b.isAttacking && b.AttackZombie2(b, a, d), - oSym.addTask( + oSym.addTask( 50, function (g, h, f, e) { $Z[h] && @@ -12213,18 +12216,21 @@ oCBucketheadZombie = InheritO( g.PicArr[ g.AttackGif ]), - (g.Altitude = 1), - g.AttackZombie(h, e)) + (g.Altitude = 1), + g.AttackZombie( + h, + e + )) : g.JudgeAttackH()); }, [c, d, b, a] - )) + )) : c.AttackZombie(d, a) : c.isAttacking && - ((c.EleBody.src = + ((c.EleBody.src = c.PicArr[10] + Math.random()), - (c.Altitude = 0), - oSym.addTask( + (c.Altitude = 0), + oSym.addTask( 70, function (f, e) { $Z[f] && @@ -12234,7 +12240,7 @@ oCBucketheadZombie = InheritO( e.PicArr[e.NormalGif])); }, [d, c] - )); + )); }, AttackZombie2: function (c, b, a) { c.isAttacking = 1; @@ -12247,8 +12253,8 @@ oCBucketheadZombie = InheritO( ((f = $Z[d]) && f.beAttacked ? ((g.EleBody.src = g.PicArr[g.AttackGif]), - (g.Altitude = 1), - oSym.addTask( + (g.Altitude = 1), + oSym.addTask( 10, function (k, i, j, h) { $Z[i] && @@ -12261,8 +12267,8 @@ oCBucketheadZombie = InheritO( j, 10, 0 - ), - oSym.addTask( + ), + oSym.addTask( 10, arguments.callee, [ @@ -12271,13 +12277,13 @@ oCBucketheadZombie = InheritO( j, h, ] - )) + )) : ((k.EleBody.src = k .PicArr[10] + Math.random()), - (k.Altitude = 0), - oSym.addTask( + (k.Altitude = 0), + oSym.addTask( 70, function ( l, @@ -12294,15 +12300,15 @@ oCBucketheadZombie = InheritO( ])); }, [i, k] - ))); + ))); }, [g, e, f, d] - )) + )) : ((g.EleBody.src = g.PicArr[10] + Math.random()), - (g.Altitude = 0), - oSym.addTask( + (g.Altitude = 0), + oSym.addTask( 70, function (h, i) { $Z[h] && @@ -12314,7 +12320,7 @@ oCBucketheadZombie = InheritO( ])); }, [e, g] - ))); + ))); }, [c, b, a] ); @@ -12327,14 +12333,14 @@ oCBucketheadZombie = InheritO( b && ((b.HP -= 60) < 1 ? (b.NormalDie(), - oSym.addTask(200, ClearChild, [ + oSym.addTask(200, ClearChild, [ b.Ele, - ])) + ])) : oSym.addTask( 100, arguments.callee, [c] - )); + )); }, [a] ); @@ -12803,20 +12809,20 @@ oCBucketheadZombie = InheritO( "px;width:800px;height:72px", 0, EDPZ - )), - NewImg( + )), + NewImg( "", "images/interface/blank.png", "position:absolute;clip:rect(0,auto,auto,800px);width:800px;height:72px;left:5px;background:url(images/Zombies/Zomboni/ice.png) repeat-x", f - ), - NewImg( + ), + NewImg( "", "images/Zombies/Zomboni/ice_cap.png", "position:absolute;display:none;left:0", f - ), - (b[d] = [1, 11, h.AttackedLX])) + ), + (b[d] = [1, 11, h.AttackedLX])) : ++b[d][0]; g ? oSym.addTask( @@ -12829,7 +12835,7 @@ oCBucketheadZombie = InheritO( PlayAudio("zamboni")); }, [e, c] - ) + ) : (SetBlock(c), PlayAudio("zamboni")); }, ChkActs: function (e, j, q, k) { @@ -12873,8 +12879,8 @@ oCBucketheadZombie = InheritO( e.JudgeAttack(); (r = e.AttackedRX -= b = e.Speed) < -50 ? (q.splice(k, 1), - e.DisappearDie(), - (m = 0)) + e.DisappearDie(), + (m = 0)) : (r < 100 && !e.PointZombie && ((e.PointZombie = 1), @@ -12887,10 +12893,10 @@ oCBucketheadZombie = InheritO( CustomTop: 400 - e.height + e.GetDY(), })), - (e.ZX = e.AttackedLX -= b), - (e.Ele.style.left = + (e.ZX = e.AttackedLX -= b), + (e.Ele.style.left = Math.floor((e.X -= b)) + "px"), - (m = 1)); + (m = 1)); d = e.X; h = d + 250; f = d + 100; @@ -12915,12 +12921,12 @@ oCBucketheadZombie = InheritO( f.JudgeAttack(); (f.AttackedLX += b = f.Speed) > oS.W ? (g.splice(c, 1), - f.DisappearDie(), - (e = 0)) + f.DisappearDie(), + (e = 0)) : ((f.ZX = f.AttackedRX += b), - (f.Ele.style.left = + (f.Ele.style.left = Math.ceil((f.X += b)) + "px"), - (e = 1)); + (e = 1)); return e; }, getPea: function (c, b) { @@ -13079,7 +13085,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, JudgeSR: function (e, c, d, b, f) { return d > 9 @@ -13096,7 +13102,7 @@ oCBucketheadZombie = InheritO( : false; } } - })(); + })(); }, NormalAttack: function (c, b) { var d = $Z[c]; @@ -13285,25 +13291,25 @@ oCBucketheadZombie = InheritO( (p = g[d + e + "_" + a--]) && (p.EName != "oBrains" ? p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (f.JudgeAttack = + p.AttackedLX < b && + ((a = -1), + (f.JudgeAttack = CZombies.prototype.JudgeAttack), - f.NormalAttack( + f.NormalAttack( f.id, p.id, p.AttackedLX - )) + )) : p.AttackedRX >= b && - p.AttackedLX < b && - ((a = -1), - (f.JudgeAttack = + p.AttackedLX < b && + ((a = -1), + (f.JudgeAttack = CZombies.prototype.JudgeAttack), - (f.NormalAttack = + (f.NormalAttack = CZombies.prototype.NormalAttack)( f.id, p.id - ))) + ))) ) {} } }, @@ -13356,24 +13362,26 @@ oCBucketheadZombie = InheritO( k.AttackedRX) - (h.beAttackedPointL = 45)) + (h.beAttackedPointR = 100)), - SetStyle(i, { + SetStyle(i, { left: h.X + "px", - }), - (h.EleShadow.style.left = "45px"), - n()) + }), + (h.EleShadow.style.left = + "45px"), + n()) : ((h.ZX = h.AttackedLX = (h.X = (h.AttackedRX = g) - (h.beAttackedPointR = 100)) + (h.beAttackedPointL = 45)), - SetStyle(i, { + SetStyle(i, { left: h.X + "px", - }), - (h.EleShadow.style.left = "45px"), - (q.src = + }), + (h.EleShadow.style.left = + "45px"), + (q.src = h.PicArr[13] + Math.random()), - oSym.addTask( + oSym.addTask( 170, function (t, w) { var v = $Z[t], @@ -13381,7 +13389,7 @@ oCBucketheadZombie = InheritO( v && n(); }, [m, q] - ))); + ))); }, [d, b, a, c, e] ); @@ -13552,7 +13560,7 @@ oCBucketheadZombie = InheritO( ((g.isAttacking = 1), (g.EleBody.src = g.PicArr[g.AttackGif])), - g.NormalAttack(c[0], c[1])) + g.NormalAttack(c[0], c[1])) : g.isAttacking && (g.isAttacking = 0); }; a.JudgeAttackH = function () { @@ -13566,10 +13574,10 @@ oCBucketheadZombie = InheritO( d.Altitude == 1 ? !e.isAttacking ? ((e.isAttacking = 1), - (e.EleBody.src = + (e.EleBody.src = e.PicArr[e.AttackGif]), - e.AttackZombie(f, (c = d.id)), - !d.isAttacking && + e.AttackZombie(f, (c = d.id)), + !d.isAttacking && d.AttackZombie2(d, c, f)) : e.AttackZombie(f, d.id, 1) : e.isAttacking && (e.isAttacking = 0); @@ -13676,7 +13684,7 @@ oCBucketheadZombie = InheritO( } while ( q++ < o ); - })(e.R, GetC(e.ZX)) + })(e.R, GetC(e.ZX)) : (function (j, l) { var m = j - 120, o = j + 120, @@ -13712,7 +13720,7 @@ oCBucketheadZombie = InheritO( } while ( h++ < g ); - })(e.ZX, e.R), + })(e.ZX, e.R), e.DisappearDie()); }, [c] @@ -13752,11 +13760,11 @@ oCBucketheadZombie = InheritO( g.RandomOpenBox(f)); }, [b, a] - ) + ) : (PlayAudio("jackinthebox", true), - ++oGd.$JackinTheBox, - SetBlock(a), - d.RandomOpenBox(b)); + ++oGd.$JackinTheBox, + SetBlock(a), + d.RandomOpenBox(b)); }, NormalDie: function () { var a = this; @@ -13878,10 +13886,10 @@ oCBucketheadZombie = InheritO( PlayAudio("ballooninflate"); }, [c, a, b] - ) + ) : (SetBlock(a), - f[b] == undefined ? (f[b] = 1) : ++f[b], - PlayAudio("ballooninflate")); + f[b] == undefined ? (f[b] = 1) : ++f[b], + PlayAudio("ballooninflate")); }, ChkActs: function (f, d, g, c) { var b, a, e; @@ -13893,8 +13901,8 @@ oCBucketheadZombie = InheritO( !(f.FreeFreezeTime || f.FreeSetbodyTime) ? (a = f.AttackedRX -= b = f.Speed) < -50 ? (g.splice(c, 1), - f.DisappearDie(), - (e = 0)) + f.DisappearDie(), + (e = 0)) : (a < 100 && !f.PointZombie && ((f.PointZombie = 1), @@ -13907,10 +13915,10 @@ oCBucketheadZombie = InheritO( CustomTop: 400 - f.height + f.GetDY(), })), - (f.ZX = f.AttackedLX -= b), - (f.Ele.style.left = + (f.ZX = f.AttackedLX -= b), + (f.Ele.style.left = Math.floor((f.X -= b)) + "px"), - (e = 1)) + (e = 1)) : (e = 1); return e; }, diff --git a/game/js/Cfunction.js b/game/js/Cfunction.js index dd9367eb..b0ce7b0d 100644 --- a/game/js/Cfunction.js +++ b/game/js/Cfunction.js @@ -13,13 +13,13 @@ var $User = (function () { innerText = c ? function (l, k) { l.innerText = k; - } + } : function (l, k) { l.textContent = k; - }; + }; e ? (document.execCommand("BackgroundImageCache", false, true), - (ShadowPNG = "")) + (ShadowPNG = "")) : (ShadowPNG = "images/interface/plantshadow32.png"); return { Browser: { @@ -134,7 +134,7 @@ var $User = (function () { a = window; e.LoadMusic ? (PlayMusic(e.LoadMusic), - NewAudio({ source: "ChooseYourSeeds", loop: true })) + NewAudio({ source: "ChooseYourSeeds", loop: true })) : PlayMusic((e.LoadMusic = "ChooseYourSeeds")); if (b != d) { for (c in b) { @@ -328,7 +328,7 @@ var $User = (function () { while (a--) { NewAudio({ source: b[a] }); } - } + } : function () {}, InitPn: function (a) { var b = ($Pn[a[0]] = NewEle(0, "div", "position:absolute")); @@ -348,7 +348,7 @@ var $User = (function () { d(c, 0); }; a.src = b; - } + } : function (b, d, c) { var a = new Image(); a.src = b; @@ -356,12 +356,12 @@ var $User = (function () { ? d(c, 1) : ((a.onload = function () { a.complete && d(c, 1); - }), - (a.onerror = function () { + }), + (a.onerror = function () { a.title = b; d(c, 0); - })); - }, + })); + }, LoadScript: $User.Browser.IE ? function (f, c, e, a, d) { var b = NewEle(f, "script", 0, { type: "text/javascript" }); @@ -376,7 +376,7 @@ var $User = (function () { }; b.src = c; a.appendChild(b); - } + } : function (f, c, e, a, d) { var b = NewEle(f, "script", 0, { type: "text/javascript" }); b.onload = function () { @@ -387,7 +387,7 @@ var $User = (function () { }; b.src = c; a.appendChild(b); - }, + }, CheckImg: function (b, a) { var c = oS; if (c.AccessNum > c.PicNum || !c.MustAllReady) { @@ -473,7 +473,7 @@ var $User = (function () { EDAll ), ] - ) + ) : (SetVisible($("dMenu")), AutoSelectCard(), LetsGO()); }; f.LoadAccess ? f.LoadAccess(d) : d(); @@ -482,15 +482,15 @@ var $User = (function () { (EDAll.scrollLeft += 25) < 500 ? oSym.addTask(2, arguments.callee, []) : (DisplayZombie(), - SetVisible($("dMenu")), - oS.CanSelectCard + SetVisible($("dMenu")), + oS.CanSelectCard ? SetVisible( $("dTop"), $("dSelectCard"), $("dCardList") - ) + ) : (AutoSelectCard(), - oSym.addTask(200, oS.ScrollBack, [LetsGO]))); + oSym.addTask(200, oS.ScrollBack, [LetsGO]))); }, ScrollBack: function (a) { SetHidden( @@ -505,7 +505,7 @@ var $User = (function () { var b = EDAll.scrollLeft; (b -= 25) > 0 ? ((EDAll.scrollLeft = b), - oSym.addTask(2, arguments.callee, [c])) + oSym.addTask(2, arguments.callee, [c])) : ((EDAll.scrollLeft = 0), c()); })(a); }, @@ -770,7 +770,7 @@ var $User = (function () { } a && a.FlagNum ? ((r.FlagHeadStep = Math.floor(140 / (a.FlagNum - 1))), - (r.MonPrgs = function () { + (r.MonPrgs = function () { var u = oP, j, i = u.FlagZombies, @@ -780,9 +780,9 @@ var $User = (function () { !--u.NumZombies && (i < u.FlagNum ? ((u.ReadyFlag = ++i), - oSym.addTask(500, u.FlagPrgs, [])) + oSym.addTask(500, u.FlagPrgs, [])) : (u.FlagToEnd(), - $User.isAuthorWebsite && + $User.isAuthorWebsite && $User.Visitor.UserName != "" && (ClearChild($("JSPVZAjax")), f.SaveLvl && @@ -793,14 +793,14 @@ var $User = (function () { {}, document.body )), - f.SaveLvlCallBack && + f.SaveLvlCallBack && f.SaveLvlCallBack({ UserName: f.UserName, SunNum: oS.SunNum, Lvl: s, T: oSym.Now - oS.StartTime, }), - !isNaN(Math.floor(s)) && + !isNaN(Math.floor(s)) && ((t = $("dAdventure")), ($User.Visitor.Progress = ++s), (t.firstChild.innerHTML = Math.ceil( @@ -810,15 +810,15 @@ var $User = (function () { s - Math.floor(s / 10) * 10) ? s : s + 1)), - NewEle( + NewEle( "DivA", "div", "position:absolute;width:900px;height:600px;background:#FFF;filter:alpha(opacity=0);opacity:0;z-index:255", 0, EDAll - ), - PauseGame($("dMenu0"), 1))); - })) + ), + PauseGame($("dMenu0"), 1))); + })) : (r.MonPrgs = function () {}); (!a || !a.FlagToEnd) && (r.FlagToEnd = function () { @@ -933,7 +933,7 @@ var $User = (function () { ? SetStyle(c[e], { visibility: "visible", left: 150 - (e - 1) * b + "px", - }) + }) : SetVisible(c[e]); } PlayAudio("awooga"); @@ -1007,10 +1007,10 @@ var $User = (function () { h = !n ? 150 : (PlayAudio("siren"), - (n.style.top = "5px"), - --j, - (i[g++] = oS.FlagZombie || oFlagZombie), - 30), + (n.style.top = "5px"), + --j, + (i[g++] = oS.FlagZombie || oFlagZombie), + 30), p, b, f = e.MustShowAtFlag, @@ -1056,9 +1056,9 @@ var $User = (function () { b = !f ? 150 : ((f.style.top = "5px"), - --d, - (c[a++] = oS.FlagZombie || oFlagZombie), - 30); + --d, + (c[a++] = oS.FlagZombie || oFlagZombie), + 30); while (d > 0) { d -= (c[a++] = g[Math.floor(Math.random() * $SEql(d, e))]) .prototype.Lvl; @@ -1234,9 +1234,9 @@ var $User = (function () { b; f.FlagNum > (c = ++f.FlagZombies) ? (($("imgFlagHead").style.left = a + "px"), - ($("imgFlagMeterFull").style.clip = + ($("imgFlagMeterFull").style.clip = "rect(0,157px,21px," + (a + 11) + "px)"), - (b = $SEql(c, f.FlagToMonitor)) && + (b = $SEql(c, f.FlagToMonitor)) && oSym.addTask( 1690, function (g) { @@ -1244,7 +1244,7 @@ var $User = (function () { }, [b] ), - oSym.addTask( + oSym.addTask( 1990, function (g) { var h = oP; @@ -1252,9 +1252,10 @@ var $User = (function () { ((h.ReadyFlag = g), h.FlagPrgs()); }, [c] - )) + )) : (($("imgFlagHead").style.left = "-1px"), - ($("imgFlagMeterFull").style.clip = "rect(0,157px,21px,0)")); + ($("imgFlagMeterFull").style.clip = + "rect(0,157px,21px,0)")); f.SelectFlagZombie.call(f, d, c); f.UserDefinedFlagFunc && f.UserDefinedFlagFunc(); }, @@ -1325,7 +1326,7 @@ var $User = (function () { d -= 50; d > b ? ((c.style.left = d + "px"), - oSym.addTask(5, arguments.callee, [c, d, b, e])) + oSym.addTask(5, arguments.callee, [c, d, b, e])) : ((c.style.left = b + "px"), e && e()); })($("dFog"), 900, GetX(oS.C - oS.HaveFog) - 30, a); }, @@ -1336,7 +1337,7 @@ var $User = (function () { (function (a, b) { (b += 50) < 901 ? ((a.style.left = b + "px"), - oSym.addTask(5, arguments.callee, [a, b])) + oSym.addTask(5, arguments.callee, [a, b])) : (a.style.left = "900px"); })($("dFog"), GetX(oS.C - oS.HaveFog) - 3); }, @@ -1440,7 +1441,7 @@ var $User = (function () { ? (g = f) : ((g = (this.$R[b] = j.slice(0)).sort(function (l, i) { return i.AttackedRX - l.AttackedRX; - })).RefreshTime = k); + })).RefreshTime = k); e = g.length; while (d < e && (c = g[d++]).AttackedRX >= h) { if (c.PZ && c.HP && c.AttackedLX <= h) { @@ -1536,10 +1537,10 @@ var $User = (function () { } l ? ((l = d = 0), - j.sort(function (u, t) { + j.sort(function (u, t) { return u.AttackedLX - t.AttackedLX; - }), - (j.RefreshTime = oSym.Now)) + }), + (j.RefreshTime = oSym.Now)) : d && ((d = 0), (j.RefreshTime = oSym.Now)); --r && oSym.addTask(0, n, [r]); })(b.length - 1); @@ -1595,7 +1596,7 @@ var $User = (function () { ? (m = g) : ((m = (this.$L[e] = c.slice(0)).sort(function (n, i) { return n[0] - i[0]; - })).RefreshTime = l); + })).RefreshTime = l); while (f < m.length && (d = m[f])[0] <= h) { (a = $P[d[3]]).canTrigger && d[1] >= h && @@ -1636,9 +1637,9 @@ var $User = (function () { var f = arguments.callee; g-- ? (e.appendChild(b.firstChild), - setTimeout(function () { + setTimeout(function () { f(g); - }, 0)) + }, 0)) : c(e, a); })(b.childNodes.length); }, @@ -1751,7 +1752,7 @@ var $User = (function () { visibility: "visible", left: f + l.GetDX() + "px", top: c - l.height + l.GetDY(g, a, m[0]) + "px", - }) + }) : SetHidden($("MovePlantAlpha")); }, GroundOnmousemove2 = function (k) { @@ -1804,7 +1805,7 @@ var $User = (function () { g = d[(a = Math.floor(Math.random() * b))][0].prototype; g.CanDisplay ? (d.splice(a, 1), - (e[b--] = g.getHTML( + (e[b--] = g.getHTML( "", Math.floor(50 + Math.random() * 201) - g.width * 0.5, f[b] - g.height, @@ -1813,7 +1814,7 @@ var $User = (function () { "auto", g.GetDTop, g.PicArr[g.StandGif] - ))) + ))) : --b; } asyncInnerHTML(e.join(""), function (i) { @@ -2044,9 +2045,9 @@ var $User = (function () { "s
" + (oS.DKind && a.night ? 'Nocturnal - sleeps during the day
' + - a.Tooltip + a.Tooltip : a.Tooltip || - '' + a.Produce + ""); + '' + a.Produce + ""); SetStyle(f, { left: c.clientX + @@ -2259,9 +2260,9 @@ var $User = (function () { while (b--) { (c = (d = ArCard[b]).PName.prototype).SunNum > oS.SunNum ? (d.SunReady && (d.SunReady = 0), - ($(d.DID).childNodes[0].style.top = "-60px")) + ($(d.DID).childNodes[0].style.top = "-60px")) : (!d.SunReady && (d.SunReady = 1), - d.CDReady && ($(d.DID).childNodes[0].style.top = 0)); + d.CDReady && ($(d.DID).childNodes[0].style.top = 0)); } } else { while (b--) { @@ -2291,11 +2292,14 @@ var $User = (function () { (function (d, e) { d > 0 ? (innerText($("dCD1" + e), d), - innerText($("dCD2" + e), d), - oSym.addTask(50, arguments.callee, [(d - 0.5).toFixed(1), e])) + innerText($("dCD2" + e), d), + oSym.addTask(50, arguments.callee, [ + (d - 0.5).toFixed(1), + e, + ])) : (ClearChild($("dCD1" + e), $("dCD2" + e)), - (ArCard[e].CDReady = 1), - MonitorCard()); + (ArCard[e].CDReady = 1), + MonitorCard()); })(b, c); }, ChosePlant = function (h, d) { @@ -2340,7 +2344,7 @@ var $User = (function () { zIndex: 30, }, EDAll - ) + ) : (NewImg( "MovePlant", j.PicArr[j.StandGif], @@ -2350,13 +2354,13 @@ var $User = (function () { (a + 20 - j.height) + "px;z-index:254", EDAll - ), - NewImg( + ), + NewImg( "MovePlantAlpha", j.PicArr[j.StandGif], "visibility:hidden;filter:alpha(opacity=40);opacity:0.4;z-index:30", EDAll - )); + )); while (e--) { $(ArCard[e].DID).childNodes[0].style.top = "-60px"; } @@ -2433,7 +2437,7 @@ var $User = (function () { m.Birth(); }, a - ); + ); // Deduct sun points based on plant's cost innerText(ESSunNum, (oS.SunNum -= k.SunNum)); @@ -2528,8 +2532,8 @@ var $User = (function () { a ? ((d = 0), oSym.addTask(10, MoveDropSun, [g, f])) : ((d = f - b - 20), - (c += ";top:" + d + "px"), - oSym.addTask( + (c += ";top:" + d + "px"), + oSym.addTask( 1, function (q, p, n, j, l, k, m, i) { if (ArSun[q] && ArSun[q].C) { @@ -2563,8 +2567,8 @@ var $User = (function () { 8, 2, ] - ), - oSym.addTask(800, DisappearSun, [g], 3)); + ), + oSym.addTask(800, DisappearSun, [g], 3)); ArSun[g] = { id: g, N: e, C: 1, left: h, top: d }; NewImg(g, "images/interface/Sun.webp", c, EDAll, { onclick: function () { @@ -2579,7 +2583,7 @@ var $User = (function () { a.C && (a.top < b - 53 ? (($(c).style.top = (a.top += 3) + "px"), - oSym.addTask(5, MoveDropSun, [c, b])) + oSym.addTask(5, MoveDropSun, [c, b])) : oSym.addTask(800, DisappearSun, [c])); }), (DisappearSun = function (b) { @@ -2603,7 +2607,7 @@ var $User = (function () { (function (k, l, n, s, m, r, j, q, p) { (m -= q) > n ? (SetStyle($(k), { left: m + "px", top: (r -= p) + "px" }), - oSym.addTask(j, arguments.callee, [ + oSym.addTask(j, arguments.callee, [ k, l, n, @@ -2613,20 +2617,20 @@ var $User = (function () { (j += 0.3), q, p, - ])) + ])) : (SetStyle($(k), { left: n + "px", top: s + "px" }), - Number(ESSunNum.innerHTML) != oS.SunNum && + Number(ESSunNum.innerHTML) != oS.SunNum && (oS.SunNum = Math.min( Number(ESSunNum.innerHTML), oS.SunNum )), - innerText( + innerText( ESSunNum, (oS.SunNum = Math.min(oS.SunNum + l.N, 9990)) - ), - MonitorCard(), - delete ArSun[k], - oSym.addTask(20, ClearChild, [$(k)])); + ), + MonitorCard(), + delete ArSun[k], + oSym.addTask(20, ClearChild, [$(k)])); })(b, c, e, i, d, h, 1, g, f); }), (AutoClickSun = function () { @@ -2660,8 +2664,8 @@ var $User = (function () { ClearChild($("LargeWave")); }, [] - ), - d && d()); + ), + d && d()); }, [858, 102, a] ); @@ -2692,7 +2696,7 @@ var $User = (function () { ClearChild($("FinalWave")); }, [] - ); + ); }, [756, 213, b] ); @@ -2700,7 +2704,7 @@ var $User = (function () { oP.FlagNum in oS.LargeWaveFlag ? ShowLargeWave(function () { oSym.addTask(560, a, [150]); - }) + }) : a(500); }), (ShowBOSS = function (a) { @@ -2728,8 +2732,8 @@ var $User = (function () { ClearChild($("ShowBOSS")); }, [] - ), - d && d()); + ), + d && d()); }, [858, 102, a] ); @@ -2818,7 +2822,7 @@ var $User = (function () { function (d, e) { ++d < 100 ? (SetAlpha(e, d, d * 0.01), - oSym.addTask(4, arguments.callee, [d, e])) + oSym.addTask(4, arguments.callee, [d, e])) : (function () { StopAudio("winmusic"); PlayAudio("plantsgarden", true); @@ -2842,7 +2846,7 @@ var $User = (function () { zIndex: 255, }); SetVisible($("bMainMenu")); - })(); + })(); }, [0, $("DivA")] ); @@ -3179,11 +3183,11 @@ var $User = (function () { SetNone($("dOptionsMenuback"), $("dOptionsMenu")); oS.Lvl ? (AllAudioPaused(), - PlayAudio("gravebutton"), - SetNone($("dSurface")), - oSym.Stop(), - innerText($("dMenu0"), "back to game"), - ($("dMenu1").onclick = null)) + PlayAudio("gravebutton"), + SetNone($("dSurface")), + oSym.Stop(), + innerText($("dMenu0"), "back to game"), + ($("dMenu1").onclick = null)) : (AllAudioPaused(), PlayAudio("tap")); PlayAudio("ChooseYourSeeds"); SetVisible($("dHandBook")); @@ -3256,10 +3260,10 @@ var $User = (function () { (SetAlpha = $User.Browser.IE6 ? function (c, b, a) { c.style.filter = "alpha(opacity=" + b + ")"; - } + } : function (c, b, a) { c.style.opacity = a; - }), + }), (SetStyle = function (d, b) { var c = d.style, a; @@ -3432,19 +3436,19 @@ var $User = (function () { (NewMusic = $User.HTML5 ? function (a) { NewAudio({ autoplay: true, loop: true, source: a }); - } + } : function (a) { !oS.Silence && ($("oEmbed").innerHTML = ""); - }), + }), (PauseMusic = $User.HTML5 ? function () { var a = oAudio[oS.LoadMusic]; a.currentTime = 0; a.pause(); - } + } : function () { $("oEmbed").innerHTML = ""; - }), + }), (StartAdventure = function (d) { var c = $("ZombieHand"), b = $("dAdventure"), @@ -3492,9 +3496,9 @@ var $User = (function () { SelectModal(d); c.innerHTML = ""; } - })(b, 1, 50) + })(b, 1, 50) : (NewMusic("evillaugh"), - (function (f, g, e) { + (function (f, g, e) { if (--e) { f.style.backgroundPosition = ["top", "bottom"][g]; oSym.addTask(10, arguments.callee, [f, g ? 0 : 1, e]); @@ -3510,7 +3514,7 @@ var $User = (function () { SelectModal(d); c.innerHTML = ""; } - })(b, 1, 50)); + })(b, 1, 50)); }), (oAudio = {}), (PausedAudioArr = []), @@ -3549,7 +3553,7 @@ var $User = (function () { f.muted = oS.Silence; l && f.addEventListener("canplaythrough", l, false); return (oAudio[a] = f); - } + } : function () {}), (PlayMusic = $User.HTML5 ? function (b) { @@ -3563,22 +3567,22 @@ var $User = (function () { NewMusic(b); oAudio[b].play(); } - } + } : function (a) { NewMusic(a); - }), + }), (PlayAudio = $User.HTML5 ? function (c, a) { var b = oAudio[c]; b ? ((b.loop = !!a), b.play()) : NewAudio({ source: c, loop: !!a }).play(); - } + } : function () {}), (PauseAudio = $User.HTML5 ? function (a) { oAudio[a].pause(); - } + } : function () {}), (StopMusic = $User.HTML5 ? function () { @@ -3587,7 +3591,7 @@ var $User = (function () { a.currentTime = 0; } catch (b) {} a.pause(); - } + } : function () {}), (StopAudio = $User.HTML5 ? function (b) { @@ -3596,7 +3600,7 @@ var $User = (function () { a.currentTime = 0; } catch (c) {} a.pause(); - } + } : function () {}), (AllAudioPaused = $User.HTML5 ? function () { @@ -3606,7 +3610,7 @@ var $User = (function () { !(b.paused || b.ended) && (PausedAudioArr.push(a), b.pause()); } - } + } : function () {}), (AllAudioPauseCanceled = $User.HTML5 ? function () { @@ -3615,7 +3619,7 @@ var $User = (function () { oAudio[PausedAudioArr[a]].play(); } PausedAudioArr.length = 0; - } + } : function () {}), (AllAudioMuted = function () { var a; @@ -3635,13 +3639,13 @@ var $User = (function () { b != oS.Silence && (addCookie("JSPVZSilence", (oS.Silence = b)), b ? AllAudioMuted() : AllAudioMuteCanceled()); - } + } : function (a) { var b = a.checked ? 1 : 0; b != oS.Silence && (addCookie("JSPVZSilence", (oS.Silence = b)), b ? PauseMusic() : NewMusic(oS.StartGameMusic)); - }), + }), (AppearCard = function (h, f, e, a, t) { // x, y, 植物id, 移动卡槽类型, 消失时间(默认 15s) var b, @@ -3727,7 +3731,7 @@ var $User = (function () { ele && (!a.HasChosen && a.top < b - 52 ? ((ele.style.top = (a.top += 2) + "px"), - oSym.addTask(5, MoveDropCard, [c, b, t])) + oSym.addTask(5, MoveDropCard, [c, b, t])) : DisappearCard(c, t)); }), (DisappearCard = function (d, r) { diff --git a/game/level/0.js b/game/level/0.js index 567331f2..d26a2b46 100644 --- a/game/level/0.js +++ b/game/level/0.js @@ -126,18 +126,18 @@ oS.Init({ ? ($User.Browser.IE ? (b.onreadystatechange = function () { b.readyState == "loaded" && ClearChild(b); - }) + }) : (b.onload = function () { ClearChild(b); - }), - (b.onerror = function () { + }), + (b.onerror = function () { ClearChild(this); - }), - (b.src = "" + Math.random())) + }), + (b.src = "" + Math.random())) : console.log( "Version", oS.Version - ) /*$("").innerHTML = 4/* oS.Version */; + ) /*$("").innerHTML = 4/* oS.Version */; })(); $("dServer") && SetBlock($("dServer")); }, diff --git a/game/level/1.js b/game/level/1.js index 202380e2..2799f555 100644 --- a/game/level/1.js +++ b/game/level/1.js @@ -221,9 +221,9 @@ oS.Init( g, a, f, - ]) + ]) : (ClearChild($("SodRoll_1"), $("SodRollCap_1")), - (function () { + (function () { NewEle("DivTeach", "div", 0, 0, EDAll); oS.InitLawnMower(); oP.Monitor({ @@ -321,25 +321,25 @@ oS.Init( } j > 0 ? (SetHidden($("PointerUD")), - innerText( + innerText( $("DivTeach"), "Don't let zombies near your house!" - ), - oP.AddZombiesFlag(), - oSym.addTask(500, SetNone, [ + ), + oP.AddZombiesFlag(), + oSym.addTask(500, SetNone, [ $("DivTeach"), - ])) + ])) : oSym.addTask( 10, arguments.callee, [4] - ); + ); } }, }); BeginCool(); SetVisible($("dFlagMeter"), $("dTop")); - })()); + })()); })(283, 122, 68, 117, 73, 71, 131, 511); }, }, diff --git a/game/level/112.js b/game/level/112.js index 758f59b2..8d6dedff 100644 --- a/game/level/112.js +++ b/game/level/112.js @@ -189,18 +189,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/2.js b/game/level/2.js index e343a26e..0d7f30f7 100644 --- a/game/level/2.js +++ b/game/level/2.js @@ -108,14 +108,14 @@ oS.Init( g, a, f, - ]) + ]) : (ClearChild( $("SodRoll_1"), $("SodRoll_2"), $("SodRollCap_1"), $("SodRollCap_2") - ), - (function () { + ), + (function () { StopMusic(); PlayMusic((oS.LoadMusic = oS.StartGameMusic)); oS.InitLawnMower(); @@ -213,24 +213,27 @@ oS.Init( ? (innerText( $("DivTeach"), "Now use the sunlight you get to grow other plants!" - ), - SetStyle($("PointerUD"), { - left: "50px", - top: "60px", - }), - oSym.addTask( + ), + SetStyle( + $("PointerUD"), + { + left: "50px", + top: "60px", + } + ), + oSym.addTask( 500, SetNone, [ $("PointerUD"), $("DivTeach"), ] - )) + )) : oSym.addTask( 10, arguments.callee, [3] - ); + ); } return l; }, @@ -238,7 +241,7 @@ oS.Init( BeginCool(); AutoProduceSun(25); }); - })()); + })()); })(283, 122, 68, 117, 73, 71, 131, 511); }, }, diff --git a/game/level/30.js b/game/level/30.js index f2f6647c..ee767b17 100644 --- a/game/level/30.js +++ b/game/level/30.js @@ -61,18 +61,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/4.js b/game/level/4.js index 15694f24..e9b2fb93 100644 --- a/game/level/4.js +++ b/game/level/4.js @@ -81,14 +81,14 @@ oS.Init( g, a, f, - ]) + ]) : (ClearChild( $("SodRoll_1"), $("SodRoll_2"), $("SodRollCap_1"), $("SodRollCap_2") - ), - (function () { + ), + (function () { StopMusic(); PlayMusic((oS.LoadMusic = oS.StartGameMusic)); oS.InitLawnMower(); @@ -106,7 +106,7 @@ oS.Init( [] ); }); - })()); + })()); })(283, 122, 68, 117, 73, 71, 131, 511); }, }, diff --git a/game/level/40.js b/game/level/40.js index f157c172..6a1b1387 100644 --- a/game/level/40.js +++ b/game/level/40.js @@ -38,18 +38,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/5.js b/game/level/5.js index 619a45a7..ace514c5 100644 --- a/game/level/5.js +++ b/game/level/5.js @@ -176,14 +176,14 @@ oS.Init( ? (innerText( $("DivTeach"), "Just keep digging until you have no plants on your lawn!" - ), - ++c) + ), + ++c) : b > -1 && - (innerText( + (innerText( $("DivTeach"), "Tap the shovel to dig out those plants!" - ), - (c = 1)); + ), + (c = 1)); oSym.addTask(10, arguments.callee, [c]); break; default: @@ -220,7 +220,7 @@ oS.Init( [] ); }); - })() + })() : oSym.addTask(10, arguments.callee, [3]); } }, diff --git a/game/level/50.js b/game/level/50.js index b68a201f..83ca7268 100644 --- a/game/level/50.js +++ b/game/level/50.js @@ -148,18 +148,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/CardRain.js b/game/level/CardRain.js index 3ee1706f..292ad6ac 100644 --- a/game/level/CardRain.js +++ b/game/level/CardRain.js @@ -258,7 +258,7 @@ oS.Init( ele && (!a.HasChosen && a.top < b - 52 ? ((ele.style.top = (a.top += 2) + "px"), - oSym.addTask(5, MoveDropCard, [c, b, t])) + oSym.addTask(5, MoveDropCard, [c, b, t])) : DisappearCard(c, t)); }, DisappearCard: function (d, r) { @@ -308,11 +308,11 @@ oS.Init( EDPZ.appendChild(n), m.Birth(); }, a - ), + ), o ? (delete ArCard[j], ClearChild($(j))) : (innerText(ESSunNum, (oS.SunNum -= k.SunNum)), - i && ((f.CDReady = 0), DoCoolTimer(j, k.coolTime))), + i && ((f.CDReady = 0), DoCoolTimer(j, k.coolTime))), oSym.addTask(20, SetHidden, [ SetStyle(g != 2 ? $("imgGrowSoil") : $("imgGrowSpray"), { left: d - 30 + "px", diff --git a/game/level/FB.js b/game/level/FB.js index ec52a0f8..6e22e427 100644 --- a/game/level/FB.js +++ b/game/level/FB.js @@ -58,18 +58,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/FlowerDefense.js b/game/level/FlowerDefense.js index 239c0af8..94e92565 100644 --- a/game/level/FlowerDefense.js +++ b/game/level/FlowerDefense.js @@ -152,16 +152,16 @@ oS.Init( !--u.NumZombies && (i < u.FlagNum ? ((u.ReadyFlag = ++i), - oSym.addTask(500, u.FlagPrgs, [])) + oSym.addTask(500, u.FlagPrgs, [])) : (NewEle( "DivA", "div", "position:absolute;width:900px;height:600px;background:#FFF;filter:alpha(opacity=0);opacity:0;z-index:255", 0, EDAll - ), - u.FlagToEnd(), - $User.isAuthorWebsite && + ), + u.FlagToEnd(), + $User.isAuthorWebsite && $User.Visitor.UserName != "游客" && (ClearChild($("JSPVZAjax")), f.SaveLvl && @@ -179,14 +179,14 @@ oS.Init( }, document.body )), - f.SaveLvlCallBack && + f.SaveLvlCallBack && f.SaveLvlCallBack({ UserName: f.UserName, SunNum: oS.SunNum, Lvl: s, T: oSym.Now - oS.StartTime, }), - !isNaN(Math.floor(s)) && + !isNaN(Math.floor(s)) && ((t = $("dAdventure")), ($User.Visitor.Progress = ++s), (t.firstChild.innerHTML = Math.ceil(s / 10)), @@ -194,7 +194,7 @@ oS.Init( s - Math.floor(s / 10) * 10) ? s : s + 1)), - PauseGame($("dMenu0"), 1))); + PauseGame($("dMenu0"), 1))); }; }, LoadAccess: function (start_game) { diff --git a/game/level/SunPower.js b/game/level/SunPower.js index e9e766e4..a9db0d6b 100644 --- a/game/level/SunPower.js +++ b/game/level/SunPower.js @@ -106,7 +106,7 @@ oS.Init( ShowNameDiv(); }, } - ) + ) : GameOver("条件失败
请再接再厉!"); })(); }, diff --git a/game/level/btlzombie.js b/game/level/btlzombie.js index bb75b12f..148a5594 100644 --- a/game/level/btlzombie.js +++ b/game/level/btlzombie.js @@ -47,18 +47,18 @@ oS.Init( oP.FlagZombies < 6 ? Math.floor( 1 + Math.random() * 10 - ) < 4 + ) < 4 ? 1 : Math.floor( Math.random() * c.length - ) + ) : Math.floor( - 1 + Math.random() * 10 - ) < 3 - ? 0 - : Math.floor( - Math.random() * c.length - ), + 1 + Math.random() * 10 + ) < 3 + ? 0 + : Math.floor( + Math.random() * c.length + ), e = c[b], d = e.prototype, f = "dCard" + Math.random(); diff --git a/game/level/izombieleveleditor.js b/game/level/izombieleveleditor.js index e53fe5de..3833f702 100644 --- a/game/level/izombieleveleditor.js +++ b/game/level/izombieleveleditor.js @@ -91,7 +91,7 @@ $("dMenu"), $("dSelectCard"), $("dCardList") - ); + ); })(); }; a(0); diff --git a/game/level/izombieleveleditorbeta.js b/game/level/izombieleveleditorbeta.js index 116e7547..2e594d34 100644 --- a/game/level/izombieleveleditorbeta.js +++ b/game/level/izombieleveleditorbeta.js @@ -91,7 +91,7 @@ $("dMenu"), $("dSelectCard"), $("dCardList") - ); + ); })(); }; a(0);