Frame 1
fscommand ("trapallkeys", "true");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 3
loading = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
perc = loading + "%";
if (loading >= 100) {
play();
} else {
gotoAndPlay (2);
}
Frame 53
function checkButtons() {
var _local3 = 1;
while (_local3 <= 4) {
var _local2 = this["b" + _local3];
if (_local2.hitTest(_xmouse, _ymouse, true)) {
_local2.nextFrame();
} else {
_local2.prevFrame();
}
_local3++;
}
}
fufu.onEnterFrame = function () {
_root.checkButtons();
};
stop();
Instance of Symbol 474 MovieClip "b1" in Frame 53
on (press) {
_root.loadOnStart = false;
_root.gotoAndStop("game");
}
Instance of Symbol 477 MovieClip "b2" in Frame 53
on (press) {
_root.loadOnStart = true;
_root.gotoAndStop("game");
}
Instance of Symbol 480 MovieClip "b4" in Frame 53
on (press) {
stopAllSounds();
_root.gotoAndStop("credits");
}
Frame 54
function cleanup() {
for (var _local1 in w) {
w[_local1].removeMovieClip();
}
for (var _local1 in w1) {
w1[_local1].removeMovieClip();
}
for (var _local1 in o) {
o[_local1].removeMovieClip();
}
for (var _local1 in f) {
f[_local1].removeMovieClip();
}
for (var _local1 in e) {
e[_local1].removeMovieClip();
}
for (var _local1 in p) {
p[_local1].removeMovieClip();
}
for (var _local1 in h) {
h[_local1].removeMovieClip();
}
resetVariables();
}
function resetVariables() {
m.paralysed = false;
m.xPos = m._x;
m.yPos = m._y;
actualBullet = 0;
actualParticle = 0;
alreadySpawned = 0;
backGround.gotoAndStop(this["params" + level].bg);
doorArray = [];
enemiesOnScreen = 0;
maxEnemy = 0;
shopOpen = false;
TABshop._visible = false;
tier = this["params" + level].tier;
}
function buildWorld() {
var _local4 = 0;
while (_local4 < 12) {
var _local3 = 0;
while (_local3 < 18) {
var _local5 = (("w" + _local4) + "_") + _local3;
levl = "level" + level;
if ((((_root[levl][_local4][_local3] % 3) == 0) && (_root[levl][_local4][_local3] > 2)) && (_root[levl][_local4][_local3] < 17)) {
var _local2 = w1.attachMovie("tile", _local5, w1.getNextHighestDepth());
} else {
var _local2 = w.attachMovie("tile", _local5, w.getNextHighestDepth());
}
_local2._x = (_local3 * 40) + 20;
_local2._y = (_local4 * 40) + 20;
_local2.ro = _local4;
_local2.pi = _local3;
_local2.gotoAndStop(_root[levl][_local4][_local3]);
_local2.inside.gotoAndStop(((_local3 % 2) + 1) + ((_local4 % 2) * 2));
if (_local2._currentframe >= 17) {
doorArray.push(_local2);
_local2.e = false;
} else {
_local2.e = true;
}
if (_local2._currentframe == 1) {
_local2.removeMovieClip();
}
_local3++;
}
_local4++;
}
setEdges(w, false);
setEdges(w1, true);
}
function buildObjects() {
var _local4 = 0;
while (_local4 < 12) {
var _local3 = 0;
while (_local3 < 18) {
var _local7 = (("o" + _local4) + "_") + _local3;
var _local6 = "objects" + level;
var _local2 = o.attachMovie("object", _local7, o.getNextHighestDepth());
_local2._x = (_local3 * 40) + 20;
_local2._y = (_local4 * 40) + 20;
_local2.ro = _local4;
_local2.pi = _local3;
_local2.gotoAndStop(_root[_local6][_local4][_local3]);
if (_local2._currentframe == 1) {
_local2.removeMovieClip();
} else if (((_local2._currentframe >= 4) && (_local2._currentframe <= 8)) || (_local2._currentframe == 47)) {
namef = (("o" + _local4) + "_") + _local3;
var _local5 = f.attachMovie("object", namef, f.getNextHighestDepth());
_local5._x = _local2._x;
_local5._y = _local2._y;
_local5.gotoAndStop(_local2._currentframe);
_local2._alpha = 0;
}
_local3++;
}
_local4++;
}
}
function buildEnemies() {
var _local3 = 0;
while (_local3 < 12) {
var _local2 = 0;
while (_local2 < 18) {
if ((this["enemies" + level][_local3][_local2] > 1) && (!this["deadBoss" + level])) {
createEnemy((_local2 * 40) + 20, (_local3 * 40) + 20, this["enemies" + level][_local3][_local2] - 2);
}
_local2++;
}
_local3++;
}
}
function setEdges(n_, both_) {
for (var _local3 in n_) {
n = n_[_local3];
n.t.prevFrame();
n.l.prevFrame();
n.r.prevFrame();
n.b.prevFrame();
n.tl.nextFrame();
n.tr.nextFrame();
n.bl.nextFrame();
n.br.nextFrame();
if ((((n._y - 40) < 0) || (w[position("w", n._x, n._y - 40)].e)) || (both_ && (w1[position("w", n._x, n._y - 40)].e))) {
n.t.gotoAndStop(2);
if (n_ == w) {
if ((((n._y - 40) > 0) && (w[position("w", n._x - 40, n._y)].e)) && (!w[position("w", n._x - 40, n._y - 40)].e)) {
n.tl.prevFrame();
}
if ((((n._y - 40) > 0) && (w[position("w", n._x + 40, n._y)].e)) && (!w[position("w", n._x + 40, n._y - 40)].e)) {
n.tr.prevFrame();
}
}
if (n_ == w1) {
if ((((n._y - 40) > 0) && (w[position("w", n._x - 40, n._y)].e)) && (!w[position("w", n._x - 40, n._y - 40)].e)) {
n.tl.prevFrame();
}
if ((((n._y - 40) > 0) && (w[position("w", n._x + 40, n._y)].e)) && (!w[position("w", n._x + 40, n._y - 40)].e)) {
n.tr.prevFrame();
}
}
}
if ((((n._x + 40) > 720) || (w[position("w", n._x + 40, n._y)].e)) || (both_ && (w1[position("w", n._x + 40, n._y)].e))) {
n.r.gotoAndStop(2);
}
if ((((n._y + 40) > 480) || (w[position("w", n._x, n._y + 40)].e)) || (both_ && (w1[position("w", n._x, n._y + 40)].e))) {
n.b.gotoAndStop(2);
if (n_ == w) {
if ((((n._y + 40) < 480) && (w[position("w", n._x - 40, n._y)].e)) && (!w[position("w", n._x - 40, n._y + 40)].e)) {
n.bl.prevFrame();
}
if ((((n._y + 40) < 480) && (w[position("w", n._x + 40, n._y)].e)) && (!w[position("w", n._x + 40, n._y + 40)].e)) {
n.br.prevFrame();
}
}
}
if ((((n._x - 40) < 0) || (w[position("w", n._x - 40, n._y)].e)) || (both_ && (w1[position("w", n._x - 40, n._y)].e))) {
n.l.gotoAndStop(2);
}
}
}
function removeTile(n_) {
if (n_._parent._name == "w") {
this["level" + level][Math.floor(n_._y / 40)][Math.floor(n_._x / 40)] = 1;
var _local3 = ["level" + level, n_.ro, n_.pi];
n_.removeMovieClip();
setEdges(w, false);
setEdges(w1, true);
} else if (n_._parent._name == "o") {
this["objects" + level][Math.floor(n_._y / 40)][Math.floor(n_._x / 40)] = 1;
var _local3 = ["objects" + level, n_.ro, n_.pi];
}
m.changesArray.push(_local3);
}
function HUDupdate() {
ammoTab.inside.HUDa9mm = m.a9mm;
ammoTab.inside.HUDa45ACP = m.a45ACP;
ammoTab.inside.HUDa57mm = m.a57mm;
ammoTab.inside.HUDa50AE = m.a50AE;
ammoTab.inside.HUDa12Gauge = m.a12Gauge;
ammoTab.inside.HUDa762mm = m.a762mm;
ammoTab.inside.HUDa545mm = m.a545mm;
ammoTab.inside.HUDa50BMG = m.a50BMG;
ammoTab.inside.HUDa40mm = m.a40mm;
ammoTab.inside.HUDaRockets = m.aRockets;
if (m.magazine[m.weapon] == Number.POSITIVE_INFINITY) {
HUDmagazine = "N/A";
} else {
HUDmagazine = (m.magazine[m.weapon] + "-") + m[wepsArray[m.weapon][1]];
}
HUDhealth = (m.health + "/") + m.healthMax;
HUDgems = m.gems;
HUDgold = m.gold;
HUDdynamites = m.dynamites;
HUDkeys0 = m.keys0;
HUDkeys1 = m.keys1;
HUDkeys2 = m.keys2;
HUDweapon = wepsArray[m.weapon][0];
HUDexp = (((("EXP " + m.experience) + "/") + m.levelNext) + " Level ") + m.level;
expbar._xscale = ((m.experience - m.levelLast) / (m.levelNext - m.levelLast)) * 100;
}
function movement() {
if (m.water) {
if (Key.isDown(37) || (Key.isDown(65))) {
m._xscale = -100;
m.xMov = m.xMov - (acceleration / 3);
m.gotoAndStop(2);
} else if (Key.isDown(39) || (Key.isDown(68))) {
m._xscale = 100;
m.xMov = m.xMov + (acceleration / 3);
m.gotoAndStop(2);
} else {
m.xMov = m.xMov * decay;
m.gotoAndStop(1);
}
if ((Key.isDown(32) || (Key.isDown(16))) && (m.jumping || (m.readyToJump && (m.groundDetect)))) {
jump(m);
}
} else if (m.ladder) {
if (Key.isDown(38) || (Key.isDown(87))) {
if ((o[position("o", m.xPos, m.yPos - ladderSpeed)].fn == "objLadder") || (m.yPos < 30)) {
m.yMov = m.yMov - ladderSpeed;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
m.yMov = m.yMov + ladderSpeed;
}
if (Key.isDown(37) || (Key.isDown(65))) {
m._xscale = -100;
m.xMov = m.xMov - ladderSpeed;
m.gotoAndStop(2);
} else if (Key.isDown(39) || (Key.isDown(68))) {
m._xscale = 100;
m.xMov = m.xMov + ladderSpeed;
m.gotoAndStop(2);
} else {
m.gotoAndStop(1);
m.xMov = 0;
}
if ((Key.isDown(32) || (Key.isDown(16))) && (m.readyToJump)) {
jump(m);
m.ladder = false;
}
} else if (m.groundDetect) {
if (Key.isDown(37) || (Key.isDown(65))) {
m._xscale = -100;
m.xMov = m.xMov - acceleration;
m.gotoAndStop(2);
} else if (Key.isDown(39) || (Key.isDown(68))) {
m._xscale = 100;
m.xMov = m.xMov + acceleration;
m.gotoAndStop(2);
} else {
m.xMov = m.xMov * decay;
m.gotoAndStop(1);
}
if ((Key.isDown(32) || (Key.isDown(16))) && (m.readyToJump)) {
jump(m);
}
} else {
m.gotoAndStop(3);
if (Key.isDown(37) || (Key.isDown(65))) {
m._xscale = -100;
m.xMov = m.xMov - airAcceleration;
} else if (Key.isDown(39) || (Key.isDown(68))) {
m._xscale = 100;
m.xMov = m.xMov + airAcceleration;
} else {
m.xMov = m.xMov * airDecay;
}
if (((Key.isDown(32) || (Key.isDown(16))) && (m.jumping)) && (!m.readyToJump)) {
jump(m);
}
}
if (!(Key.isDown(32) || (Key.isDown(16)))) {
m.jumping = false;
m.readyToJump = true;
}
if (Math.abs(m.xMov) < 0.2) {
m.xMov = 0;
}
if (m.water) {
if (m.xMov > (maxSpeed / 3)) {
m.xMov = maxSpeed / 3;
}
if (m.xMov < ((-maxSpeed) / 3)) {
m.xMov = (-maxSpeed) / 3;
}
} else {
if (m.xMov > maxSpeed) {
m.xMov = maxSpeed;
}
if (m.xMov < (-maxSpeed)) {
m.xMov = -maxSpeed;
}
}
if (!backGround.hitTest(m._x, m._y, false)) {
if (m._x >= 720) {
if ((level % 10) < 9) {
level++;
m._x = 10;
m._y = ((Math.floor(m._y / 40) * 40) + 40) - (m.height / 2);
} else {
m._x = m._x - 10;
m.xMov = 0;
}
} else if (m._x <= 0) {
if ((level % 10) > 0) {
level--;
m._x = 710;
m._y = ((Math.floor(m._y / 40) * 40) + 40) - (m.height / 2);
} else {
m._x = m._x + 10;
m.xMov = 0;
}
} else if (m._y >= 480) {
level = level + 10;
m._y = 10;
m._x = (Math.floor(m._x / 40) * 40) + 20;
} else if (m._y <= 0) {
level = level - 10;
m._y = 470;
m._x = (Math.floor(m._x / 40) * 40) + 20;
}
cleanup();
buildWorld();
buildObjects();
buildEnemies();
}
}
function jump(n_) {
n_.yMov = jumpInitSpeed;
n_.jumpDuration++;
n_.readyToJump = false;
n_.jumping = true;
if (n_.jumpDuration >= jumpDurationMax) {
n_.jumping = false;
n_.jumpDuration = 0;
}
}
function gravity() {
if (!m.ladder) {
m.yMov = m.yMov + gravityAcceleration;
}
if (m.water) {
if (m.yMov > (maxFallSpeed / 2)) {
m.yMov = maxFallSpeed / 2;
}
} else if (m.yMov > maxFallSpeed) {
m.yMov = maxFallSpeed;
}
}
function updatePosition(n_) {
n_.xPos = n_.xPos + n_.xMov;
n_.yPos = n_.yPos + n_.yMov;
}
function wallCollision(n_) {
if (w[position("w", n_.xPos - n_.wide, (n_.yPos + n_.tall) - 2)] || (w[position("w", n_.xPos - n_.wide, (n_.yPos - n_.tall) + 2)])) {
n_.xPos = n_.xPos - n_.xMov;
n_.xMov = 0;
}
if (w[position("w", n_.xPos + n_.wide, (n_.yPos + n_.tall) - 2)] || (w[position("w", n_.xPos + n_.wide, (n_.yPos - n_.tall) + 2)])) {
n_.xPos = n_.xPos - n_.xMov;
n_.xMov = 0;
}
if (w[position("w", n_.xPos - n_.wide, n_.yPos - n_.tall)] || (w[position("w", n_.xPos + n_.wide, n_.yPos - n_.tall)])) {
n_.yPos = (Math.ceil((n_.yPos - n_.tall) / 40) * 40) + n_.tall;
n_.yMov = 0;
n_.jumping = false;
}
if (w[position("w", n_.xPos - n_.wide, (n_.yPos + n_.tall) + 1)] || (w[position("w", n_.xPos + n_.wide, (n_.yPos + n_.tall) + 1)])) {
n_.yPos = ((Math.floor(((n_.yPos + n_.tall) + 1) / 40) * 40) - n_.tall) - 1;
n_.yMov = 0;
n_.groundDetect = true;
n_.jumpDuration = 0;
} else {
n_.groundDetect = false;
}
}
function render(n_) {
n_._x = Math.round(n_.xPos);
n_._y = Math.round(n_.yPos);
}
function objectCollision(n_) {
oname = position("o", n_._x, n_._y);
if (o[oname]) {
this[o[oname].fn].apply(null, o[oname].para);
if (o[oname].fn != "objLadder") {
n_.ladder = false;
}
if ((o[oname]._currentframe < 4) || (o[oname]._currentframe > 6)) {
n_.water = false;
}
} else {
n_.ladder = false;
n_.water = false;
}
}
function damage(num_, sound_) {
if ((gameTime - m.lastDamage) > 15) {
if ((num_ > 0) && (m.bonArmor > 1)) {
num_ = Math.round(num_ / m.bonArmor);
}
m.lastDamage = gameTime;
m.health = m.health - num_;
if (m.health > m.healthMax) {
m.health = m.healthMax;
}
playSound(sound_);
HUDupdate();
if (num_ > 0) {
if (m.health <= 0) {
playerDeath();
} else {
setParticle("blood_dust", m._x, m._y, 0);
setParticle("blood_crack", m._x, m._y, random(360));
setLabel("label_red", m._x, m._y - m.tall, num_);
}
} else {
var _local2 = num_ - (num_ * 2);
setLabel("label_blue", m._x, m._y - m.tall, "+" + _local2);
}
}
}
function playerDeath() {
playSound("death");
playSound("deathcrack");
var _local2 = 0;
while (_local2 < 3) {
var _local1 = 0;
while (_local1 < 3) {
setParticle("blood_spot", m._x, m._y, random(360), true);
_local1++;
}
setParticle("blood_dust", m._x, m._y, 0, false);
setParticle("blood_crack", m._x, m._y, random(360), false);
_local2++;
}
setParticle("bone_player_head", m._x, m._y, random(360), true, 0, -4);
setParticle("bone_player_arm", m._x, m._y, random(360), true, 0, -4);
setParticle("bone_player_arm", m._x, m._y, random(360), true, 0, -4);
setParticle("bone_player_leg", m._x, m._y, random(360), true, 0, -4);
setParticle("bone_player_leg", m._x, m._y, random(360), true, 0, -4);
m._visible = false;
deathMessage.gotoAndPlay(2);
}
function aim(n_) {
if (n_._xscale > 0) {
var _local2 = radToDeg(Math.atan2((_ymouse - n_._y) - n_.h.s._x, Math.abs(_xmouse - n_._x))) + 90;
if ((_local2 < minAimAngle) || (_local2 > maxAimAngle)) {
if (_ymouse < n_._y) {
_local2 = minAimAngle;
} else {
_local2 = maxAimAngle;
}
}
angle = ((3 * angle) + _local2) / 4;
if ((angle < maxAimAngle) && (angle > minAimAngle)) {
n_.h._rotation = angle;
n_.head._rotation = angle;
}
n_.angle = degToRad(n_.h._rotation - 90);
} else {
var _local2 = radToDeg(Math.atan2((_ymouse - n_._y) - n_.h.s._x, Math.abs(_xmouse - n_._x))) + 90;
if ((_local2 < minAimAngle) || (_local2 > maxAimAngle)) {
if (_ymouse < n_._y) {
_local2 = minAimAngle;
} else {
_local2 = maxAimAngle;
}
}
angle = ((3 * angle) + _local2) / 4;
n_.h._rotation = angle;
n_.head._rotation = angle;
n_.angle = -3.14159265358979 - degToRad(n_.h._rotation - 90);
}
coordS = {x:n_.h.s._x, y:n_.h.s._y};
n_.h.localToGlobal(coordS);
if (n_.bonLaser) {
laserSight(n_);
}
}
function laserSight(n_) {
p.laser.removeMovieClip();
var _local2 = coordS.x;
var _local1 = coordS.y;
p.createEmptyMovieClip("laser", p.getNextHighestDepth());
p.laser.lineStyle(1, 16711680, 50);
p.laser.moveTo(_local2, _local1);
while ((!w[position("w", _local2, _local1)]) && (backGround.hitTest(_local2, _local1, false))) {
_local2 = _local2 + (20 * Math.cos(n_.angle));
_local1 = _local1 + (20 * Math.sin(n_.angle));
}
p.laser.lineTo(_local2, _local1);
}
function shoot(n_, damageMultiplier_) {
if (!n_.reloading) {
if (n_.magazine[n_.weapon] >= wepsArray[n_.weapon][7]) {
m.toShoot = 0;
coordB = {x:n_.h.b._x, y:n_.h.b._y};
n_.h.localToGlobal(coordB);
var _local4 = 0;
while (_local4 < wepsArray[n_.weapon][3]) {
var _local1 = p.attachMovie(wepsArray[n_.weapon][6], "b" + actualBullet, p.getNextHighestDepth());
actualBullet++;
_local1.xPos = coordS.x;
_local1.yPos = coordS.y;
_local1._x = _local1.xPos;
_local1._y = _local1.yPos;
var _local3 = (random(wepsArray[n_.weapon][4] * 10) - (wepsArray[n_.weapon][4] * 5)) / 10;
_local3 = _local3 * degToRad(n_.bonScatter);
_local1.angle = n_.angle + _local3;
_local1._rotation = radToDeg(_local1.angle);
_local1.xMov = 6 * Math.cos(_local1.angle);
_local1.yMov = 6 * Math.sin(_local1.angle);
_local1.power = Math.round(((wepsArray[n_.weapon][2] * damageMultiplier_) - ((wepsArray[n_.weapon][2] * damageMultiplier_) / 4)) + random(((wepsArray[n_.weapon][2] * damageMultiplier_) + 1) / 2));
_local1.flyThru = wepsArray[n_.weapon][10];
_local1.projectile = wepsArray[n_.weapon][6];
_local1.cycles = wepsArray[n_.weapon][8];
_local1.gravity = wepsArray[n_.weapon][17];
_local1.lastHit = "";
fly(_local1);
_local4++;
}
if (n_.weapon != 0) {
setParticle("dust", coordS.x, coordS.y, 0);
setParticle("p_fire", coordS.x, coordS.y, _local1._rotation);
}
setParticle(wepsArray[n_.weapon][9], coordB.x, coordB.y, 0, true, 0, -3);
n_.magazine[n_.weapon] = n_.magazine[n_.weapon] - wepsArray[n_.weapon][7];
HUDupdate();
playSound(wepsArray[n_.weapon][0]);
if (n_.magazine[n_.weapon] < wepsArray[n_.weapon][7]) {
playSound("empty");
}
} else {
startReloading(n_);
}
}
}
function fly(n_) {
cycles_ = Math.round((n_.cycles * (75 + random(51))) / 100);
var _local4 = 0;
while (_local4 < cycles_) {
n_.xPos = n_.xPos + n_.xMov;
n_.yPos = n_.yPos + n_.yMov;
if ((n_.projectile == "rock") && ((_local4 % 3) == 1)) {
setParticle("smoke", n_.xPos, n_.yPos, 0, false);
}
if (e.hitTest(n_.xPos, n_.yPos, true)) {
if (n_.projectile == "gren") {
setParticle("explosion1", n_.xPos, n_.yPos, 0, false);
n_.removeMovieClip();
} else if (n_.projectile == "rock") {
setParticle("explosion2", n_.xPos, n_.yPos, 0, false);
n_.removeMovieClip();
} else {
var _local3 = 0;
while (_local3 <= maxEnemy) {
var _local2 = e["e" + _local3];
if (_local2._name == n_.lastHit) {
break;
}
if (_local2.hitTest(n_.xPos, n_.yPos, true)) {
setParticle("blood_crack", n_.xPos, n_.yPos, random(360), false);
n_.lastHit = _local2._name;
enemyDamage(_local2, n_.power);
n_.power = Math.floor(n_.power * bulletPowerDecay);
if ((--n_.flyThru) <= 0) {
n_.removeMovieClip();
break;
}
}
_local3++;
}
}
} else if (n_.inside) {
n_.inside = false;
}
if (w[position("w", n_.xPos, n_.yPos)]) {
if (n_.projectile == "gren") {
setParticle("explosion1", n_.xPos, n_.yPos, 0, false);
} else if (n_.projectile == "rock") {
setParticle("explosion2", n_.xPos, n_.yPos, 0, false);
} else {
playSound("rico");
setParticle("dust", n_.xPos, n_.yPos, n_._rotation - 90);
setParticle("crack", n_.xPos, n_.yPos, random(360));
}
n_.removeMovieClip();
break;
}
if ((((n_.xPos < -10) || (n_.xPos > 730)) || (n_.yPos < -10)) || (n_.yPos > 530)) {
n_.removeMovieClip();
break;
}
_local4++;
}
if (n_.gravity) {
n_.xMov = n_.xMov * 0.99;
n_.yMov = n_.yMov + 0.2;
n_._rotation = radToDeg(Math.atan2(n_.yMov, n_.xMov));
}
n_._x = n_.xPos;
n_._y = n_.yPos;
}
function checkExperience(n_, num_) {
n_.experience = n_.experience + num_;
while (n_.experience >= n_.levelNext) {
n_.level++;
n_.levelLast = n_.levelNext;
n_.levelNext = Math.floor(n_.levelNext * levelUpMultiplier);
n_.healthMax = Math.floor(n_.healthMax * healthLevelUp);
n_.health = n_.healthMax;
setLabel("label_white", n_._x, n_._y - (n_._height / 2), "LEVEL UP");
playSound("tada");
if (n_.level == 2) {
_root.showPopup("Whenever you achieve a new level, your maximum health increases and you also get fully healed.");
}
}
}
function changeWeapon(n_, num_) {
if (!n_.reloading) {
var _local1 = n_.weapon;
do {
_local1 = _local1 + num_;
} while (wepsArray[_local1][0] && (!n_.weps[_local1]));
if (wepsArray[_local1]) {
n_.weapon = _local1;
n_.shooting = false;
n_.h.gotoAndStop(n_.weapon + 1);
setLabel("label_green", n_._x, n_._y - n_.tall, wepsArray[n_.weapon][0]);
HUDupdate();
}
}
}
function startReloading(n_) {
if (((!n_.reloading) && (n_[wepsArray[n_.weapon][1]] > 0)) && (n_.magazine[n_.weapon] < (wepsArray[n_.weapon][12] * n_.bonMagazine))) {
n_.reloading = true;
n_[wepsArray[n_.weapon][1]] = n_[wepsArray[n_.weapon][1]] + n_.magazine[n_.weapon];
n_.magazine[n_.weapon] = 0;
HUDupdate();
crosshair.reloader.play();
}
}
function magazineReload(n_) {
n_.reloading = false;
if (n_[wepsArray[n_.weapon][1]] >= (wepsArray[n_.weapon][12] * n_.bonMagazine)) {
n_[wepsArray[n_.weapon][1]] = n_[wepsArray[n_.weapon][1]] - ((wepsArray[n_.weapon][12] * n_.bonMagazine) - n_.magazine[n_.weapon]);
n_.magazine[n_.weapon] = wepsArray[n_.weapon][12] * n_.bonMagazine;
} else {
n_.magazine[n_.weapon] = n_[wepsArray[n_.weapon][1]];
n_[wepsArray[n_.weapon][1]] = 0;
}
HUDupdate();
}
function setParticle(n_, x_, y_, r_, smartPart_, xMov_, yMov_) {
p1 = p.attachMovie(n_, "p" + actualParticle, p.getNextHighestDepth());
p1._x = x_;
p1._y = y_;
p1._rotation = r_;
if (smartPart_) {
if (n_ == "dynamite") {
p1.xMov = xMov_;
p1.yMov = yMov_;
} else if ((xMov_ != undefined) || (yMov_ != undefined)) {
p1.xMov = xMov_ + ((random(51) - 25) / 10);
p1.yMov = yMov_ + ((random(51) - 25) / 10);
} else {
p1.xMov = random(9) - 4;
p1.yMov = random(9) - 4;
}
p1.rotat = random(61) - 30;
}
actualParticle++;
}
function smartPart(n_) {
if (n_.yMov < maxFallSpeed) {
n_.yMov = n_.yMov + 0.5;
}
n_.xMov = n_.xMov * 0.98;
if (w[position("w", n_._x, n_._y)] || (n_._y > 500)) {
if (n_.isDynamite) {
n_.xMov = 0;
n_.yMov = 0;
n_.rotat = 0;
} else {
n_.removeMovieClip();
}
}
n_._x = n_._x + n_.xMov;
n_._y = n_._y + n_.yMov;
n_._rotation = n_._rotation + n_.rotat;
}
function explode(n_, dam_) {
var _local3 = w[position("w", n_._x, n_._y)];
if (_local3) {
if (((_local3._currentframe % 3) == 1) && (_local3._currentframe <= 16)) {
removeTile(_local3);
}
}
var _local1 = 0;
while (_local1 <= maxEnemy) {
namee = "e" + _local1;
if (n_.hitCircle.hitTest(e[namee]._x, e[namee]._y, true)) {
setParticle("blood_crack", n_._x, n_._y, random(360), false);
enemyDamage(e[namee], dam_);
}
_local1++;
}
}
function showPopup(t_) {
popup.gotoAndStop(2);
popup.inside = t_;
popup.play();
}
function setLabel(n_, x_, y_, num_) {
namep = "p" + actualParticle;
var _local1 = h.attachMovie(n_, namep, h.getNextHighestDepth());
_local1._x = (x_ + random(7)) - 3;
_local1._y = (y_ + random(7)) - 3;
_local1.inside.num = num_;
_local1.inside.num2 = num_;
actualParticle++;
}
function createEnemy(x_, y_, type_) {
var _local5 = 0;
while (e["e" + _local5]) {
_local5++;
}
if (_local5 > maxEnemy) {
maxEnemy = _local5;
}
var _local7 = "e" + _local5;
if (type_ != undefined) {
var _local4 = type_;
} else {
var _local6 = this["params" + level].enemies.length;
var _local4 = this["params" + level].enemies[random(_local6)];
}
var _local3 = e.attachMovie("e" + _local4, _local7, e.getNextHighestDepth());
_local3._x = x_;
_local3._y = y_;
if (enemiesArray[_local4][1]) {
_local3.changer = 0;
_local3.dir = random(360);
} else if (enemiesArray[_local4][9]) {
_local3.xMov = (m._x - _local3._x) / Math.abs(m._x - _local3._x);
if (!_local3.xMov) {
_local3.xMov = 1;
}
_local3._xscale = 100 * _local3.xMov;
} else {
_local3.xMov = (m._x - _local3._x) / Math.abs(m._x - _local3._x);
if (!_local3.xMov) {
_local3.xMov = 1;
}
_local3._xscale = 100 * _local3.xMov;
while (!w.hitTest(_local3._x, _local3.getBounds(_root).yMax, true)) {
_local3._y++;
if (_local3._y > 500) {
trace("ERROR");
break;
}
}
}
_local3.name = enemiesArray[_local4][0];
_local3.homing = enemiesArray[_local4][2];
_local3.shootAble = enemiesArray[_local4][3];
_local3.speed = enemiesArray[_local4][5];
_local3.healthMax = enemiesArray[_local4][4];
_local3.health = _local3.healthMax;
_local3.power = enemiesArray[_local4][6];
_local3.projectile = enemiesArray[_local4][7];
_local3.proj_speed = enemiesArray[_local4][8];
_local3.swim = enemiesArray[_local4][9];
_local3.experience = enemiesArray[_local4][10];
_local3.boneType = enemiesArray[_local4][11];
_local3.toShoot = enemiesArray[_local4][12];
_local3.lastShoot = gameTime - random(100);
_local3.white = false;
_local3.lastWhite = 0;
enemiesOnScreen++;
}
function enemyCruise(n_) {
if (!shopOpen) {
n_.changer++;
if (n_.changer >= 24) {
if (n_.homing) {
n_.changer = 0;
n_.dir = Math.atan2(n_._y - m._y, n_._x - m._x) + Math.PI;
} else {
n_.changer = 0;
n_.dir = random(360);
}
var _local2 = Math.cos(n_.dir);
n_._xscale = (100 * _local2) / Math.abs(_local2);
}
n_._x = n_._x + (n_.speed * Math.cos(n_.dir));
n_._y = n_._y + (n_.speed * Math.sin(n_.dir));
if (m.hitTest(n_._x, n_._y, true)) {
damage(n_.power, "splat");
}
if ((((w.hitTest(n_._x, n_._y, true) || (n_._x < 0)) || (n_._x > 720)) || (n_._y < 0)) || (n_._y > 520)) {
n_._x = n_._x - (2 * Math.cos(n_.dir));
n_._y = n_._y - (2 * Math.sin(n_.dir));
n_.dir = n_.dir + 180;
n_.changer = 0;
}
if (n_.shootAble) {
if ((gameTime - n_.lastShoot) > n_.toShoot) {
var _local2 = radToDeg(Math.atan2(n_._y - m._y, n_._x - m._x)) + 180;
enemyShoot(n_.projectile, n_._x, n_._y, _local2, n_.power, n_.proj_speed, n_);
playSound("blow");
}
}
if (n_.white) {
if ((gameTime - n_.lastWhite) > 5) {
var _local3 = new Color(n_);
var _local4 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0"};
_local3.setTransform(_local4);
n_.white = false;
}
}
}
}
function enemyWalk(n_) {
if (!shopOpen) {
n_._x = n_._x + (n_.speed * n_.xMov);
if (n_.swim) {
if (w.hitTest(n_._x + ((n_.xMov * n_._width) / 2), n_._y, true) || (!backGround.hitTest(n_._x, n_._y, false))) {
n_.xMov = n_.xMov * -1;
n_._xscale = n_.xMov * 100;
n_._x = n_._x + (n_.speed * n_.xMov);
}
} else {
if (!w[position("w", n_._x, n_._y + 40)]) {
n_._y = n_._y + 40;
}
if ((!w.hitTest(n_._x + ((n_.xMov * n_._width) / 2), n_._y + 40, true)) || (w.hitTest(n_._x + ((n_.xMov * n_._width) / 2), n_._y, true))) {
n_.xMov = n_.xMov * -1;
n_._xscale = n_.xMov * 100;
n_._x = n_._x + (n_.speed * n_.xMov);
}
}
if (m.hitTest(n_._x, n_._y, true)) {
damage(n_.power, "splat");
}
if (n_.shootAble) {
if ((gameTime - n_.lastShoot) > n_.toShoot) {
if ((n_.xMov * m._x) > (n_.xMov * n_._x)) {
var _local2 = radToDeg(Math.atan2(n_._y - m._y, n_._x - m._x)) + 180;
enemyShoot(n_.projectile, n_._x, n_._y, _local2, n_.power, n_.proj_speed, n_);
playSound("blow");
}
}
}
if (n_.white) {
if ((gameTime - n_.lastWhite) > 5) {
var _local3 = new Color(n_);
var _local4 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0"};
_local3.setTransform(_local4);
n_.white = false;
}
}
}
}
function enemyShoot(n_, x_, y_, r_, dam_, speed_, n) {
n.lastShoot = (gameTime + random(41)) - 20;
var _local1 = p.attachMovie(n_, "b" + actualBullet, p.getNextHighestDepth());
actualBullet++;
_local1._x = x_;
_local1._y = y_;
_local1._rotation = r_;
_local1.angle = degToRad(_local1._rotation);
_local1.power = dam_;
_local1.speed = speed_;
_local1.ref = n;
}
function enemyFly(n_) {
var _local2 = 0;
while (_local2 < enemyDaggerCycles) {
n_._x = n_._x + (n_.speed * Math.cos(n_.angle));
n_._y = n_._y + (n_.speed * Math.sin(n_.angle));
if (m.hitTest(n_._x, n_._y, true)) {
damage(n_.power, "splat");
n_.ref.shooting = false;
n_.removeMovieClip();
break;
}
if (w.hitTest(n_._x, n_._y, true)) {
n_.ref.shooting = false;
setParticle("dust", n_._x, n_._y, 0);
n_.removeMovieClip();
break;
}
if ((((n_._x < -10) || (n_._x > 730)) || (n_._y < -10)) || (n_._y > 530)) {
n_.ref.shooting = false;
n_.removeMovieClip();
break;
}
_local2++;
}
}
function enemyDamage(n_, d_) {
n_.health = n_.health - d_;
var _local5 = new Color(n_);
var _local6 = {ra:"100", rb:"255", ga:"100", gb:"255", ba:"100", bb:"255"};
_local5.setTransform(_local6);
n_.white = true;
n_.lastWhite = gameTime;
setLabel("label_white", n_._x, n_._y, d_);
if (n_.health <= 0) {
playSound("deathcrack");
var _local4 = 0;
while (_local4 < 3) {
var _local3 = 0;
while (_local3 < 5) {
setParticle("blood_spot", n_._x, n_._y, random(360), true);
_local3++;
}
setParticle("blood_dust", n_._x, n_._y, 0, false);
setParticle("blood_crack", n_._x, n_._y, random(360), false);
setParticle(n_.boneType, n_._x, n_._y, random(360), true, 0, -4);
_local4++;
}
if ((substring(n_.name, 0, 4)) == "Boss") {
setPackage(n_._x, n_._y, 23, "keys0", 1, n_);
m.health = m.healthMax;
setLabel("label_green", m.xPos, m.yPos - m.tall, "Fully healed");
this["deadBoss" + level] = true;
} else {
e[namee].speed = e[namee].speed * m.bonSlow;
randomDrop(n_._x, n_._y, n_);
}
checkExperience(m, n_.experience);
enemiesOnScreen--;
HUDupdate();
n_.removeMovieClip();
}
}
function randomDrop(x_, y_, en_) {
var _local5 = random(355 + m.bonDrops);
var _local2;
var _local6;
if (_local5 < D1) {
_local2 = 4;
} else if (_local5 < (D1 + D2)) {
_local2 = 5;
} else if (_local5 < ((D1 + D2) + D3)) {
_local2 = 1;
} else if (_local5 < (((D1 + D2) + D3) + D4)) {
_local2 = 2;
} else if (_local5 < ((((D1 + D2) + D3) + D4) + D5)) {
_local2 = 3;
} else if (_local5 < (((((D1 + D2) + D3) + D4) + D5) + D6)) {
_local2 = 0;
} else {
return(false);
}
var _local4 = [];
var _local3;
var _local1 = 0;
while (_local1 < Dgroups[_local2][1]) {
_local3 = Dgroups[_local2][0] + _local1;
if (dropsArray[_local3][tier + 2]) {
_local4.push(_local3);
}
_local1++;
}
if (_local4.length == 0) {
return(false);
}
_local6 = _local4[random(_local4.length)];
setPackage(x_, y_, _local6 + 1, dropsArray[_local6][1], dropsArray[_local6][10], en_);
}
function setPackage(x_, y_, fr_, var_, num_, en_) {
namep = "p" + actualParticle;
var _local1 = p.attachMovie("package", namep, p.getNextHighestDepth());
_local1._x = x_;
_local1._y = y_;
_local1.xPos = x_;
_local1.yPos = y_;
_local1.yMov = -3 - random(3);
_local1.xMov = (random(9) - 4) / 2;
_local1.onTheGround = false;
if (fr_ == 23) {
_local1.TTL = Number.POSITIVE_INFINITY;
} else {
_local1.TTL = packageLifeSpan;
}
_local1.vari = var_;
_local1.wide = packageWidth;
_local1.tall = packageHeight;
if ((fr_ == 12) && (en_)) {
_local1.num = Math.floor(m.healthMax / 4);
} else if ((fr_ == 13) && (en_)) {
_local1.num = Math.ceil((en_.healthMax / 30) * Math.pow(tier, goldExponent));
} else if ((fr_ == 14) || (fr_ == 11)) {
_local1.num = 1;
} else {
_local1.num = num_;
}
actualParticle++;
_local1.gotoAndStop(fr_);
}
function packageFall(n_) {
n_.TTL--;
if (n_.TTL <= 0) {
n_._alpha = n_._alpha - 10;
}
if (n_._alpha <= 5) {
n_.removeMovieClip();
}
if (!n_.onTheGround) {
updatePosition(n_);
if (n_.yMov < maxFallSpeed) {
n_.yMov = n_.yMov + 0.5;
}
if (w[position("w", n_.xPos - n_.wide, n_.yPos - 2)] || (w[position("w", n_.xPos - n_.wide, (n_.yPos - n_.tall) + 2)])) {
n_.xPos = n_.xPos - n_.xMov;
n_.xMov = n_.xMov * -0.8;
}
if (w[position("w", n_.xPos + n_.wide, n_.yPos - 2)] || (w[position("w", n_.xPos + n_.wide, (n_.yPos - n_.tall) + 2)])) {
n_.xPos = n_.xPos - n_.xMov;
n_.xMov = n_.xMov * -0.8;
}
if (w[position("w", n_.xPos - n_.wide, n_.yPos - n_.tall)] || (w[position("w", n_.xPos + n_.wide, n_.yPos - n_.tall)])) {
n_.yPos = (Math.ceil((n_.yPos - n_.tall) / 40) * 40) + n_.tall;
n_.yMov = 0;
}
if (w[position("w", n_.xPos - n_.wide, n_.yPos + 1)] || (w[position("w", n_.xPos + n_.wide, n_.yPos + 1)])) {
n_.yPos = (Math.floor((n_.yPos + 1) / 40) * 40) - 1;
n_.yMov = 0;
n_.onTheGround = true;
}
if (n_.yPos > 490) {
n_.removeMovieClip();
}
render(n_);
} else if ((Math.abs(n_._x - m._x) < 20) && (Math.abs(n_._y - m._y) < 20)) {
playSound("pickup");
if (n_._currentframe == 12) {
m[n_.vari] = m[n_.vari] + Math.round(n_.num * m.bonHealing);
if (m.health > m.healthMax) {
m.health = m.healthMax;
}
} else {
m[n_.vari] = m[n_.vari] + n_.num;
}
if ((n_._currentframe != 11) && (n_._currentframe < 14)) {
if ((n_._currentframe <= 10) || (n_._currentframe == 13)) {
var _local2 = (n_.num + newline) + dropsArray[n_._currentframe - 1][13];
} else {
var _local2 = dropsArray[n_._currentframe - 1][13] + n_.num;
}
} else {
var _local2 = dropsArray[n_._currentframe - 1][13];
}
setLabel("label_" + dropsArray[n_._currentframe - 1][12], n_._x, n_._y - (n_._height / 2), _local2);
HUDupdate();
n_.removeMovieClip();
}
}
function playSound(n_) {
ts.attachSound(n_);
ts.start();
}
function objLadder() {
if (((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(83))) || (Key.isDown(87))) {
m.ladder = true;
m.yMov = 0;
m.xMov = 0;
}
}
function objWater(damage_) {
if (!m.water) {
playSound("water");
setParticle("splash", m._x, (Math.floor(m._y / 40) * 40) + 24, 0, false);
}
m.water = true;
if (damage_) {
if (m.breath > 0) {
m.breath--;
}
} else if (m.breath < (m.breathMax + m.bonAirMax)) {
m.breath = m.breath + 10;
}
if (m.breath < (m.breathMax / 10)) {
damage(waterDamage, "drown");
}
}
function objChest(n_, num_) {
if ((n_.chest._currentframe == 1) && (Key.isDown(70) || (Key.isDown(17)))) {
var _local2 = _root["params" + level]["chest" + num_];
var _local4 = 1;
while (_local4 <= _local2[1]) {
if (_local2[0] == -1) {
var _local5 = random(9);
setPackage(n_._x, n_._y, _local5 + 1, dropsArray[_local5][1], _local2[2]);
} else if (_local2[0] == -2) {
var _local5 = 14 + random(8);
setPackage(n_._x, n_._y, _local5 + 1, dropsArray[_local5][1], 1);
} else {
setPackage(n_._x, n_._y, _local2[0] + 1, dropsArray[_local2[0]][1], _local2[2]);
}
_local4++;
}
playSound("chest");
n_.chest.nextFrame();
removeTile(n_);
}
}
function objShop(x_, y_) {
if ((((gameTime - m.lastShop) > 15) && (Key.isDown(70) || (Key.isDown(17)))) && (m.groundDetect)) {
if (!shopOpen) {
m.lastShop = gameTime;
m.respawnCoord = [level, x_, y_];
shopOpen = true;
shooting = false;
TABshop._visible = true;
TABshop.gotoAndStop(1);
TABshop.changeWeapon();
m.health = m.healthMax;
m.xMov = 0;
m.gotoAndStop(1);
for (var _local1 in p) {
if (p[_local1].ref) {
p[_local1].removeMovieClip();
}
}
HUDupdate();
} else {
m.lastShop = gameTime;
shopOpen = false;
TABshop._visible = false;
saveGame();
}
}
}
function objKey(n_, num_) {
m["keys" + num_]++;
HUDupdate();
setLabel("label_gold", n_._x, n_._y - (n_._height / 2), "Key");
playSound("key");
removeTile(n_);
n_.removeMovieClip();
}
function objPickUp(n_, var_, num_) {
playSound("pickup");
m[var_] = m[var_] + num_;
if (var_ == "gems") {
setLabel("label_gold", n_._x, n_._y - (n_._height / 2), "Gem");
} else if (var_ == "gold") {
setLabel("label_gold", n_._x, n_._y - (n_._height / 2), num_ + " Gold");
}
HUDupdate();
removeTile(n_);
n_.removeMovieClip();
}
function objOneWay(num_) {
m.xMov = maxSpeed * num_;
}
function objSign(name_) {
popup.gotoAndPlay("last");
popup.inside = _root["params" + level][name_];
}
function objKeyScrapper() {
m.keys0 = 0;
m.keys1 = 0;
m.keys2 = 0;
HUDupdate();
}
function trapTrigger(n_, num_, x_, y_) {
switch (num_) {
case 1 :
if (((((gameTime - n_.lastShot) > 75) && (!n_.shooting)) && (m._y > y_)) && ((Math.round(m._x / 20) * 20) == x_)) {
n_.shooting = true;
n_.lastShot = gameTime;
enemyShoot("dagger", x_, y_ + 10, 90, enemyDaggerDamage * tier, 4, n_);
playSound("Throwing knife");
}
break;
case 4 :
if ((n_.trap._currentframe == 1) && ((m.yPos % 40) > 10)) {
m.paralysed = true;
m.xMov = 0;
setLabel("label_red", x_, y_, "Paralysed");
playSound("splat");
m.gotoAndStop(1);
n_.trap.play();
}
break;
case 5 :
if (n_.trap._currentframe != 1) {
break;
}
n_.trap.play();
}
}
function keyDoor(n_, key_) {
if (m["keys" + key_] > 0) {
if (n_.door._currentframe == 1) {
if (Math.sqrt(Math.pow(m._x - n_._x, 2) + Math.pow(m._y - n_._y, 2)) < 40) {
n_.door.play();
m["keys" + key_]--;
HUDupdate();
}
}
}
}
function spawnPointCheck(n_) {
if (!spawnPointsDisabled[level]) {
if (alreadySpawned < this["params" + level].enemyReserve) {
if (((gameTime - n_.lastCheck) > 10) && (!openShop)) {
n_.lastCheck = gameTime;
if ((random(this["params" + level].spawnFqcy) == 0) && (enemiesOnScreen < this["params" + level].maxEnemies)) {
alreadySpawned++;
createEnemy(n_._x, n_._y);
}
}
} else {
spawnPointsDisabled[level] = true;
}
} else {
delete n_.onEnterFrame;
}
}
function saveGame() {
shareObj.data.m = {};
for (var _local1 in m) {
if ((typeof(m[_local1]) != "function") && (typeof(m[_local1]) != "movieclip")) {
if (typeof(m[_local1]) == "object") {
shareObj.data.m[_local1] = m[_local1].clone();
} else {
shareObj.data.m[_local1] = m[_local1];
}
}
}
shareObj.data.flush(50000);
saveMessage.play();
}
function loadGame(onlyRespawn_) {
if (onlyRespawn_) {
level = m.respawnCoord[0];
m._x = m.respawnCoord[1];
m._y = m.respawnCoord[2];
m.health = m.healthMax;
m._visible = false;
cleanup();
buildWorld();
buildObjects();
buildEnemies();
HUDupdate();
playSound("respawn");
m._visible = true;
} else {
restoreArrays();
if (shareObj.data.m) {
for (var _local4 in shareObj.data.m) {
if (typeof(shareObj.data.m[_local4]) == "object") {
m[_local4] = shareObj.data.m[_local4].clone();
} else {
m[_local4] = shareObj.data.m[_local4];
}
}
var _local2 = 0;
while (_local2 < m.changesArray.length) {
var _local3 = this[m.changesArray[_local2][0]];
_local3[m.changesArray[_local2][1]][m.changesArray[_local2][2]] = 1;
_local2++;
}
m.lastDamage = 0;
m.lastDynamite = 0;
m.lastShop = 0;
m.reloading = false;
spawnPointsDisabled = [];
gameTime = 0;
m.h.gotoAndStop(m.weapon + 1);
level = m.respawnCoord[0];
m._x = m.respawnCoord[1];
m._y = m.respawnCoord[2];
cleanup();
buildWorld();
buildObjects();
buildEnemies();
HUDupdate();
} else {
cleanup();
buildWorld();
buildObjects();
buildEnemies();
magazineReload(m);
HUDupdate();
}
}
}
function goToMenu(name_, play_) {
Key.removeListener(keyListener);
stopAllSounds();
Mouse.show();
stopDrag();
if (play_) {
_root.gotoAndPlay(name_);
} else {
_root.gotoAndStop(name_);
}
}
function cloneArrays() {
var _local2 = 0;
while (_local2 <= 99) {
if (!this["level" + _local2]) {
} else {
this["c_level" + _local2] = this["level" + _local2].clone();
this["c_objects" + _local2] = this["objects" + _local2].clone();
this["c_enemies" + _local2] = this["enemies" + _local2].clone();
}
_local2++;
}
}
function restoreArrays() {
var _local2 = 0;
while (_local2 <= 99) {
if (!this["c_level" + _local2]) {
} else {
this["level" + _local2] = this["c_level" + _local2].clone();
this["objects" + _local2] = this["c_objects" + _local2].clone();
this["enemies" + _local2] = this["c_enemies" + _local2].clone();
}
_local2++;
}
}
function radToDeg(r_) {
return((r_ * 180) / Math.PI);
}
function degToRad(r_) {
return((r_ / 180) * Math.PI);
}
function position(n_, x_, y_) {
retX = Math.floor(x_ / 40);
retY = Math.floor(y_ / 40);
return(((n_ + retY) + "_") + retX);
}
m.onEnterFrame = function () {
if (!m._visible) {
return(undefined);
}
if (!shopOpen) {
if (!m.paralysed) {
movement();
}
_root.aim(m);
}
if (!m.jumping) {
gravity(m);
}
updatePosition(m);
wallCollision(m);
render(m);
objectCollision(m);
if (m.toShoot < 90) {
m.toShoot++;
}
if ((!m.water) && (m.breath < (m.breathMax + m.bonAirMax))) {
m.breath = m.breath + 10;
}
if ((m.shooting == true) && (m.toShoot >= Math.abs(_root.wepsArray[m.weapon][5]))) {
if (_root.wepsArray[m.weapon][5] < 0) {
m.shooting = false;
}
if ((!m.water) || (m.weapon == 0)) {
_root.shoot(m, 1);
} else {
_root.shoot(m, 0.5);
}
}
gameTime++;
};
m.onMouseDown = function () {
if (!shopOpen) {
m.shooting = true;
}
};
m.onMouseUp = function () {
m.shooting = false;
};
keyListener = new Object();
keyListener.onKeyDown = function () {
if ((!m._visible) || (shopOpen)) {
return(undefined);
}
with (_root) {
if ((Key.getCode() == 82) || (Key.getCode() == 96)) {
startReloading(m);
} else if ((((Key.getCode() == 67) || (Key.getCode() == 97)) && (m.dynamites > 0)) && ((gameTime - m.lastDynamite) > 30)) {
setParticle("dynamite", m._x, m._y, 0, true, m._xscale / 25, -2);
m.lastDynamite = gameTime;
m.dynamites--;
HUDupdate();
}
if ((Key.getCode() == 70) || (Key.getCode() == 17)) {
i = 0;
while (i < doorArray.length) {
keyDoor(doorArray[i], doorArray[i]._currentframe - 17);
i++;
}
}
if ((Key.getCode() == 81) || (Key.getCode() == 46)) {
changeWeapon(m, -1);
} else if ((Key.getCode() == 69) || (Key.getCode() == 34)) {
changeWeapon(m, 1);
}
if (Key.getCode() == 73) {
ammoTab.play();
}
if (Key.getCode() == 27) {
quitTab.play();
}
}
};
Key.addListener(keyListener);
Dgroups = [[0, 10], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7]];
D1 = 2;
D2 = 12;
D3 = 30;
D4 = 20;
D5 = 40;
D6 = 50;
Array.prototype.clone = function () {
var _local2 = [];
for (i in this) {
if (this[i].constructor == Array) {
_local2[i] = this[i].clone();
} else {
_local2[i] = this[i];
}
}
return(_local2);
};
level = 0;
wepsArray = [["Throwing knife", "aKnives", 5, 1, 7, -12, "knife", 1, 3, "", 1, "A set of fine sharp throwing knives.", Number.POSITIVE_INFINITY, 2, 1, undefined, "Knives", true], ["Beretta 92F", "a9mm", 10, 1, 9, -5, "bull", 1, 10, "p_bulls", 1, "Fast and reliable handgun used by many police and military forces around the world.", 15, 20, 1, undefined, "9mm", false], ["Colt 1911", "a45ACP", 15, 1, 11, -5, "bull", 1, 10, "p_bulls", 1, "100 years old and still in service. Best handgun of all times.", 7, 25, 1, undefined, ".45 ACP", false], ["Glock G-17", "a9mm", 10, 1, 9, -4, "bull", 1, 10, "p_bulls", 1, "Extremely reliable, fast and compact gun. Gangsters' all time favorite.", 17, 30, 1, undefined, "9mm", false], ["Five-seveN", "a57mm", 20, 1, 8, -6, "bull", 1, 10, "p_bulls", 1, "Modern and strong. That's Fifty SeveN pistol.", 15, 40, 2, undefined, "5,7mm", false], ["Desert Eagle", "a50AE", 48, 1, 12, -10, "bull", 1, 10, "p_rifs", 1, "Desert Eagle .50 Action Express. A hand-held howitzer.", 7, 150.2, 2, undefined, ".50 AE", false], ["M-3 Grease Gun", "a45ACP", 15, 1, 9, 5, "bull", 1, 10, "p_bulls", 1, "One hell of an ugly and slow sub-machine gun. Still works though.", 30, 100, 2, undefined, ".45 ACP", false], ["Uzi", "a9mm", 12, 1, 9, 3, "bull", 1, 10, "p_bulls", 1, "Uzi, a legend amongst sub-machine guns.", 30, 150, 2, undefined, "9mm", false], ["MP-5 A3", "a9mm", 15, 1, 8, 3, "bull", 1, 10, "p_bulls", 1, "If you are looking for reliable and fast sub-machine gun, MP5 is your weapon.", 30, 180, 2, undefined, "9mm", false], ["Ingram MAC-10", "a9mm", 10, 1, 20, 2, "bull", 1, 10, "p_bulls", 1, "Extremely small and extremely fast. That's MAC-10 allright.", 30, 220, 2, undefined, "9mm", false], ["Remington 870", "a12Gauge", 16, 5, 18, -30, "bull", 1, 10, "p_shells", 1, "Good old pump-action shotgun, that's Remington 870.", 8, 150, 2, undefined, "12 Gauge", false], ["P90", "a57mm", 20, 1, 8, 2, "bull", 1, 10, "p_bulls", 1, "Precise and deadly. Choice of professionals.", 50, 400.3, 2, undefined, "5,7mm", false], ["SPAS-12", "a12Gauge", 20, 5, 18, 20, "bull", 1, 10, "p_shells", 1, "For some serious stopping power, Franchi SPAS-12 will serve you well. Even if you don't actually hunt.", 8, 700, 3, undefined, "12 Gauge", false], ["AA-12", "a12Gauge", 20, 5, 23, 5, "bull", 1, 10, "p_shells", 1, "The deadliest automatic shotgun ever made.", 20, 1000.2, 3, undefined, "12 Gauge", false], ["M1 Garand", "a762mm", 40, 1, 5, -8, "bull", 1, 10, "p_rifs", 1, "This rifle has won many wars and you can always count on its lethality.", 8, 350, 3, undefined, "7,62mm", false], ["M4", "a762mm", 45, 1, 5, 3, "bull", 1, 10, "p_rifs", 1, "U.S. Army's pride. Fast, precise, deadly.", 30, 650, 3, undefined, "7,62mm", false], ["AK-74", "a545mm", 50, 1, 8, 3, "bull", 1, 10, "p_rifs", 1, "The most wide-spread assault rifle of them all.", 30, 600, 3, undefined, "5,45mm", false], ["FN SCAR-H", "a762mm", 50, 1, 3, 4, "bull", 1, 15, "p_rifs", 2, "Modern piece of weaponry for real arms connoisseurs.", 30, 1000.3, 3, undefined, "7,62mm", false], ["SVD Dragunov", "a545mm", 110, 1, 2, -15, "bull", 1, 15, "p_rifs", 2, "Russian sniper rifle used by virtually all Warsaw pact countries. Accurate, powerful, reliable.", 10, 1000, 3, undefined, "5,45mm", false], ["PKM", "a545mm", 65, 1, 5, 3, "bull", 1, 10, "p_rifs", 1, "This extremely powerful russian machinegun will never let you down.", 100, 2500, 4, undefined, "5,45mm", false], ["M60", "a762mm", 60, 1, 3, 3, "bull", 1, 10, "p_rifs", 1, "M60 will guarantee a serious kick in the target even on long distances.", 100, 2500, 4, undefined, "7,62mm", false], ["Barret Light", "a50BMG", 250, 1, 0, -20, "bull", 1, 20, "p_rifs", 3, "The king of all sniper rifles. No need to say more.", 8, 3000.5, 4, undefined, ".50 BMG", false], ["M79", "a40mm", 250, 1, 12, -60, "gren", 1, 6, "p_grens", 1, "Not the greatest grenade launcher. Still, it's a grenade launcher, man!", 1, 2000, 4, undefined, "40mm", true], ["M2 BMG", "a50BMG", 100, 1, 11, 5, "bull", 1, 10, "p_rifs", 2, "Very old and very powerful heavy machinegun.", 200, 6000.4, 5, undefined, ".50 BMG", false], ["Milkor MGL", "a40mm", 250, 1, 14, -20, "gren", 1, 6, "", 1, "Semi-automatic grenade launcher. That speaks for itself.", 6, 6000.5, 5, undefined, "40mm", true], ["M72 LAW", "aRockets", 600, 1, 6, -70, "rock", 1, 6, "", 1, "You can take out tanks with this one.", 1, 5000, 5, undefined, "Rockets", false], ["XM214 Microgun", "a762mm", 50, 3, 12, 1, "bull", 3, 10, "p_rifs", 1, "A handheld version of notoriously known Minigun. Even though it's lighter, the rate of fire is still extreme.", 500, 15000.9, 5, undefined, "7,62mm", false], ["Tommy Gun", "a45ACP", 30, 1, 7, 2, "bull", 1, 10, "p_bulls", 1, "Woohoo! Tommy gun!", 100, 1, 6, undefined, ".45 ACP", false]];
enemiesArray = [["Spider", false, false, false, 10, 1, 5, "", 1, false, 1, "bone_spi", 100], ["Bat", true, false, false, 15, 1, 5, "", 1, false, 1, "bone_bat", 100], ["Bear", false, false, false, 30, 1, 10, "", 1, false, 4, "bone_bea", 100], ["Skeleton", false, false, false, 50, 1, 10, "", 1, false, 6, "bone_ske", 100], ["Skeleton Soldier", false, true, false, 75, 1.5, 15, "", 1, false, 15, "bone_ske", 100], ["Lich", true, false, true, 100, 1, 15, "blueball", 1.5, false, 40, "bone_ske", 100], ["Skeleton Archer", false, false, true, 50, 1, 15, "arrow", 3, false, 25, "bone_ske", 100], ["Bug", true, true, false, 20, 1, 10, "", 0.7, false, 6, "bone_spi", 100], ["Piranha", false, false, false, 30, 1, 10, "", 1, true, 5, "bone_fis", 100], ["Arachnid", false, false, false, 50, 1.5, 15, "", 1, false, 15, "bone_spi", 100], ["Vampire Bat", true, true, false, 60, 2, 15, "", 1.5, false, 50, "bone_bat", 100], ["Grizzly Bear", false, false, true, 100, 2, 25, "fireball", 1.5, false, 100, "bone_bea", 100], ["Revenant", false, false, false, 175, 1.5, 30, "", 1, false, 150, "bone_ske", 100], ["Fallen Marauder", false, false, true, 300, 1.5, 30, "fireball", 2, false, 300, "bone_ske", 100], ["Reaper", true, true, true, 450, 2, 45, "blueball", 2, false, 600, "bone_ske", 100], ["Dead Marksman", false, false, true, 200, 1, 30, "arrow", 4, false, 200, "bone_ske", 100], ["Scarabeus", true, true, true, 80, 2, 20, "fireball", 1.5, false, 100, "bone_spi", 100], ["Undead piranha", false, false, false, 100, 1.5, 30, "", 1, true, 50, "bone_fis", 100], ["Demon", false, false, true, 2000, 1.5, 50, "fireball", 3, false, 3000, "bone_dea", 100], ["Boss", false, false, true, 20000, 2, 100, "fireball", 3, false, 100000, "bone_ske", 25], ["Boss_spider", false, false, true, 2000, 2, 15, "fireball", 2, false, 1000, "bone_spi", 30]];
dropsArray = [["9mm Luger", "a9mm", 1, true, true, true, false, false, 1, true, 30, 2, "blue", "9mm", "Ammo for Beretta 92F, Glock G-17, Uzi, MP-5 and Ingram MAC-10.", true], [".45 ACP", "a45ACP", 1, true, true, true, false, false, 1, true, 30, 4, "blue", ".45", "Ammo for Colt 1911 and M-3 Grease Gun.", true], ["FN 5.7mm", "a57mm", 1, false, true, true, false, false, 1, true, 50, 20, "blue", "5.7mm", "Ammo for Five-seveN and P90.", true], [".50 Action Express", "a50AE", 1, false, true, true, true, false, 1, true, 10, 10, "blue", ".50", "Ammo for Desert Eagle.", true], ["12 Gauge Buckshot", "a12Gauge", 1, false, true, true, true, false, 1, true, 10, 10, "blue", "12G", "Ammo for shotguns.", true], ["7.62mm NATO", "a762mm", 1, false, false, true, true, true, 1, true, 50, 50, "blue", "7.62mm", "Ammo for M1 Garand, M4, FN SCAR-H, M60 and Microgun.", true], ["5.45mm", "a545mm", 1, false, false, true, true, true, 1, true, 50, 50, "blue", "5.45mm", "Ammo for AK-74, Dragunov and PKM.", true], [".50 BMG", "a50BMG", 1, false, false, false, true, true, 1, true, 50, 100, "blue", ".50BMG", "Ammo for Barret Light and M2 BMG.", true], ["40 mm Grenade", "a40mm", 1, false, false, false, true, true, 1, true, 4, 40, "blue", "40mm", "Ammo for grenade launchers.", true], ["M72 Rocket", "aRockets", 1, false, false, false, false, true, 1, true, 2, 60, "blue", "Rocket", "Ammo for antitank weapons.", true], ["Dynamite", "dynamites", 1, true, true, true, true, true, 1, true, 1, 8, "blue", "Dynamite", "Dynamites are especially useful if you need to blow things up.", true], ["Medikit", "health", 1, true, true, true, true, true, 1, false, 1, 1, "green", "+", "A first aid kit and doctor's bag in one package.", false], ["Gold", "gold", 1, true, true, true, true, true, 1, false, 1, 0, "gold", "Gold", "", false], ["Gem", "gems", 1, false, true, true, true, true, 1, false, 1, 0, "gold", "Gem", "Gems are used to buy rare weapons.", false], ["Tubes", "tubes", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Tube", "Hollow metal tube.", false], ["Batteries", "batteries", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Battery", "9 Volt battery.", false], ["Steel chunks", "steel", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Steel", "A piece of steel alloy.", false], ["Smokeless powder", "powder", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Powder", "Smokeless powder that is used in firearms cartridges.", false], ["Plastic pieces", "plastic", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Plastic", "Pieces of plastic of various sizes and shapes.", false], ["Kevlar plates", "kevlar", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Kevlar", "Thick kevlar plates.", false], ["Springs", "springs", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Spring", "Springs in various lengths.", false], ["Electronic parts", "parts", 1, false, true, true, true, true, 1, true, 1, 500, "violet", "Parts", "Printed circuits, wires, and other electronic parts.", false], ["Golden key", "keys0", 1, false, false, false, false, false, 1, false, 1, 0, "gold", "Key", "A golden key.", false]];
gadgetsArray = [["Laser sight", "bonLaser", true, 2, 4, 1, 0, 0, 0, 1, 2, "Lasersight makes aiming a lot easier.", x], ["Magazine extension", "bonMagazine", 1, 3, 0, 3, 0, 1, 0, 3, 0, "Doubles the magazine capacity of a weapon.", x], ["Hollow point ammunition", "bonSlow", -0.1, 5, 0, 5, 5, 0, 0, 0, 0, "Bullets now slow enemies down.", x], ["Double TNT charge", "bonDynamite", true, 2, 1, 0, 5, 2, 0, 1, 1, "Increases blast radius and power of dynamites.", x], ["Advanced buttstock", "bonScatter", -0.15, 0, 0, 2, 0, 4, 1, 1, 0, "Reduces recoil and thus increases precision.", x], ["Muzzle brake", "bonScatter", -0.2, 3, 0, 4, 0, 1, 1, 0, 0, "Also reduces recoil and increases precision.", x], ["Body armor Mk I", "bonArmor", 0.3, 0, 0, 2, 0, 4, 3, 0, 0, "Basic anti-splinter armor. Both armors stack.", x], ["Body armor Mk II", "bonArmor", 0.7, 0, 0, 4, 0, 2, 6, 0, 0, "Advanced ballistic armor. Both armors stack.", x], ["Magazine loader", "bonReload", true, 3, 2, 2, 0, 1, 0, 4, 2, "A device which makes reloading faster.", x], ["Scuba gear", "bonAirMax", 10000, 2, 0, 4, 0, 4, 0, 0, 2, "Significantly reduces the risk of drowning.", x], ["Metal detector", "bonDrops", -100, 4, 4, 2, 0, 1, 0, 0, 4, "Increases the amount of drops from enemies.", x], ["Doctor's bag", "bonHealing", 0.5, 3, 0, 4, 0, 3, 0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ve:20, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Welcome to the game. Signs like this one will appear quite often in the game. Sometimes they will contain important information, so try not to miss any of them.", sign2:"To move, use the arrow keys or the WSAD keys. To jump press SPACE or SHIFT.", sign3:"undefined"};
level1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 3, 3, 2, 2, 2, 3, 3, 3, 3, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 1, 1, 1], [2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2], [2, 1, 1, 2, 2, 2, 3, 3, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2], [1, 1, 1, 2, 2, 2, 3, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2], [2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 3, 4, 1, 1, 1, 2], [2, 2, 2, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2], [2, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 1, 1, 2], [2, 3, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 2, 2], [2, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
objects1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 42, 1, 1, 41, 1, 1, 1, 1, 1, 1, 1, 1, 42, 1, 1], [1, 1, 2, 1, 30, 1, 1, 1, 1, 1, 1, 1, 1, 9, 2, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1], [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, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params1 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"You will need to defend yourself against hostile creatures. Your default weapon is the set of throwing knives, but there will be many more weapons further in the game. Shoot with LMB, reload with R or NUM0.", sign2:"To afford new weapons and ammunition, you are going to need to collect gold. You can also sell collected ammunition and sell it in shops.", sign3:"There are secret rooms in this game. Some of them are behind destructible walls. Use dynamites or other explosives to blast through. To throw a dynamite, press C or NUM1"};
level2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1, 2], [2, 2, 2, 1, 1, 1, 1, 1, 17, 1, 1, 1, 2, 2, 2, 2, 1, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 3, 3, 2, 1, 1, 2], [2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 1, 3, 3, 2, 2, 1, 1, 2], [2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 1, 1, 2, 2], [2, 3, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 2], [2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2], [2, 3, 3, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 1, 1, 2], [2, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2]];
objects2 = [[1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1], [1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params2 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"In this room you will have to find a key to open the door. Press F or CTRL to interact with objects.", sign2:"Beware of deep water. You might drown if you stay under the surface for too long.", sign3:"If you're shooting while in water, damage of all your weapons except knives and explosives gets severely reduced."};
level3 = [[2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 3, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 2], [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2], [2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 2, 2], [2, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2], [2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 2, 3, 3, 3, 3, 2], [2, 2, 3, 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 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 5, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params3 = {tier:1, enemies:[0], bg:6, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:15, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level4 = [[2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 3, 3, 3, 3, 3, 2, 2, 3, 1, 3, 3, 3, 1, 1, 2, 3, 2], [2, 3, 2, 2, 2, 3, 2, 1, 1, 1, 3, 2, 2, 1, 1, 2, 3, 2], [2, 3, 2, 2, 3, 3, 3, 1, 2, 2, 2, 2, 1, 1, 1, 2, 3, 2], [3, 3, 2, 1, 3, 3, 1, 1, 3, 2, 3, 1, 1, 1, 1, 2, 3, 3], [2, 1, 2, 1, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 2, 2, 2, 2], [2, 1, 2, 1, 2, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 3, 2], [2, 1, 2, 1, 1, 1, 1, 1, 3, 3, 1, 2, 2, 3, 1, 1, 3, 2], [2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 1, 1, 2, 2, 2], [2, 3, 2, 3, 3, 2, 1,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, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params4 = {tier:1, enemies:[2, 3], bg:1, effect:1, spawnFqcy:12, maxEnemies:5, enemyReserve:10, chest1:[-2, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"We've observed that certain hydraulic laws don't apply in those caves. (Signes: Wilbur the physicist)", sign2:"undefined", sign3:"undefined"};
level5 = [[2, 2, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [2, 3, 3, 5, 5, 6, 1, 5, 1, 1, 1, 1, 1, 1, 6, 6, 6, 5], [2, 3, 3, 5, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 5], [5, 3, 3, 3, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 5], [7, 6, 6, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 6, 6, 5], [5, 5, 5, 5, 5, 1, 1, 5, 5, 5, 5, 5, 1, 1, 5, 6, 5, 5], [5, 6, 6, 1, 5, 1, 1, 7, 5, 6, 5, 1, 1, 1, 5, 6, 6, 18], [5, 5, 5, 1, 5, 1, 5, 5, 5, 6, 5, 1, 1, 5, 5, 4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1, 5, 1, 8, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1], [1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 10, 1, 10, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params5 = {tier:2, enemies:[undefined], bg:2, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:10, chest1:[11, 1, 20], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"", sign2:"undefined", sign3:"undefined"};
level6 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 5, 5, 5, 5, 5, 5], [5, 5, 6, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 6, 6, 6, 6, 5], [5, 6, 1, 5, 5, 5, 5, 5, 6, 5, 5, 6, 5, 5, 6, 5, 5, 5], [5, 6, 1, 5, 6, 6, 6, 5, 6, 6, 5, 6, 5, 6, 6, 5, 6, 6], [5, 5, 1, 5, 6, 5, 5, 5, 5, 6, 6, 6, 6, 6, 5, 5, 6, 5], [5, 1, 1, 1, 6, 5, 1, 6, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5], [1, 1, 5, 5, 5, 5, 1, 7, 5, 6, 1, 1, 19, 6, 6, 6, 6, 5], [5, 5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1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 5, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params6 = {tier:2, enemies:[3, 4, 6], bg:2, effect:1, spawnFqcy:15, maxEnemies:8, enemyReserve:12, chest1:[10, 2, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Swimming forbidden", sign2:"nuddin' 'ere busta!", sign3:"undefined"};
level7 = [[5, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 1, 1, 1, 1, 6, 6, 5, 5, 1, 6, 6, 6, 6, 6, 6, 6, 5], [5, 5, 5, 1, 1, 6, 6, 1, 1, 1, 6, 5, 5, 5, 5, 1, 6, 5], [6, 6, 5, 1, 1, 6, 1, 1, 1, 1, 6, 6, 6, 6, 5, 1, 6, 5], [5, 6, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 5, 5, 1, 6, 5], [5, 6, 5, 1, 1, 1, 5, 6, 6, 6, 6, 1, 6, 6, 5, 1, 6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1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params7 = {tier:2, enemies:[7, 1], bg:2, effect:1, spawnFqcy:10, maxEnemies:6, enemyReserve:15, chestDrops:1, dropsCount:1, qtyPerDrop:1, sign1:"Here lies Theodor, a brave hero who spent the rest of his life trying to figure out how to get to that trasure up there.", sign2:"undefined", sign3:"undefined"};
level8 = [[2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies8 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params8 = {tier:2, enemies:[undefined], bg:6, effect:2, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 3, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Here lies Alistair the Treacherous, together with the rest of his belongings.", sign2:"undefined", sign3:"undefined"};
level9 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 1, 1,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, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies9 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 17, 15, 17, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params9 = {tier:2, enemies:[undefined], bg:6, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Did you hear about that thief who is hiding in these caves?", sign2:"Do you mean the one, who stole treasures of that nasty queen and this crazy scientist? Rumors have it, that this thief was scared of them and seeked shelter in some caves.", sign3:"Yea, they say his hideout is around here... but that report is 10 years old, hahaha!"};
level10 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2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1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 42, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1], [1, 1, 2, 1, 1, 1, 1, 9, 13, 24, 1, 16, 1, 1, 1, 1, 25, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies10 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params10 = {tier:1, enemies:[1], bg:1, effect:1, spawnFqcy:15, maxEnemies:7, enemyReserve:5, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
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 1], chest3:[14, 1, 1], sign1:"Chests usually contain useful items. However, some chests will be hidden or difficult to access.", sign2:"undefined", sign3:"undefined"};
level12 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2], [2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2], [2, 2, 3, 3, 1, 1, 3, 3, 2, 2, 2, 2, 1, 1, 1, 3, 2, 2], [2, 3, 3, 3, 1, 3, 3, 3, 2, 2, 3, 3, 1, 1, 1, 3, 3, 2], [2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 3, 2], [2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 3, 2], [2, 3, 1, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 1, 3, 2], [2, 2, 1, 1, 3, 3, 3, 3, 1, 1, 1, 3, 3, 3, 1, 1, 3, 2], [2, 2, 1, 1, 1, 3, 3, 2, 2, 1, 1, 3, 3, 3, 1, 2, 2, 2], [1, 2, 2, 2, 1, 1, 3, 3, 2, 1, 1, 3, 3, 1, 1, 2, 2, 2], [1, 17, 1, 1, 1, 1, 1, 3, 2, 2, 3, 3, 3, 1, 1, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
objects12 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 2, 13, 43, 3, 3, 1, 1, 1, 1, 1, 2, 43, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 42, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 43, 1], [1, 1, 31, 2, 20, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1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enemies:[0, 1], bg:1, effect:1, spawnFqcy:20, maxEnemies:5, enemyReserve:10, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Beware of creature's spawn points. They generate creatures until exhausted. Some might be inifinite though.", sign2:"This is a shop. You can buy and sell weapons and ammo and make gadgets from parts you find. You also get fully healed and your progress is automatically saved here.", sign3:"To change weapon press Q and E or Delete and PageDown. To check the amount of ammunition in your inventory, press I."};
level13 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2], [2, 3, 1, 1, 3, 3, 1, 1, 1, 1, 18, 3, 2, 3, 3, 3, 3, 2], [2, 3, 3, 1, 1, 3, 3, 1, 1, 2, 2, 2, 2, 1, 1, 3, 3, 2], [2, 2, 2, 2, 1, 1, 3, 1, 1, 3, 3, 3, 1, 1, 2, 2, 3, 2], [2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 3, 3, 1, 1, 2, 2, 2], [2, 3, 3, 1, 1, 1, 3, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2], [2, 3, 2, 2, 1, 1, 1, 3, 3, 1, 1, 1, 3, 1, 1, 1, 1, 2], [2, 4, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 3, 3, 2, 2, 2, 2], [2, 3, 3, 19, 1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2], [2, 3, 2, 2, 2, 2, 1, 1, 3, 3, 3, 1, 1, 2, 3, 3, 3, 2], [2, 3, 2, 1, 1, 17, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 3, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2]];
objects13 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 43, 1, 41, 1, 3, 1, 42, 1, 13, 1, 2, 1, 2, 1, 1, 1, 1], [1, 1, 1, 16, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 3, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params13 = {tier:1, enemies:[1], bg:1, effect:1, spawnFqcy:15, maxEnemies:5, enemyReserve:10, chest1:[11, 1, 50], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level14 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2], [2, 2, 2, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 3, 3, 3, 2], [2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 2, 2], [2, 3, 2, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 3, 17, 18, 19, 6], [2, 1, 2, 2, 1, 1, 1, 1, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2], [2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2], [2, 1, 1, 1, 3, 3, 3, 1, 1, 3, 3, 2, 2, 1, 1, 2, 3, 2], [2, 2, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 1, 1, 1, 3, 3, 3, 1, 2, 2, 1, 2, 2, 3, 2, 2, 2], [2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 3, 3, 2, 2, 2], [2, 2, 2, 2, 4, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 3, 2, 2], [2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
objects14 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 42, 1, 1, 1, 1, 1, 1, 41,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params14 = {tier:1, enemies:[2, 3], bg:1, effect:1, spawnFqcy:12, maxEnemies:7, enemyReserve:20, chest1:[11, 1, 50], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Now entering caves.", sign2:"undefined", sign3:"undefined"};
level15 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 5, 5, 5], [5, 5, 1, 1, 6, 6, 6, 6, 1, 1, 1, 1, 1, 5, 1, 17, 6, 5], [5, 5, 5, 1, 1, 5, 5, 5, 5, 5, 1, 1, 1, 5, 5, 5, 6, 5], [1, 6, 5, 5, 1, 1, 6, 6, 6, 5, 5, 1, 1, 1, 7, 6, 6, 5], [5, 6, 5, 5, 5, 5, 5, 5, 6, 6, 5, 1, 5, 1, 1, 1, 6, 5], [5, 1, 6, 6, 6, 6, 5, 5, 5, 6, 5, 1, 5, 5, 1, 1, 1, 5], [5, 1, 1, 1, 6, 6, 7, 6, 5, 6, 5, 5, 5, 5, 5, 1, 1, 5], [5, 5, 5, 5, 5, 6, 5, 5, 5, 1, 6, 6, 1, 5, 5, 5, 1, 5], [5, 6, 5, 1, 6, 6, 5, 5, 1, 1, 1, 5, 1, 1, 1, 1, 1, 5], [5, 6, 1, 1, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]];
objects15 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 5, 1, 1, 6, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params15 = {tier:2, enemies:[1, 7], bg:2, effect:1, spawnFqcy:12, maxEnemies:8, enemyReserve:15, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level16 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 5, 6, 5], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 5, 6, 6], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 5, 5, 5], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects16 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 72, 84, 72, 84, 72, 84, 72, 1, 1, 72, 1, 84, 1, 1, 1, 1], [1, 1, 74, 1, 74, 1, 74, 1, 74, 1, 1, 74, 1, 23, 1, 1, 1, 1], [1, 1, 74, 1, 74, 1, 74, 1, 74, 1, 1, 73, 75, 82, 1, 1, 1, 1], [1, 1, 74, 1, 74, 1, 74, 1, 74, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 74, 1, 74, 1, 74, 1, 74, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 73, 18, 73, 28, 73, 29, 73, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 72, 84, 72, 84, 72, 84, 72, 84, 72, 84, 72, 84, 72, 84, 72, 84], [1, 2, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1], [1, 2, 73, 76, 73, 71, 73, 76, 73, 71, 73, 76, 73, 71, 73, 76, 73, 71], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies16 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params16 = {tier:2, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-1, 5, 30], chest2:[12, 3, 75], chest3:[-2, 2, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level17 = [[5, 5, 5, 1, 5, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5], [1, 1, 5, 1, 5, 1, 7, 6, 6, 1, 1, 1, 1, 1, 1, 5, 1, 5], [5, 5, 5, 5, 5, 5, 5, 6, 6, 1, 1, 1, 1, 5, 1, 1, 1, 5], [5, 1, 1, 1, 1, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 7, 6, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 5], [5, 5, 6, 5, 6, 6, 6, 6, 1, 1, 1, 6, 6, 6, 6, 1, 1, 6], [5, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [11, 11, 12, 1, 1, 1, 1, 1, 5, 5, 1, 1, 5, 1, 1, 5, 1, 5], [12, 11, 12, 6, 5, 5, 1, 6, 5, 6, 1, 1, 6, 1, 1, 6, 1, 5], [12, 11, 11, 11, 5, 6, 6, 5, 5, 6, 1, 1, 6, 1, 1, 6, 5, 5], [1, 17, 18, 19, 1, 6, 6, 5, 5, 6, 6, 6, 5, 7, 7, 5, 5, 5], [11, 11, 11,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, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params17 = {tier:2, enemies:[2, 3, 4], bg:2, effect:1, spawnFqcy:8, maxEnemies:6, enemyReserve:12, chest1:[-2, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level18 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 3, 3, 5], [5, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1, 5, 5, 5, 6, 3, 3, 5], [5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 3, 2, 2], [5, 1, 1, 1, 1, 5, 5, 5, 5, 5, 6, 1, 1, 6, 6, 3, 3, 2], [1, 1, 5, 5, 1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 2, 3, 3, 2], [1, 1, 1, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2, 2, 2], [5, 1, 1, 1, 6, 5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 2, 2], [5, 6, 6, 6, 6, 5, 5, 6, 6, 6, 6, 6, 6, 6, 5, 17, 3, 3], [5, 5, 6, 6, 6, 6, 5, 5, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5], [5, 6, 6, 6, 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 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params18 = {tier:2, enemies:[6, 2, 4, 3, 7], bg:2, effect:1, spawnFqcy:7, maxEnemies:8, enemyReserve:21, chest1:[10, 3, 1], chest2:[11, 1, 50], chest3:[12, 1, 1], sign1:"I found a secret passage in the lower left corner, so I marked it with a weird torch. Too bad I ran out of dynamites. (Signed: Jeff, the treasure hunter)", sign2:"undefined", sign3:"undefined"};
level19 = [[2, 2, 2, 1, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5], [2, 3, 3, 1, 2, 2, 1, 1, 1, 1, 1, 1, 6, 6, 6, 5, 6, 5], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 5, 6, 5], [2, 3, 3, 1, 1, 6, 6, 1, 1, 1, 5, 1, 1, 1, 6, 5, 6, 5], [2, 2, 3, 1, 1, 6, 1, 1, 1, 1, 6, 1, 1, 1, 1, 5, 6, 5], [2, 2, 2, 1, 1, 6, 6, 6, 1, 1, 1, 1, 5, 1, 1, 5, 6, 5], [2, 3, 3, 1, 1, 1, 1, 1, 5, 1, 1, 1, 6, 1, 1, 5, 6, 5], [2, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 6, 5, 1, 5, 6, 5], [5, 1, 1, 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 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 4, 1, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params19 = {tier:2, enemies:[7], bg:2, effect:1, spawnFqcy:8, maxEnemies:8, enemyReserve:15, chest1:[0, 3, 30], chest2:[11, 1, 50], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level20 = [[2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 3, 1, 1, 1, 2, 2, 3, 3, 2, 2, 2, 1, 1, 1, 18, 19, 1], [2, 3, 1, 1, 2, 2, 3, 3, 1, 3, 3, 2, 2, 1, 2, 2, 2, 2], [2, 3, 1, 1, 2, 2, 2, 2, 1, 1, 3, 2, 2, 1, 1, 2, 2, 2], [2, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 3, 2, 2], [2, 3, 3, 2, 1, 1, 1, 1, 2, 1, 1, 3, 2, 1, 1, 3, 3, 2], [2, 3, 3, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 3, 2], [2, 3, 3, 2, 1, 1, 2,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params20 = {tier:1, enemies:[1], bg:1, effect:1, spawnFqcy:12, maxEnemies:7, enemyReserve:20, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level21 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2], [1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 1, 17, 1], [2, 3, 3, 3, 2, 2, 2, 2, 2, 4, 2, 2, 3, 3, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 2, 2, 2, 3, 3, 3, 2, 2], [2, 2, 1, 2, 2, 3, 2, 3, 2, 1, 2, 2, 2, 2, 3, 3, 3, 2], [2, 1, 1, 2, 2, 3, 3, 3, 2, 1, 1, 1, 3, 3, 3, 2, 2, 2], [2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params21 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 2, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Gems are used to buy special weapons which are better than their equivalents. Gems are very rare though.", sign2:"Beware of the press! It's poorly visible and very deadly.", sign3:"undefined"};
level22 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 3, 3, 3, 1, 1, 18, 1], [2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 3, 1, 1, 1, 2, 2], [2, 3, 2, 2, 1, 1, 2, 2, 2, 3, 3, 3, 3, 1, 1, 1, 2, 2], [2, 3, 2, 2, 1, 1, 3, 3, 2, 3, 1, 1, 2, 1, 1, 1, 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 1, 1, 1, 1, 1]];
enemies22 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params22 = {tier:1, enemies:[1], bg:1, effect:1, spawnFqcy:10, maxEnemies:6, enemyReserve:15, chest1:[11, 1, 50], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Don't go down there.", sign2:"undefined", sign3:"undefined"};
level23 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2], [3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 3, 3, 2, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 3, 3, 3, 2, 2, 3, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2], [2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1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies23 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 4, 1, 1, 4, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params23 = {tier:1, enemies:[0], bg:1, effect:1, spawnFqcy:15, maxEnemies:8, enemyReserve:10, chest1:[0, 3, 15], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"I've been observing the shopkeeper for a few days by now. It appears his substinence composes solely from bears. (Signed: Jonesy the archeologist)", sign2:"Watch out for lava. It's very deadly. Also useful for barbecue.", sign3:"undefined"};
level24 = [[2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 3, 3, 3, 3, 3, 1, 1, 3, 3, 3, 2, 2, 2, 2, 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 6, 6, 1, 1], [1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1, 1], [1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies24 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params24 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[14, 1, 1], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Johnny Lee, the shopkeep: \"Finally some customer! I've been waiting here for very very long time.\"", sign2:"undefined", sign3:"undefined"};
level25 = [[5, 2, 3, 3, 1, 2, 2, 2, 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 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1], [1, 10, 1, 1, 1, 1, 1, 54, 16, 1, 1, 1, 1, 1, 16, 1, 1, 1], [1, 25, 10, 1, 1, 1, 1, 1, 1, 1, 10, 10, 1, 1, 1, 1, 12, 1], [1, 25, 1, 1, 16, 1, 1, 52, 54, 1, 1, 16, 1, 1, 52, 54, 24, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies25 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 22, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params25 = {tier:2, enemies:[0, 9], bg:2, effect:1, spawnFqcy:4, maxEnemies:4, enemyReserve:999, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2: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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 25, 18, 28, 29, 25, 1, 1, 1, 1, 1, 1, 1], [1, 25, 51, 1, 1, 2, 1, 1, 1, 1, 1, 2, 50, 50, 20, 50, 50, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [26, 52, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies26 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params26 = {tier:2, enemies:[undefined], bg:2, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[11, 2, 50], chest2:[-1, 8, 40], chest3:[-2, 3, 1], sign1:"I've heard rumors about a giant spider living down here... pah, giant spider... who would possi... (the rest of the letters are covered in blood and unreadable.)", sign2:"undefined", sign3:"undefined"};
level27 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [6, 6, 6, 6, 6, 6, 5, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 6, 6, 6, 6, 7, 5, 6, 1, 1, 1, 1, 1, 1, 5, 1, 1, 5], [5, 5, 5, 5, 6, 5, 7, 1, 1, 1, 1, 6, 1, 6, 5, 1, 1, 6], [5, 6, 6, 6, 6, 7, 6, 1, 1, 1, 5, 5, 5, 5, 5, 6, 5, 5], [5, 6, 5, 5, 5, 5, 5, 1, 1, 5, 5, 6, 5, 5, 5, 6, 5, 5], [5, 1, 1, 1, 6, 6, 6, 1, 5, 5, 6, 6, 5, 7, 1, 1, 1, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 5, 5, 5, 6, 6, 5], [5, 5, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 6, 5, 5, 5, 5], [5, 6, 6, 6, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 6, 5, 5], [6, 1, 1, 1, 1, 1, 1, 1, 7, 7, 1, 1, 1, 1, 1, 1, 1, 6], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]];
objects27 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 16, 51, 1, 1, 2, 1, 50], [1, 1, 22, 1, 1, 25, 28, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params27 = {tier:2, enemies:[2, 3, 4, 6, 7], bg:2, effect:1, spawnFqcy:6, maxEnemies:8, enemyReserve:16, chest1:[0, 3, 30], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level28 = [[5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 6, 6, 1, 1, 6, 6, 6, 1, 1, 1, 5, 5, 5, 6, 6, 5], [5, 5, 5, 6, 1, 1, 1, 6, 6, 1, 1, 1, 6, 5, 6, 6, 6, 5], [6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 5], [5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 6, 6, 6, 5, 6, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5], [5, 6, 6, 6, 5, 6, 6, 5, 5, 1, 1, 1, 1, 1, 1, 1, 6, 5], [5, 6, 6, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6], [5, 7, 1, 1, 1, 1, 1, 1, 1, 5, 6, 6, 5, 5, 6, 6, 7, 5], [5, 5, 1, 1, 1, 1, 1, 1, 5, 5, 6, 6, 6, 6, 6, 6, 5, 5], [6, 1, 1, 1, 1, 1, 1, 5, 5, 5, 6, 6, 5, 6, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]];
objects28 = [[1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 50, 2, 1, 1, 1, 3, 1, 1, 10, 1, 1, 1, 1, 3, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 50, 1], [50, 52, 1, 2, 1, 1, 54, 1, 1, 1, 24, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params28 = {tier:2, enemies:[7, 10], bg:2, effect:1, spawnFqcy:10, maxEnemies:8, enemyReserve:12, chest1:[12, 10, 8], chest2:[-1, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level29 = [[5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 5, 1, 5, 5, 5, 5, 6, 5], [5, 1, 1, 1, 1, 5, 3, 3, 3, 3, 5, 1, 18, 1, 1, 5, 6, 5], [5, 1, 5, 5, 1, 5, 3, 3, 3, 3, 5, 5, 5, 5, 1, 5, 6, 5], [5, 1, 5, 1, 1, 5, 3, 2, 2, 3, 5, 1, 1, 1, 1, 5, 6, 5], [5, 1, 5, 1, 5, 5, 3, 3, 2, 3, 1, 1, 5, 5, 5, 5, 6, 5], [5, 1, 5, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 5, 6, 5], [5, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 6, 5], [1, 1, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 6, 8], [5, 5, 5, 6, 5, 5, 6, 6, 6, 6, 6, 6, 5, 5, 6, 5, 9, 8], [5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 6, 5, 5, 6, 6, 8, 9, 8], [5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 8], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 8, 8, 8, 9, 8]];
objects29 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 45, 46, 1, 1, 1, 1, 1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 10, 1, 1, 1, 19, 1, 1, 1], [1, 1, 1, 1, 1, 1, 19, 1, 1, 10, 1, 10, 1, 1, 19, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params29 = {tier:2, enemies:[undefined], bg:2, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level30 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [3, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1, 12, 1, 12, 11], [3, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1, 12, 1, 12, 11], [3, 11, 12, 11, 12, 12, 12, 12, 12, 12, 12, 11, 12, 11, 12, 11, 12, 11], [3, 11, 11, 11, 13, 12, 11, 11, 11, 11, 11, 11, 11, 11, 12, 1, 12, 11], [3, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 12, 1, 11, 11], [3, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 12, 1, 12, 11], [3, 11, 13, 11, 11, 11, 11, 11, 11, 11, 13, 12, 11, 11, 11, 1, 12, 11], [3, 11, 12, 12, 12, 11, 12, 12, 12, 12, 12, 12, 12, 11, 12, 1, 12, 11], [3, 11, 12, 12, 12, 18, 12, 12, 12, 12, 12, 12, 12, 11, 12, 11, 12, 11], [3, 11, 13, 13, 13, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 1, 12, 11], [3, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11, 1, 12, 11]];
objects30 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 53, 1, 1, 12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 1, 1, 1, 1, 1], [1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params30 = {tier:4, enemies:[12, 13, 15], bg:4, effect:0, spawnFqcy:8, maxEnemies:10, enemyReserve:20, chest1:[10, 2, 1], chest2:[11, 4, 25], chest3:[-2, 1, 1], sign1:"The armory is supposed to be the safest place in the whole fort. Then why does the floor look so thin there?", sign2:"undefined", sign3:"undefined"};
level31 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 13, 1, 11, 11, 11, 1, 11, 11, 11, 1, 11, 11, 11, 1, 11], [11, 11, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 1, 11, 1, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 11, 1, 1, 12, 11, 1, 1, 11, 1, 1, 11, 11, 1, 1, 11], [11, 1, 1, 11, 1, 1, 1, 11, 1, 1, 12, 1, 1, 11, 12, 1, 1, 11], [11, 11, 1, 11, 1, 1, 11, 12, 1, 11, 11, 11, 1, 11, 1, 1, 1, 1], [11, 1, 1, 11, 1, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 11, 1, 1, 12, 11, 1, 1, 1, 1, 1, 1, 11, 11, 1, 11], [11, 1, 1, 12, 1, 1, 1, 11, 1, 11, 11, 11, 1, 1, 12, 1, 1, 11], [11, 12, 1, 12, 1, 1, 1, 11, 1, 1, 1, 12, 1, 1, 1, 1, 1, 11], [11, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 11]];
objects31 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 18, 1, 30, 82, 1, 1, 1, 82, 1, 1, 1, 82, 1, 1, 1, 82, 1], [1, 1, 1, 1, 86, 43, 1, 1, 86, 1, 43, 1, 86, 1, 1, 43, 86, 1], [1, 1, 31, 1, 47, 1, 1, 1, 47, 1, 25, 1, 47, 1, 29, 1, 47, 1], [1, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1], [1, 1, 1, 1, 47, 1, 1, 1, 47, 1, 16, 1, 47, 1, 1, 1, 47, 1], [1, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1], [1, 2, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1], [1, 2, 1, 1, 47, 1, 43, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1], [1, 86, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1, 1, 1, 47, 1], [1, 86, 86, 16, 47, 54, 86, 1, 47, 41, 28, 16, 47, 54, 45, 86, 47, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies31 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params31 = {tier:4, enemies:[13, 15], bg:4, effect:1, spawnFqcy:5, maxEnemies:5, enemyReserve:15, chest1:[10, 5, 1], chest2:[11, 5, 25], chest3:[5, 5, 20], sign1:"Lucien did an indeed poor job connecting the sewer system. He was sentenced to thirty hits of a whip.", sign2:"I've built an emergency drain in the leftmost corner of this room. You never know when something might go wrong. (Signed: Lucien)", sign3:"undefined"};
level32 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 13, 12, 12, 11, 1, 18, 12, 12, 12, 11, 1, 1, 1, 1, 1, 1, 1], [11, 13, 12, 12, 11, 1, 11, 12, 12, 12, 11, 1, 1, 11, 11, 12, 11, 11], [11, 13, 12, 12, 11, 1, 11, 12, 12, 12, 18, 1, 1, 11, 12, 12, 12, 11], [11, 13, 12, 12, 19, 1, 11, 11, 11, 11, 11, 1, 1, 11, 12, 12, 12, 11], [11, 11, 11, 11, 11, 1, 11, 12, 12, 12, 11, 1, 1, 11, 11, 11, 12, 11], [12, 12, 12, 12, 11, 1, 11, 12, 12, 12, 11, 1, 1, 11, 12, 12, 12, 11], [11, 12, 12, 12, 19, 1, 18, 12, 12, 12, 19, 1, 1, 12, 12, 12, 12, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 11, 11, 11, 12, 11], [11, 12, 12, 12, 12, 12, 13, 12, 12, 12, 11, 1, 1, 11, 12, 12, 12, 11], [11, 12, 12, 12, 12, 12, 13, 12, 12, 12, 17, 1, 1, 12, 12, 12, 12, 11], [11, 11, 11, 11, 11, 11, 11, 11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects32 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 25, 25, 1, 14, 1, 1, 1, 53, 1, 1, 1, 1, 54, 2, 54, 1], [1, 2, 25, 15, 1, 1, 1, 1, 76, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 2, 1, 1, 1, 1, 1, 14, 44, 54, 1, 2, 2, 1, 1, 2, 1, 1], [1, 2, 31, 29, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 44, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 72, 15, 72, 1, 1, 1, 1, 1, 1, 2, 1], [13, 1, 1, 1, 1, 1, 1, 74, 75, 74, 1, 1, 1, 1, 1, 70, 2, 1], [1, 44, 54, 1, 1, 1, 1, 73, 15, 73, 1, 2, 2, 1, 1, 54, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 43, 43, 41, 1, 1, 1, 1, 1, 70, 2, 1], [1, 18, 1, 28, 1, 18, 1, 44, 2, 54, 1, 30, 14, 1, 54, 44, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies32 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 14, 1, 1, 1, 1, 15, 1, 15, 1, 1, 1, 1, 17, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 17, 14, 14, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params32 = {tier:4, enemies:[undefined], bg:4, effect:1, spawnFqcy:10, maxEnemies:9, enemyReserve:10, chest1:[7, 2, 20], chest2:[-2, 2, 1], chest3:[10, 10, 1], sign1:"Lavatory", sign2:"The mason sealed the doorway to the wine cellar. How will I drink my delicious drink now?", sign3:"undefined"};
level33 = [[11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [11, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 11], [11, 12, 1, 1, 1, 1, 12, 1, 12, 12, 1, 12, 1, 1, 1, 1, 12, 11], [11, 12, 1, 1, 1, 1, 1, 12, 12, 12, 12, 1, 1, 1, 1, 1, 12, 11], [11, 12, 1, 1, 1, 1, 1, 1, 12, 12, 1, 1, 1, 1, 1, 1, 12, 11], [11, 12, 1, 1, 1, 1, 1, 1, 12, 12, 1, 1, 1, 1, 1, 1, 12, 11], [11, 11, 11, 1, 1, 1, 11, 12, 1, 1, 12, 11, 1, 1, 1, 11, 11, 11], [12, 12, 11, 12, 12, 11, 11, 12, 1, 1, 12, 11, 11, 12, 12, 11, 12, 12], [11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 11]];
objects33 = [[1, 1, 1, 1, 1, 1, 1, 47, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1], [18, 2, 1, 1, 1, 1, 1, 47, 1, 1, 47, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 12, 1, 4, 5, 5, 4, 1, 11, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 25, 1, 1, 1, 1, 25, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 17, 1, 1, 1, 1, 17, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1], [1, 2, 1, 7, 7, 1, 1, 5, 5, 5, 5, 1, 1, 7, 7, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1]];
enemies33 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1], [1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 16, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params33 = {tier:4, enemies:[undefined], bg:4, effect:1, spawnFqcy:5, maxEnemies:9, enemyReserve:0, chest1:[11, 4, 25], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Obey!", sign2:"Pray!", sign3:"undefined"};
level34 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [12, 12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 12, 11], [11, 11, 11, 1, 1, 1, 1, 1, 11, 11, 1, 1, 1, 1, 1, 12, 12, 11], [11, 12, 1, 1, 1, 1, 1, 1, 12, 12, 1, 1, 1, 11, 11, 11, 12, 11], [11, 1, 1, 1, 11, 11, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 12, 11], [11, 1, 1, 1, 12, 12, 1, 1, 1, 11, 11, 1, 1, 1, 1, 1, 12, 11], [11, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 1, 11, 11, 11, 11, 12, 11], [11, 1, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 1, 11, 11, 12, 12, 11], [11, 12, 1, 12, 12, 1, 1, 12, 1, 1, 1, 1, 1, 11, 11, 12, 12, 11], [11, 11, 11, 12, 11, 11, 11, 11, 1, 11, 11, 11, 1, 11, 11, 12, 12, 11], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects34 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 16, 28, 1, 1, 1, 2, 1, 44, 54, 2, 2, 2, 3, 1, 1, 3, 1], [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 11, 3, 1, 54, 44, 2, 1, 3, 1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 11, 1, 1, 1, 1, 1, 1, 1, 54, 44, 1, 2, 1, 1, 1, 1, 1], [1, 11, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 70, 45, 20, 1, 1, 1], [1, 11, 1, 1, 1, 1, 1, 44, 1, 1, 1, 1, 1, 1, 1, 1, 25, 1], [1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 25, 1], [1, 11, 18, 1, 1, 54, 44, 1, 1, 1, 54, 44, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 71, 1, 1, 75, 1, 1, 71, 1, 1, 75, 1, 1, 71, 1, 16, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies34 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 17, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params34 = {tier:4, enemies:[13, 15], bg:4, effect:3, spawnFqcy:10, maxEnemies:5, enemyReserve:20, chest1:[-2, 1, 1], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level35 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 8, 9, 9, 9, 8, 9, 9, 8, 8, 9, 9, 1, 1, 1, 8, 9, 9], [8, 1, 1, 1, 1, 1, 1, 1, 9, 9, 1, 1, 1, 1, 1, 9, 9, 8], [8, 1, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 1, 9, 9, 8], [8, 1, 1, 11, 7, 11, 11, 11, 11, 11, 13, 12, 11, 1, 1, 9, 9, 8], [8, 1, 1, 11, 12, 11, 12, 12, 12, 12, 11, 12, 11, 1, 1, 9, 8, 8], [8, 1, 1, 11, 11, 11, 12, 12, 12, 12, 11, 12, 11, 1, 1, 9, 8, 8], [8, 1, 1, 11, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 1, 9, 8, 8], [8, 1, 1, 11, 12, 12, 11, 11, 11, 11, 11, 11, 11, 1, 9, 9, 8, 8], [8, 1, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 11, 1, 9, 8, 8, 8], [8, 1, 19, 12, 11, 11, 12, 12, 12, 12, 12, 12, 17, 1, 9, 7, 9, 8], [8, 8, 11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 8, 8, 8, 8, 8]];
objects35 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 61, 61, 1, 1, 11, 25, 1, 1, 1, 61, 61, 61, 3, 1, 19, 30], [1, 19, 1, 1, 1, 1, 1, 1, 61, 61, 1, 1, 1, 1, 1, 61, 19, 1], [1, 19, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 28, 2, 1, 1, 1, 1, 29, 1], [1, 19, 1, 1, 15, 1, 72, 1, 1, 72, 1, 2, 1, 1, 1, 19, 1, 1], [1, 19, 1, 1, 1, 1, 74, 71, 71, 74, 1, 2, 1, 1, 1, 19, 1, 1], [1, 1, 1, 1, 1, 70, 73, 1, 1, 73, 22, 2, 1, 1, 1, 1, 1, 1], [1, 1, 31, 1, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 70, 1, 84, 1, 1, 84, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 85, 85, 1, 1, 1, 1, 1, 63, 13, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies35 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params35 = {tier:3, enemies:[5], bg:3, effect:1, spawnFqcy:20, maxEnemies:6, enemyReserve:127, chest1:[11, 1, 100], chest2:[12, 3, 40], chest3:[10, 4, 1], sign1:"Be aware, for you are about to enter the castle of Olaf the Mad, the craziest ruler of the whole ice caves.", sign2:"(Why the hell did he build that castle here?)", sign3:"undefined"};
level36 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 8, 8, 8, 8], [9, 17, 1, 1, 1, 9, 9, 9, 9, 9, 1, 1, 1, 1, 9, 9, 9, 8], [8, 8, 8, 1, 1, 1, 9, 9, 9, 1, 1, 1, 1, 1, 1, 9, 9, 8], [8, 8, 8, 8, 1, 1, 8, 8, 8, 8, 1, 1, 1, 1, 8, 8, 8, 8], [8, 9, 9, 9, 1, 1, 1, 8, 9, 9, 1, 1, 9, 1, 18, 9, 9, 8], [8, 9, 9, 9, 1, 1, 1, 9, 9, 1, 1, 1, 8, 9, 8, 9, 9, 8], [8, 9, 9, 1, 1, 8, 9, 9, 8, 8, 1, 1, 1, 9, 8, 8, 10, 8], [8, 9, 8, 1, 1, 8, 8, 9, 9, 9, 1, 1, 1, 1, 9, 8, 8, 8], [8, 9, 8, 1, 1, 1, 9, 9, 9, 1, 1, 1, 9, 9, 9, 9, 10, 8], [8, 9, 8, 9, 9, 9, 9, 9, 8, 8, 1, 1, 8, 9, 9, 9, 9, 8], [8, 9, 8, 9, 9, 9, 8, 8, 8, 1, 1, 1, 8, 8, 9, 9, 9, 8], [8, 9, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 8, 8, 8, 8, 8, 8]];
objects36 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1], [1, 1, 1, 1, 19, 61, 61, 61, 1, 1, 3, 61, 1, 47, 10, 10, 10, 1], [1, 1, 1, 1, 19, 1, 1, 28, 1, 1, 19, 1, 1, 47, 24, 1, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 1, 1, 47, 1, 1, 1, 1], [1, 19, 61, 61, 1, 1, 61, 1, 61, 1, 1, 1, 16, 47, 1, 60, 60, 1], [1, 19, 1, 1, 1, 1, 1, 19, 62, 1, 1, 1, 1, 47, 1, 30, 1, 1], [1, 19, 1, 1, 1, 1, 62, 1, 1, 1, 1, 19, 19, 47, 1, 1, 18, 1], [1, 19, 1, 1, 1, 1, 1, 1, 61, 61, 1, 1, 19, 47, 61, 1, 1, 1], [1, 19, 1, 1, 1, 61, 1, 1, 1, 31, 1, 1, 62, 47, 1, 1, 25, 1], [1, 19, 1, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 4, 5, 5, 5, 1], [1, 19, 1, 6, 6, 6, 1, 1, 1, 1, 1, 13, 1, 1, 6, 6, 6, 1], [1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies36 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 9, 1, 1, 17, 17, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params36 = {tier:3, enemies:[10], bg:3, effect:1, spawnFqcy:10, maxEnemies:9, enemyReserve:10, chest1:[-2, 2, 1], chest2:[-1, 5, 10], chest3:[12, 1, 1], sign1:"Here lies the greatest warrior who ever lived, Knut the Magnificient. Too bad his treasure is just pile of junk.", sign2:"Woah, did you see that hole dude? (Signed: Eric)", sign3:"undefined"};
level37 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 9, 19, 10, 9, 9, 9, 1, 1, 9, 9, 1, 1, 1, 9, 9, 9, 9], [8, 9, 8, 9, 9, 9, 1, 1, 9, 9, 9, 1, 1, 1, 8, 8, 1, 8], [8, 8, 8, 1, 8, 8, 1, 1, 8, 8,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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies37 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 13, 13, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params37 = {tier:3, enemies:[10], bg:3, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:20, chest1:[-2, 2, 1], chest2:[6, 3, 30], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level38 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [1, 1, 17, 1, 9, 8, 9, 8, 8, 8, 1, 1, 8, 8, 9, 9, 9, 8], [8, 10, 8, 1, 9, 9, 9, 1, 1, 1, 1, 1, 9, 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 1, 1, 1, 1, 1, 1, 1, 1], [1, 62, 13, 1, 1, 62, 1, 60, 16, 62, 18, 60, 1, 1, 1, 1, 7, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies38 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 12, 1, 1, 1, 11, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params38 = {tier:3, enemies:[4, 6], bg:3, effect:1, spawnFqcy:10, maxEnemies:8, enemyReserve:20, chest1:[10, 3, 1], chest2:[5, 2, 30], chest3:[1, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level39 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 8], [8, 9, 9, 8, 9, 9, 9, 1, 1, 9, 9, 1, 1, 1, 1, 1,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, 1, 1, 22, 1, 1], [1, 1, 5, 5, 5, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 6, 6, 6, 6, 1, 60, 1, 16, 24, 1, 1, 1, 63, 62, 1, 25, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies39 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params39 = {tier:3, enemies:[9], bg:3, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:20, chest1:[5, 3, 30], chest2:[14, 1, 1], chest3:[14, 1, 1], sign1:"Welcome to the ice caves.", sign2:"undefined", sign3:"undefined"};
level40 = [[11, 11, 12, 12, 12, 11, 12, 12, 12, 11, 11, 12, 12, 11, 12, 1, 12, 11], [3, 11, 12, 12, 12, 12, 1, 12, 12, 12, 12, 12, 12, 11, 12, 1, 11, 11], [3, 11, 12, 12, 1, 1, 12, 12, 12, 12, 1, 12, 12, 11, 12, 1, 12, 11], [3, 11, 11, 12, 1, 1, 11, 1, 1, 11, 1, 1, 11, 11, 11, 1, 12, 11], [3, 11, 12, 12, 12, 1, 1, 1, 1, 1, 1, 12, 12, 11, 12, 1, 12, 11], [3, 11, 12, 1, 12, 1, 1, 1, 1, 1, 1, 12, 12, 11, 12, 13, 11, 11], [3, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 11, 11, 11, 12, 1, 12, 11], [3, 11, 12, 12, 1, 1, 19, 1, 1, 1, 12, 13, 13, 11, 11, 11, 12, 11], [3, 11, 12, 12, 12, 1, 11, 11, 11, 1, 1, 11, 12, 11, 12, 1, 12, 12], [3, 11, 11, 11, 11, 1, 1, 1, 1, 11, 11, 1, 11, 11, 12, 1, 11, 11], [3, 11, 12, 12, 1, 12, 12, 1, 1, 1, 12, 12, 12, 11, 12, 1, 12, 11], [3, 11, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 11]];
objects40 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 72, 1, 1, 1, 1, 72, 1, 1, 1, 1, 70, 1, 1], [1, 1, 1, 1, 1, 1, 25, 1, 1, 25, 1, 1, 15, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 70, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 44, 54, 1, 1, 1, 1, 1, 1, 1, 2, 44, 1, 1, 25, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 44, 54, 1, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 18, 44, 54, 2, 1, 1, 1, 74, 1, 1, 30, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 5, 5, 5, 5, 1, 1, 5, 1, 1, 1, 70, 1, 1], [1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 44, 1, 2, 1], [1, 1, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1]];
enemies40 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 15, 1], [1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1], [1, 1, 16, 1, 1, 1, 1, 11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params40 = {tier:4, enemies:[undefined], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 2, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Once a renowned alchemist lived here. He spent his days working on a solution that would flatten the mountains and level castles. One day, a big detonation shook the fort, the alchemist was gone and water flooded his laboratory.", sign2:"undefined", sign3:"undefined"};
level41 = [[11, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 11], [11, 1, 4, 3, 3, 3, 4, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 11], [11, 1, 4, 4, 1, 4, 4, 4, 3, 4, 4, 4, 4, 4, 3, 1, 4, 11], [11, 1, 4, 3, 4, 4, 3, 4, 1, 4, 4, 3, 4, 4, 4, 4, 3, 11], [11, 1, 1, 4, 3, 4, 1, 4, 4, 4, 3, 1, 4, 3, 3, 11, 13, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 4, 11, 1, 1], [11, 4, 1, 1, 1, 1, 1, 1, 1, 1, 11, 12, 1, 1, 1, 13, 1, 11], [11, 4, 4, 1, 1, 1, 11, 11, 1, 1, 11, 12, 12, 1, 1, 13, 1, 11], [1, 4, 4, 4, 4, 1, 1, 1, 1, 1, 11, 12, 11, 11, 11, 13, 1, 11], [11, 4, 4, 4, 4, 4, 1, 1, 11, 1, 1, 1, 1, 1, 1, 13, 1, 11], [11, 4, 4, 4, 4, 4, 4, 1, 11, 1, 1, 1, 11, 1, 1, 1, 1, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects41 = [[1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1, 1, 1, 25, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 29, 1], [1, 30, 29, 1, 1, 1, 44, 1, 1, 1, 1, 54, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[10, 5, 1], sign1:"Three young miners died in a cave in. This plate will forever remind us of the tragedy.", sign2:"undefined", sign3:"undefined"};
level42 = [[11, 11, 11, 11, 11, 11, 11, 11, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 4, 4, 4, 4, 4, 4, 11, 1, 11, 4, 2, 4, 2, 4, 4, 4, 11], [11, 4, 1, 1, 1, 1, 1, 11, 11, 11, 1, 1, 1, 1, 1, 1, 4, 11], [11, 4, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 4, 11], [11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 11], [1, 1, 11, 11, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 11, 11, 11], [11, 11, 11, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 11, 11, 1, 1], [11, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11], [11, 4, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 4, 11], [11, 4, 1, 1, 1, 1, 1, 1, 11, 11, 11, 1, 1, 1, 1, 1, 2, 11], [11, 4, 4, 4, 2, 4, 2, 4, 13, 1, 11, 2, 2, 2, 2, 2, 2, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 11, 11, 11, 11, 11, 11, 11, 11]];
objects42 = [[1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 25, 25, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 25, 25, 1, 1, 1, 1, 1, 1, 1, 1, 72, 1, 72, 1, 25, 25, 1], [1, 25, 25, 1, 1, 1, 1, 1, 1, 1, 1, 74, 23, 74, 1, 45, 25, 1], [1, 1, 1, 18, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params42 = {tier:4, enemies:[undefined], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[10, 5, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Here lies the mighty lord of the fort. May his paranoid and greedy soul rest in peace.", sign2:"undefined", sign3:"undefined"};
level43 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 11], [11, 1, 11, 12, 13, 11, 1, 1, 13, 13, 12, 12, 12, 1, 1, 1, 1, 11], [11, 1, 1, 1, 12, 11, 1, 1, 13, 12, 12, 1, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 1, 11, 11, 11, 11, 12, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 1, 1, 1, 12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 1, 1, 1, 12, 12, 1, 1, 11, 11, 11, 11, 11, 11, 1, 11], [1, 1, 11, 11, 1, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 11], [11, 1, 11, 1, 1, 1, 1, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 11], [11, 1, 11, 1, 11, 11, 11, 11, 12, 12, 12, 12, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 11, 1, 1, 1, 1, 1, 11], [11, 11, 11, 11, 11, 11, 11, 11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects43 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 72, 1, 1, 1, 28, 25, 1, 1, 1, 1, 1, 1, 1, 1, 2, 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, 1, 1, 1, 1], [1, 1, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params43 = {tier:4, enemies:[12, 13, 15], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:15, chest1:[6, 2, 20], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"To the left: The treasury. Trespassers will be decapitated!", sign2:"undefined", sign3:"undefined"};
level44 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 1, 1, 1, 1, 11, 1, 1], [11, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 11, 1, 11], [11, 1, 12, 12, 12, 12, 12, 13, 12, 1, 1, 11, 1, 1, 1, 1, 1, 11], [11, 12, 12, 12, 1, 1, 1, 13, 1, 11, 1, 1, 1, 11, 1, 1, 1, 11], [11, 12, 11, 11, 11, 1, 11, 11, 11, 11, 1, 1, 1, 11, 12, 1, 1, 11], [11, 1, 11, 12, 12, 1, 1, 1, 1, 1, 1, 12, 11, 11, 12, 1, 1, 11], [11, 1, 11, 12, 12, 12, 1, 1, 1, 1, 1, 11, 12, 12, 12, 1, 1, 11], [11, 1, 11, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 1, 1, 11], [11, 1, 11, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 11], [11, 1, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 11], [11, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects44 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 15, 1, 14, 1, 1, 14, 1, 1, 14, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params44 = {tier:4, enemies:[12, 13], bg:4, effect:1, spawnFqcy:15, maxEnemies:7, enemyReserve:15, chest1:[12, 3, 10], chest2:[-2, 1, 1], chest3:[-1, 5, 10], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level45 = [[8, 11, 11, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 8, 8, 8, 8, 8], [12, 12, 11, 12, 11, 11, 12, 12, 12, 12, 12, 12, 11, 11, 8, 8, 8, 8], [11, 12, 11, 12, 12, 12, 12, 12, 1, 1, 12, 1, 1, 11, 11, 8, 8, 8], [11, 12, 11, 11, 11, 11, 11, 12, 11, 1, 12, 1, 1, 12, 11, 11, 8, 8], [11, 12, 12, 11, 1, 12, 11, 11, 11, 12, 12, 11, 12, 12, 12, 11, 8, 8], [11, 11, 12, 11, 1, 12, 1, 12, 11, 11, 11, 11, 12, 11, 12, 11, 8, 8], [8, 11, 12, 11, 1, 11, 11, 12, 1, 1, 12, 11, 11, 11, 12, 11, 8, 8], [8, 11, 12, 1, 1, 12, 11, 11, 1, 1, 12, 1, 1, 1, 12, 11, 11, 8], [8, 11, 12, 1, 1, 12, 1, 11, 11, 12, 11, 1, 1, 1, 12, 12, 11, 8], [8, 11, 12, 11, 12, 11, 12, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 8], [8, 11, 11, 11, 11, 11, 11, 11, 11, 12, 11, 11, 11, 11, 11, 11, 11, 8], [8, 8, 8, 8, 8, 8, 8, 8, 11, 11, 11, 8, 8, 8, 8, 8, 8, 8]];
objects45 = [[1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 12, 1, 1, 1, 1, 1], [1, 1, 1, 1, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params45 = {tier:3, enemies:[undefined], bg:3, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 1, 1], chest2:[12, 1, 50], chest3:[11, 1, 300], sign1:"Royal wine cellar", sign2:"All wine turned into lava. King Olaf will not be happy about this... (Signed: Bjarne)", sign3:"Wine well (built on request of the King Olaf)"};
level46 = [[8, 9, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 8, 8, 8, 8, 8, 8], [8, 9, 9, 8, 8, 8, 9, 9, 8, 1, 1, 1, 8, 9, 9, 8, 8, 8], [8, 9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 9, 9, 8], [8, 8, 8, 8, 8, 9, 9, 9, 9, 1, 1, 9, 9, 9, 1, 1, 9, 8], [8, 9, 8, 9, 1, 1, 9, 9, 1, 1, 1, 9, 9, 9, 1, 1, 9, 8], [8, 9, 9, 1, 1, 9, 8, 8, 1, 1, 1, 8, 8, 8, 8, 1, 1, 8], [8, 9, 9, 9, 1, 1, 9, 1, 1, 1, 1, 9, 9, 8, 9, 1, 1, 8], [8, 8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 1, 1, 1, 8], [8, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8], [8, 9, 1, 1, 10, 5, 5, 1, 1, 5, 8, 1, 1, 1, 8, 9, 9, 8], [8, 9, 9, 8, 10, 8, 5, 5, 5, 5, 8, 8, 8, 9, 9, 9, 9, 8], [8, 8, 9, 8,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, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 1, 19, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params46 = {tier:3, enemies:[10], bg:3, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:15, chest1:[0, 5, 15], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"", sign2:"undefined", sign3:"undefined"};
level47 = [[8, 8, 8, 8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 1, 1, 17, 9, 9, 9, 9, 9, 9, 1, 1, 1, 1, 9, 9, 9, 8], [8, 1, 8, 8, 9, 8, 8, 9, 9, 1, 1, 1, 1, 1, 9, 9, 9, 8], [8, 9, 8, 9, 9, 8, 8, 8, 8, 8, 1, 1, 1, 1, 8, 9, 8, 8], [8, 9, 8, 9, 8, 8, 9, 9, 9, 19, 1, 1, 1, 1, 1, 9, 9, 8], [8, 9, 8, 9, 9, 8, 8, 8, 9, 8, 1, 1, 8, 8, 1, 1, 9, 8], [8, 9, 8, 8, 9, 8, 9, 9, 9, 8, 9, 9, 9, 9, 1, 1, 5, 5], [8, 9, 8, 9, 9, 8, 9, 8, 10, 8, 8, 9, 9, 1, 1, 6, 6, 5], [8, 9, 8, 9, 9, 9, 9, 8, 10, 8, 8, 8, 5, 1, 5, 5, 6, 5], [8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 5, 5, 5, 5, 5, 5], [8, 9, 9, 9, 9, 9, 9, 9, 9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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params47 = {tier:3, enemies:[5], bg:3, effect:1, spawnFqcy:12, maxEnemies:7, enemyReserve:15, chest1:[-2, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"(This sign waits for a witty comment)", sign2:"undefined", sign3:"undefined"};
level48 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8], [8, 9, 9, 9, 9, 1, 1, 1, 1, 1, 8, 8, 1, 1, 1, 1, 8, 8], [8, 9, 9, 9, 1, 1, 1, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 8], [8, 9, 8, 8, 1, 1, 1, 1, 8, 9, 9, 8, 1, 1, 1, 1, 1, 8], [8, 9, 8, 8, 8, 8, 1, 1, 8, 9, 8, 8, 8, 8, 1, 1, 1, 8], [8, 9, 10, 1, 1, 1, 1, 1, 9, 9, 9, 9, 8, 8, 8, 1, 1, 8], [8, 9, 8, 1, 1, 1, 8, 8, 8, 8, 9, 9, 9, 9, 8, 8, 1, 8], [8, 8, 8, 1, 1, 1, 9, 8, 8, 8, 8, 8, 9, 1, 8, 9, 1, 8], [8, 9, 9, 1, 1, 1, 9, 9, 9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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params48 = {tier:3, enemies:[4, 3], bg:3, effect:1, spawnFqcy:10, maxEnemies:8, enemyReserve:127, chest1:[11, 1, 100], chest2:[11, 1, 200], chest3:[10, 3, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level49 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 8, 8, 1, 9, 9, 9, 9, 9, 8, 9, 9, 9, 1, 8, 8, 8, 8], [8, 8, 1, 1, 9, 9, 9, 8, 8, 8, 1, 9, 9, 1, 1, 8, 8, 8], [8, 1, 1, 9, 9, 8, 1, 1, 1, 1, 1, 1, 9, 1, 1, 8, 9, 8], [8, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 8, 9, 8], [8, 1, 9, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 9, 8], [8, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 9, 8], [8, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 8, 9, 8], [8, 1, 1, 1, 1, 1, 8, 1, 1, 8, 1, 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 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params49 = {tier:3, enemies:[10], bg:3, effect:1, spawnFqcy:15, maxEnemies:5, enemyReserve:20, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level50 = [[11, 11, 1, 1, 1, 1, 1, 1, 11, 1, 1, 11, 11, 11, 11, 11, 12, 11], [3, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 11, 12, 1, 12, 11], [3, 11, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 12, 11, 12, 11, 11, 11], [3, 11, 1, 1, 1, 1, 1, 13, 11, 11, 11, 1, 11, 11, 12, 1, 12, 11], [11, 11, 1, 1, 1, 1, 1, 11, 12, 12, 1, 1, 12, 13, 11, 11, 12, 11], [11, 12, 1, 1, 1, 1, 1, 11, 12, 1, 1, 12, 12, 11, 12, 1, 12, 11], [11, 12, 1, 1, 1, 1, 1, 11, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 12, 12, 12, 12, 12, 11], [11, 1, 1, 1, 1, 1, 1, 11, 1, 11, 1, 1, 1, 1, 12, 11, 1, 1], [11, 12, 1, 1, 1, 12, 12, 11, 1, 12, 1, 1, 11, 11, 12, 12, 1, 1], [11, 12, 12, 1, 12, 12, 11, 13, 1, 1, 1, 1, 12, 1, 1, 12, 12, 1], [11, 11, 2, 2, 2, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects50 = [[1, 1, 47, 47, 47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 47, 47, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 47, 47, 1, 2, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 47, 47, 1, 2, 25, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 47, 47, 1, 2, 1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1], [1, 41, 47, 47, 47, 1, 2, 1, 1, 1, 1, 54, 16, 1, 18, 1, 1, 1], [1, 1, 47, 47, 47, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 47, 47, 1, 2, 1, 1, 25, 1, 1, 1, 1, 1, 44, 1, 1], [1, 5, 4, 4, 4, 5, 5, 1, 1, 1, 1, 70, 20, 70, 1, 1, 1, 1], [1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 6, 6, 6, 6, 6, 1, 25, 24, 54, 44, 54, 52, 54, 51, 16, 1, 54], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies50 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params50 = {tier:4, enemies:[12, 13, 15], bg:4, effect:1, spawnFqcy:10, maxEnemies:9, enemyReserve:21, chest1:[-2, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level51 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 12, 12, 11], [11, 12, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 12, 13], [11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11], [11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 11], [11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11], [12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 11], [12, 12, 1, 1, 11, 1, 1, 11, 1, 1, 11, 1, 1, 11, 1, 1, 12, 11], [12, 12, 12, 12, 11, 1, 1, 11, 1, 1, 11, 1, 1, 11, 12, 12, 12, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects51 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 2, 2, 2, 73, 1, 73, 25, 25, 73, 1, 73, 2, 2, 43, 41, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 45, 1], [1, 2, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 17, 54, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 30, 1, 1, 16, 1, 1, 16, 1, 1, 54, 1, 1, 1, 1], [1, 1, 1, 1, 1, 7, 7, 1, 1, 1, 1, 7, 7, 1, 1, 1, 1, 1], [1, 1, 54, 17, 1, 8, 8, 1, 24, 24, 1, 8, 8, 1, 17, 54, 17, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies51 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 14, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params51 = {tier:4, enemies:[1], bg:4, effect:1, spawnFqcy:5, maxEnemies:9, enemyReserve:20, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Chester, I told you many times to take care of the bats here. No wonder no one wants to live in the bottom section of the fort! (Signed: Mort)", sign2:"I tried everything! Moreover, you didn't fix the wall to the upper right either! (Signed: Chester)", sign3:"undefined"};
level52 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 1, 3, 4, 4, 4, 11, 12, 17, 19, 18, 1, 1, 17, 1, 11], [1, 1, 1, 1, 3, 4, 11, 11, 11, 11, 11, 11, 11, 1, 11, 11, 1, 11], [11, 11, 11, 1, 11, 11, 11, 1, 1, 1, 12, 12, 11, 1, 1, 11, 1, 11], [11, 1, 1, 1, 1, 1, 1, 1, 1, 11, 12, 12, 11, 1, 1, 11, 1, 11], [11, 1, 11, 11, 11, 13, 13, 13, 13, 13, 12, 12, 11, 1, 1, 11, 1, 11], [11, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 1, 11, 1, 11], [11, 11, 1, 11, 13, 13, 11, 13, 13, 13, 11, 11, 11, 1, 1, 11, 1, 11], [11, 13, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 1, 11, 1, 11], [11, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 1, 1, 11, 1, 11], [11, 11, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1, 1, 11, 1, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 11]];
objects52 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 72, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1], [44, 54, 30, 74, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [1, 1, 1, 74, 1, 1, 1, 43, 1, 1, 72, 1, 1, 2, 12, 1, 70, 1], [1, 1, 26, 73, 1, 1, 42, 1, 1, 1, 74, 1, 1, 2, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 74, 1, 1, 11, 2, 1, 1, 1], [1, 1, 2, 1, 70, 1, 70, 1, 70, 1, 73, 18, 1, 2, 2, 1, 70, 1], [1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 12, 1, 1, 1], [1, 14, 2, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 2, 2, 1, 1, 1], [1, 1, 1, 74, 71, 74, 71, 74, 71, 74, 71, 74, 1, 11, 2, 1, 70, 1], [1, 1, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 16, 1, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 1]];
enemies52 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params52 = {tier:4, enemies:[14], bg:4, effect:1, spawnFqcy:5, maxEnemies:5, enemyReserve:10, chest1:[10, 5, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Beware of the ancient fort guardians' ghosts.", sign2:"Don't you dare to enter the room on the left, mortal! It leads to completely secret room that is ultimately secret.", sign3:"undefined"};
level53 = [[11, 11, 11, 11, 11, 11, 11, 11, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 1, 1, 1, 1, 12, 12, 12, 12, 1, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1, 1, 1, 11], [11, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 11], [11, 1, 1, 11, 12, 12, 12, 12, 12, 12, 12, 1, 12, 12, 13, 1, 1, 11], [11, 1, 1, 19, 1, 12, 12, 12, 12, 1, 1, 1, 1, 12, 13, 1, 1, 1], [11, 1, 1, 11, 12, 12, 11, 11, 12, 1, 1, 1, 12, 12, 13, 1, 1, 11], [11, 1, 11, 11, 12, 12, 12, 11, 12, 11, 12, 12, 12, 12, 11, 1, 1, 11], [11, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 11], [11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects53 = [[1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 28, 1, 16, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1], [1, 2, 1, 1, 1, 1, 1, 72, 1, 1, 72, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 1, 1, 1, 73, 71, 1, 74, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 1, 5, 5, 1, 1, 1, 45, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 6, 6, 6, 1, 5, 1, 5, 5, 5, 5, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 1, 1, 72, 1, 1, 1, 72, 1, 1, 72, 1, 1, 1, 72, 1, 1, 1], [1, 16, 24, 73, 18, 24, 45, 73, 1, 30, 73, 45, 1, 5, 5, 5, 5, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies53 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params53 = {tier:4, enemies:[12, 13], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:15, chest1:[10, 5, 1], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"Imbecile! I told you to build me an indestructible house, not this!", sign2:"undefined", sign3:"undefined"};
level54 = [[11, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 1, 11, 11, 1, 11, 11, 12, 11, 11, 1, 1, 1, 1, 1, 1, 11], [11, 1, 1, 1, 1, 1, 1, 12, 12, 12, 11, 1, 1, 1, 1, 1, 1, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11], [18, 1, 11, 12, 12, 12, 12, 11, 12, 12, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 12, 12, 12, 1, 11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 1, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [11, 12, 11, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 11], [11, 12, 11, 1, 1, 1, 1, 1, 11, 11, 11, 12, 1, 1, 1, 1, 1, 11], [11, 12, 12, 12, 11, 1, 1, 1, 1, 1, 11, 11, 11, 1, 1, 11, 11, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects54 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 3, 1, 22, 1, 1, 1, 1, 1, 1, 1, 72, 1, 47, 1, 72, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 47, 1, 74, 1], [1, 1, 1, 1, 1, 1, 1, 44, 1, 16, 1, 1, 74, 1, 47, 1, 74, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 47, 1, 25, 1], [1, 2, 1, 14, 1, 1, 1, 1, 1, 1, 72, 1, 74, 2, 47, 1, 25, 1], [1, 2, 1, 18, 28, 1, 2, 1, 1, 1, 74, 1, 74, 2, 47, 1, 1, 1], [1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 73, 1, 1, 1, 47, 1, 1, 1], [1, 2, 1, 1, 1, 1, 2, 1, 1, 24, 1, 1, 1, 1, 47, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 73, 1, 47, 1, 73, 1], [1, 1, 1, 1, 1, 44, 24, 54, 1, 16, 1, 1, 1, 5, 4, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies54 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 14, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1, 1, 1, 17, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params54 = {tier:4, enemies:[12, 15], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:15, chest1:[7, 3, 10], chest2:[6, 3, 20], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level55 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8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16, 1, 31, 19, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 19, 1, 1, 1, 1, 1, 1, 19, 1, 1], [1, 1, 1, 1, 16, 1, 1, 26, 1, 1, 10, 10, 10, 1, 10, 19, 1, 30], [1, 1, 1, 1, 1, 1, 1, 1, 24, 24, 16, 24, 24, 24, 24, 24, 24, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies55 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params55 = {tier:3, enemies:[11], bg:3, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:999, chest1:[-2, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"The room full of enemies and traps.", sign2:"Screw this, i'm going home. (Signed: Frankburt, the 2nd greatest adventurer who ever lived)", sign3:"undefined"};
level56 = [[8, 8, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 1, 1, 17, 17, 17, 17, 17, 1, 1, 1, 9, 8, 1, 1, 1, 9, 9], [8, 1, 8, 8, 8, 8, 8, 8, 8, 1, 1, 9, 8, 1, 1, 8, 8, 8], [8, 1, 9, 8, 9, 9, 9, 8, 1, 1, 9, 9, 8, 9, 1, 1, 1, 8], [8, 9, 9, 8, 9, 9, 9, 8, 1, 8, 8, 8, 8, 9, 1, 1, 1, 8], [8, 9, 9, 9, 9, 9, 9, 8, 1, 1, 9, 9, 8, 8, 9, 1, 1, 8], [8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 8, 9, 9, 8, 8, 9, 1, 8], [8, 8, 8, 8, 1, 9, 9, 8, 1, 8, 8, 9, 1, 8, 9, 1, 9, 8], [1, 1, 1, 9, 1, 1, 9, 8, 1, 1, 8, 1, 1, 9, 1, 9, 9, 8], [1, 9, 8, 8, 1, 1, 8, 8, 1, 1, 8, 8, 1, 1, 8, 8, 8, 8], [8, 9, 9, 9, 1, 1, 9, 9, 1, 1, 9, 9, 1, 8, 8, 9, 10, 9], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]];
objects56 = [[1, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 19, 30, 1, 1, 1, 1, 1, 61, 1, 10, 1, 1, 10, 19, 61, 1, 1], [1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 1, 1, 1], [1, 19, 1, 1, 3, 25, 3, 1, 19, 1, 17, 18, 1, 1, 19, 61, 61, 1], [1, 5, 5, 1, 5, 5, 5, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 6, 6, 6, 6, 6, 6, 1, 19, 1, 1, 19, 1, 1, 1, 1, 1, 1], [1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maxEnemies:7, enemyReserve:15, chest1:[4, 5, 8], chest2:[11, 1, 50], chest3:[12, 10, 1], sign1:"I must have been drunk when i set up these 5 consecutive doors. (Signed: King Olaf)", sign2:"undefined", sign3:"undefined"};
level57 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [9, 9, 9, 8, 8, 8, 9, 9, 9, 9, 8, 8, 9, 9, 1, 1, 1, 1], [8, 9, 1, 9, 8, 9, 1, 1, 9, 8, 8, 8, 8, 1, 1, 1, 1, 8], [8, 1, 1, 8, 8, 1, 1, 8, 1, 9, 9, 8, 8, 8, 1, 8, 8, 8], [8, 1, 1, 8, 8, 1, 1, 8, 1, 1, 1, 9, 9, 8, 1, 9, 9, 8], [8, 1, 1, 9, 8, 1, 1, 8, 8, 8, 1, 1, 9, 8, 1, 1, 9, 8], [8, 1, 1, 9, 8, 1, 1, 8, 8, 8, 1, 1, 1, 8, 1, 1, 1, 8], [8, 1, 1, 8, 8, 1, 1, 9, 9, 8, 1, 1, 1, 8, 8, 8, 1, 8], [8, 8, 1, 1, 1, 1, 1, 9, 9, 8, 1, 1, 1, 8, 9, 1, 9, 8], [8, 8, 1, 1, 1, 9, 9, 9, 8, 8, 1, 1, 1, 9, 9, 1, 8, 8], [10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 9, 9, 9, 8, 8], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 8, 8]];
objects57 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 19, 61, 1, 1, 1, 61, 13, 19, 28, 1, 1, 18, 1, 3, 61, 1, 63], [1, 19, 1, 13, 1, 19, 1, 24, 1, 1, 1, 1, 1, 1, 19, 62, 62, 1], [1, 19, 1, 1, 1, 19, 1, 1, 1, 61, 19, 1, 1, 1, 19, 1, 1, 1], [1, 19, 1, 1, 1, 19, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params57 = {tier:3, enemies:[6, 4], bg:3, effect:1, spawnFqcy:10, maxEnemies:8, enemyReserve:20, chest1:[10, 5, 1], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level58 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [1, 1, 1, 1, 9, 9, 9, 1, 1, 1, 1, 9, 9, 9, 8, 8, 8, 8], [8, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 8, 8], [8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 8], [8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 8], [8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [8, 9, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [8, 9, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [8, 8, 9, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 8, 1, 8, 8, 8], [8, 8, 9, 9, 9, 1, 9, 9, 1, 1, 1, 1, 9, 8, 1, 1, 1, 1], [8, 8, 8, 9, 9, 9, 9, 9, 9, 1, 1, 9, 8, 8, 1, 1, 1, 8], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]];
objects58 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [63, 19, 1, 1, 1, 16, 1, 61, 61, 1, 61, 1, 1, 61, 1, 1, 1, 1], [1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 61, 1, 1, 1], [1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params58 = {tier:3, enemies:[5, 7, 10], bg:3, effect:1, spawnFqcy:4, maxEnemies:6, enemyReserve:30, chest1:[12, 4, 20], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level59 = [[8, 8, 9, 8, 9, 9, 8, 9, 9, 8, 9, 9, 8, 9, 9, 8, 9, 8], [8, 9, 9, 8, 9, 1, 8, 9, 1, 8, 1, 9, 8, 1, 9, 8, 9, 8], [8, 9, 9, 9, 9, 1, 9, 1, 1, 1, 1, 1, 8, 1, 9, 8, 1, 8], [8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 8, 1, 8], [8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 8], [8, 8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 8, 1, 8], [8, 8, 8, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 8, 1, 8], [8, 8, 8, 8, 9, 9, 9, 1, 1, 1, 1, 1, 9, 9, 8, 8, 1, 8], [8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 8, 8, 8, 1, 1, 8], [1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 8], [8, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 1, 1, 1, 1, 1, 1, 8], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]];
objects59 = [[1, 1, 19, 1, 6, 6, 1, 6, 6, 1, 6, 6, 1, 6, 6, 1, 19, 1], [1, 5, 5, 1, 6, 6, 1, 6, 6, 1, 6, 6, 1, 6, 6, 1, 19, 1], [1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 6, 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, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params59 = {tier:3, enemies:[11], bg:3, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 2, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level60 = [[14, 14, 14, 2, 2, 15, 3, 3, 15, 15, 15, 15, 3, 2, 2, 14, 14, 14], [14, 15, 15, 15, 15, 15, 3, 3, 15, 15, 15, 3, 3, 15, 2, 2, 2, 14], [14, 15, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 14], [14, 2, 2, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 1, 3, 15, 14], [14, 4, 3, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 3, 15, 14], [14, 15, 3, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 3, 15, 14], [14, 15, 3, 4, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, 15, 15], [14, 15, 3, 1, 1, 1, 1, 1, 4, 2, 1, 1, 1, 2, 2, 3, 15, 15], [14, 2, 3, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 1, 1, 3, 15, 14], [14, 2, 3, 3, 3, 3, 3, 2, 2, 4, 2, 3, 3, 3, 3, 3, 2, 14], [14, 2, 3, 3, 3, 3, 2, 2, 4, 4, 2, 3, 3, 3, 2, 2, 2, 14], [14, 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 14, 14, 14]];
objects60 = [[1, 1, 1, 1, 1, 16, 47, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1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 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params60 = {tier:5, enemies:[10], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:30, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[-2, 2, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level61 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 4, 3, 3, 4, 4, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 3, 2], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 14], [14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 14], [14, 1, 1, 15, 1, 15, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 16, 14], [14, 1, 1, 14, 1, 14, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 16, 14], [1, 1, 1, 14, 1, 1, 1, 1, 1, 1, 14, 1, 14, 14, 14, 14, 14, 14], [1, 1, 14, 14, 1, 1, 1, 1, 14, 1, 15, 1, 15, 15, 15, 15, 15, 14], [14, 1, 15, 14, 1, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 1, 15], [14, 14, 14, 14, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 1, 14], [15, 15, 15, 15, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 14, 14, 14], [15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects61 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 23, 1,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1], [1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params61 = {tier:5, enemies:[13, 16], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:20, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Miner scum! We told you to move and dig in the lowest palace floors! Why do you waste your time here!", sign2:"undefined", sign3:"undefined"};
level62 = [[11, 2, 2, 2, 2, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 11, 1, 11], [2, 2, 2, 2, 11, 11, 11, 11, 11, 1, 1, 1, 1, 11, 11, 11, 1, 11], [2, 2, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 11], [2, 11, 1, 15, 1, 15, 1, 15, 1, 1, 1, 1, 1, 1, 1, 11, 1, 11], [14, 14, 15, 14, 15, 14, 15, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [14, 14, 14, 14, 14, 14, 14, 14, 1, 1, 1, 1, 1, 11, 11, 1, 1, 11], [14, 15, 15, 15, 15, 15, 15, 14, 1, 1, 11, 13, 1, 12, 12, 1, 1, 19], [14, 15, 15, 15, 15, 15, 15, 15, 1, 1, 12, 12, 1, 1, 1, 1, 1, 11], [17, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1, 11, 11, 1, 1, 1, 11], [14, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1, 12, 12, 1, 11, 1, 11], [14, 15, 15, 15, 15, 15, 15, 16, 12, 1, 1, 1, 1, 1, 1, 12, 1, 11], [14, 14, 14, 14, 14, 14, 14, 14, 11, 11, 11, 11, 11, 11, 11, 11,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, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params62 = {tier:5, enemies:[16], bg:5, effect:1, spawnFqcy:10, maxEnemies:6, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Entering: The Palace", sign2:"undefined", sign3:"undefined"};
level63 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 11, 1, 1, 1, 1, 1, 1, 12, 12, 11, 11, 12, 12, 12, 12, 12, 11], [11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 1, 1, 12, 12, 12, 12], [11, 1, 1, 16, 1, 16, 1, 16, 1, 1, 1, 1, 1, 1, 16, 12, 12, 14], [11, 1, 1, 14, 14, 14, 14, 14, 1, 1, 1, 1, 1, 1, 14, 14, 14, 14], [11, 1, 1, 14, 15, 15, 15, 16, 1, 1, 16, 1, 14, 1, 16, 15, 15, 14], [1, 1, 1, 16, 15, 15, 15, 16, 1, 1, 14, 14, 14, 1, 16, 15, 15, 14], [11, 1, 1, 14, 14, 14, 15, 16, 1, 1, 16, 15, 14, 1, 14, 15, 14, 14], [11, 12, 1, 16, 15, 15, 15, 14, 12, 1, 14, 15, 14, 12, 14, 15, 15, 14], [11, 12, 1, 14, 14, 14, 15, 14, 12, 12, 14, 15, 14, 12, 14, 15, 15, 14], [11, 12, 12, 14, 15, 15, 15, 14, 12, 12, 14, 15, 14, 12, 14, 15, 15, 14],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, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params63 = {tier:5, enemies:[10], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:20, chest1:[-2, 1, 1], chest2:[-1, 5, 5], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level64 = [[2, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 2, 2, 2, 11, 2, 2, 2], [11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 14], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 14, 14], [11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 14], [11, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 14, 14, 14, 14, 14, 14], [11, 11, 1, 1, 1, 12, 12, 12, 1, 1, 1, 1, 1, 15, 15, 15, 14, 14], [2, 12, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 14], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14], [11, 3, 3, 1, 13, 11, 11, 11, 11, 1, 1, 1, 14, 1, 14, 1, 15, 14], [11, 11, 3, 3, 11, 3, 3, 3, 11, 1, 1, 1, 15, 1, 15, 1, 15, 14], [11, 3, 3,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, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 19, 1, 19, 1, 1, 1, 1, 15, 1, 1, 15, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params64 = {tier:5, enemies:[10], bg:5, effect:1, spawnFqcy:10, maxEnemies:7, enemyReserve:20, chest1:[-1, 3, 10], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"In contradiction to what the builders of the palace told their masters, the defense towers weren't indestructible. A mere hit with a catapult or a cannon would tear some of the walls down.", sign2:"undefined", sign3:"undefined"};
level67 = [[8, 8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 8], [2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1, 1, 3, 3, 3, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14, 14, 1, 1, 1, 3, 3, 2], [2, 1, 1, 1, 1, 1, 1, 1, 14, 14, 14, 14, 14, 1, 1, 1, 3, 2], [2, 1, 1, 1, 1, 1, 1, 14, 14, 14, 14, 14, 14, 14, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 11, 12, 12, 12, 12, 12, 11, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 11, 12, 1, 12, 1, 12, 11, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 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[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params67 = {tier:3, enemies:[undefined], bg:6, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[13, 1, 1], chest2:[5, 10, 30], chest3:[12, 1, 1], sign1:"Woah what the hell are you doing here! Get the fuck outta my house!", sign2:"I buried my treasure somewhere around here. Shhh! It's a secret!", sign3:"undefined"};
level70 = [[2, 14, 1, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [14, 15, 1, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [14, 15, 1, 15, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14], [14, 14, 1, 15, 14, 1, 1, 1, 1, 1, 1, 1, 1, 14, 1, 1, 1, 1], [14, 15, 1, 15, 14, 15, 1, 14, 14, 14, 15, 14, 14, 14, 15, 14, 14, 14], [14, 15, 1, 15, 16, 14, 1, 15, 15, 16, 14, 16, 16, 14, 14, 14, 14, 14], [14, 15, 1, 15, 14, 15, 1, 1, 1, 1, 1, 1, 1, 19, 18, 17, 15, 14], [14, 14, 15, 15, 14, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 14], [14, 15, 15, 15, 14, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 14, 15, 14], [14, 4, 15, 15, 14, 15, 14, 14, 15, 14, 14, 14, 15, 14, 15, 14, 15, 14], [14, 4, 4, 15, 15, 15, 14, 14, 15, 14, 14, 15, 15, 15, 15, 15, 15, 14], [14, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects70 = [[1, 1, 47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 85, 47, 1, 1, 1, 1, 1, 82, 1, 1, 1, 82, 1, 1, 1, 82, 1], [1, 1, 47, 1, 1, 1, 1, 1, 83, 1, 1, 16, 83, 1, 1, 20, 83, 1], [1, 1, 47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 47, 1, 25, 1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1], [1, 85, 47, 1, 1, 1, 1, 1, 1, 30, 1, 16, 1, 1, 1, 1, 2, 1], [1, 1, 4, 5, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 6, 6, 6, 1, 6, 6, 1, 1, 1, 85, 1, 2, 1, 84, 1, 2, 1], [1, 6, 6, 6, 1, 6, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1], [1, 6, 6, 6, 6, 6, 1, 1, 2, 1, 1, 20, 2, 27, 21, 27, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies70 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params70 = {tier:5, enemies:[13, 16], bg:5, effect:1, spawnFqcy:10, maxEnemies:10, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"You are about to enter the Royal Quarters. Take off your hat, lowly scum!", sign2:"undefined", sign3:"undefined"};
level71 = [[14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14], [14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15], [14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15], [15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15], [14, 14, 14, 1, 14, 1, 14, 14, 1, 1, 1, 1, 1, 1, 14, 14, 14, 14], [14, 1, 15, 1, 15, 1, 15, 1, 1, 1, 1, 1, 1, 1, 15, 1, 15, 14], [14, 1, 15, 1, 15, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 14], [14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 1, 1, 15, 1, 1, 1, 15, 14], [14, 11, 15, 1, 15, 1, 15, 11, 15, 1, 15, 1, 15, 1, 15, 1, 11, 14], [14, 11, 15, 1, 15, 1, 15, 11, 15, 16, 15, 1, 16, 1, 15, 1, 13, 14], [14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 15, 11, 13, 15, 1, 13, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14]];
objects71 = [[1, 1, 1, 47, 1, 47, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 47, 1, 47, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 81, 1, 47, 1, 47, 1, 81, 1, 81, 47, 1, 81, 1, 81, 1, 81, 1], [1, 30, 1, 47, 1, 47, 1, 1, 1, 1, 47, 1, 1, 1, 16, 13, 1, 1], [1, 1, 1, 47, 1, 47, 1, 1, 2, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 47, 1, 47, 1, 1, 2, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 47, 1, 47, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 85, 1, 47, 1, 47, 1, 85, 1, 1, 47, 1, 1, 1, 1, 1, 85, 1], [1, 1, 1, 47, 1, 47, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 1, 5, 4, 5, 4, 5, 1, 2, 1, 47, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1]];
enemies71 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 16, 1, 1, 1], [1, 1, 1, 19, 19, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params71 = {tier:5, enemies:[15], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"The bridge is closed for repairs. The person found guilty of the cheap pipe system will be prosecuted.", sign2:"undefined", sign3:"undefined"};
level72 = [[14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14], [15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 14], [15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 14], [15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15], [14, 15, 15, 15, 15, 15, 15, 1, 1, 1, 15, 15, 15, 15, 15, 15, 15, 14], [14, 4, 2, 2, 2, 4, 2, 2, 4, 4, 2, 2, 2, 2, 2, 4, 4, 14], [14, 14, 14, 14, 14, 14, 14, 14, 16, 16, 14, 14, 14, 14, 14, 14, 14, 14], [14, 15, 15, 14, 15, 15, 15, 1, 1, 1, 1, 15, 15, 15, 14, 15, 15, 14], [14, 15, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14, 15, 14], [14, 15, 15, 14, 1, 1, 14, 1, 1, 1, 1, 14, 1, 1, 14, 15, 15, 14], [14, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1, 15, 15, 15, 15, 15, 15, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects72 = [[1, 1, 1, 1, 72, 1, 1, 1, 1, 1, 1, 1, 72, 1, 1, 1, 1, 1], [1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1], [1, 1, 81, 1, 47, 1, 81, 1, 1, 1, 1, 81, 47, 1, 1, 81, 1, 1], [1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1], [1, 1, 45, 46, 47, 1, 46, 45, 2, 1, 30, 45, 47, 46, 45, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 13, 41, 1, 1, 41, 1, 2, 1, 1, 42, 1, 41, 43, 14, 2, 1], [1, 2, 1, 1, 1, 84, 28, 1, 2, 1, 1, 1, 84, 1, 1, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 25, 1, 16, 1, 1, 25, 1, 16, 1, 18, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies72 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params72 = {tier:5, enemies:[16], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:30, chest1:[11, 4, 50], chest2:[-2, 1, 1], chest3:[12, 1, 1], sign1:"The king has gone insane! I have sealed the royal quarters and hid the keys in the spa and in a secret room below this garden. I can only hope he will never get out.", sign2:"undefined", sign3:"undefined"};
level73 = [[14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14], [14, 15, 15, 15, 15, 1, 1, 15, 15, 16, 16, 15, 16, 16, 15, 15, 15, 14], [14, 15, 1, 1, 1, 1, 1, 1, 1, 15, 15, 15, 15, 15, 1, 1, 1, 15], [18, 15, 1, 1, 1, 1, 1, 1, 1, 16, 16, 15, 16, 16, 1, 1, 1, 14], [14, 14, 1, 1, 1, 1, 1, 16, 16, 16, 16, 14, 16, 16, 1, 1, 1, 14], [14, 15, 1, 1, 1, 1, 14, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 14], [14, 15, 1, 14, 14, 1, 1, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14], [14, 14, 1, 15, 1, 1, 1, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14], [14, 15, 1, 15, 1, 1, 1, 11, 12, 11, 11, 11, 11, 11, 1, 1, 1, 14], [14, 15, 1, 14, 1, 1, 1, 1, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14], [14, 1, 1, 15, 1, 14, 14, 11, 11, 11, 11, 11, 12, 11, 1, 1, 1, 14], [14, 1, 1, 1, 1, 15, 15, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14]];
objects73 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 86, 1, 1, 86, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 86, 1, 1, 86, 1, 1, 1, 80, 2, 80, 1, 2, 2, 2, 16], [1, 16, 1, 86, 1, 1, 86, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 86, 1, 1, 83, 1, 1, 1, 25, 1, 25, 1, 1, 84, 1, 1], [1, 82, 1, 83, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 83, 1, 1, 1, 1, 82, 1, 1, 76, 1, 76, 1, 1, 1, 1, 1, 1], [1, 1, 1, 82, 1, 1, 86, 1, 1, 24, 1, 1, 18, 1, 1, 84, 1, 1], [1, 82, 1, 83, 1, 1, 86, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 86, 1, 1, 1, 1, 83, 1, 1, 76, 1, 76, 2, 1, 1, 1, 1, 1], [1, 86, 1, 82, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 84, 1, 1], [1, 86, 25, 86, 25, 1, 82, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1]];
enemies73 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params73 = {tier:5, enemies:[14], bg:5, effect:1, spawnFqcy:5, maxEnemies:4, enemyReserve:12, chest1:[-1, 5, 5], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level74 = [[2, 14, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [14, 15, 14, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2], [15, 15, 14, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 2], [14, 15, 14, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 12, 12, 11, 11, 2], [14, 15, 14, 1, 1, 1, 1, 11, 1, 11, 1, 1, 1, 1, 12, 11, 11, 2], [14, 15, 14, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 1, 11, 1, 13, 4], [14, 15, 14, 1, 1, 1, 1, 11, 1, 11, 1, 1, 1, 1, 1, 1, 11, 2], [14, 15, 14, 1, 1, 11, 1, 11, 1, 11, 11, 12, 12, 12, 12, 11, 11, 2], [14, 15, 14, 1, 1, 11, 1, 11, 1, 11, 12, 12, 12, 12, 12, 12, 11, 2], [14, 15, 14, 1, 1, 11, 1, 11, 1, 11, 12, 12, 11, 11, 12, 12, 11, 2], [14, 15, 14, 1, 1, 11, 1, 11, 1, 11, 11, 11, 11, 11, 11, 12, 11, 2], [14, 15, 14, 1, 1, 11, 1, 11, 1, 11, 1, 1, 1, 2, 2, 3, 2, 2]];
objects74 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 81, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1], [1, 81, 1, 2, 1, 1, 1, 1, 2, 1, 2, 25, 1, 1, 25, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 81, 1, 2, 1, 9, 1, 1, 2, 1, 1, 1, 71, 71, 1, 31, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 76, 1, 1, 76, 1, 1, 1], [1, 81, 1, 2, 1, 1, 1, 1, 2, 1, 1, 76, 16, 30, 76, 14, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 5, 5, 1, 1, 5, 5, 1, 1], [1, 81, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 6, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 6, 1, 1]];
enemies74 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params74 = {tier:5, enemies:[5], bg:4, effect:1, spawnFqcy:1, maxEnemies:5, enemyReserve:999, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"This is the tomb of Hadrathus, the one restless immortal.", sign2:"No clue why Hadrathus had the need to build two swimming pools to his tomb.", sign3:"undefined"};
level75 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 2], [2, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [2, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [2, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [2, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [2, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 2], [2, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 11, 2], [2, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 11, 11, 11, 1, 11, 2], [2, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
objects75 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 72, 1, 72, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 81, 1, 81, 1, 74, 81, 74, 1, 81, 1, 81, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 74, 1, 1, 1, 1, 1, 1, 1], [1, 30, 1, 1, 1, 1, 1, 84, 74, 84, 74, 84, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 74, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 74, 1, 31, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 74, 1, 74, 1, 1, 1, 1, 25, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 73, 1, 73, 18, 1, 1, 1, 25, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies75 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 22, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params75 = {tier:5, enemies:[undefined], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[-2, 2, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Senate.", sign2:"I, Nero, hereby declare this gigantic spider as head senator. Also, I'm going to blame christians for fuckups I'm gonna do.", sign3:"undefined"};
level80 = [[14, 14, 14, 14, 14, 14, 14, 14, 1, 14, 14, 14, 14, 14, 14, 14, 14, 14], [14, 14, 8, 8, 8, 8, 8, 14, 1, 14, 8, 8, 8, 8, 8, 8, 8, 14], [14, 14, 8, 9, 9, 9, 8, 8, 1, 8, 8, 9, 9, 9, 9, 9, 8, 8], [14, 8, 9, 9, 9, 9, 9, 8, 1, 8, 9, 9, 9, 9, 9, 9, 9, 8], [14, 8, 9, 8, 9, 9, 1, 1, 1, 1, 1, 1, 9, 9, 8, 9, 9, 8], [14, 8, 9, 9, 1, 8, 1, 1, 1, 1, 1, 1, 8, 1, 1, 9, 9, 8], [14, 8, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 8], [14, 8, 9, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 9, 9, 8], [14, 8, 9, 9, 1, 8, 1, 1, 1, 1, 1, 1, 8, 1, 1, 9, 9, 8], [8, 8, 8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 8, 8], [8, 9, 9, 17, 9, 9, 1, 1, 1, 1, 1, 1, 9, 9, 8, 8, 8, 8], [8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 14, 14, 14]];
objects80 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 53, 3, 53, 1, 1, 1, 1, 1, 61, 1, 3, 1, 3, 1, 1], [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 61, 1, 1, 1, 85, 1, 61, 1], [1, 1, 11, 1, 2, 16, 2, 2, 2, 2, 2, 2, 16, 2, 1, 1, 12, 1], [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, 1, 1, 1]];
params80 = {tier:5, enemies:[10], bg:5, effect:3, spawnFqcy:12, maxEnemies:3, enemyReserve:999, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
level81 = [[14, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 14, 14, 15, 14, 14], [8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 14, 15, 15, 15, 14], [8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 15, 15, 15, 15], [8, 1, 1, 1, 1, 8, 8, 8, 8, 8, 1, 8, 8, 14, 14, 14, 14, 14], [8, 9, 9, 8, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8], [8, 9, 8, 8, 8, 8, 9, 8, 8, 1, 8, 1, 9, 9, 9, 9, 9, 8], [8, 9, 8, 9, 9, 9, 9, 9, 9, 9, 10, 8, 8, 9, 8, 8, 9, 8], [8, 8, 8, 9, 8, 9, 9, 9, 8, 9, 9, 9, 9, 9, 9, 8, 9, 8], [8, 8, 9, 9, 8, 8, 8, 8, 8, 10, 8, 8, 8, 10, 9, 8, 9, 8], [8, 8, 9, 8, 8, 9, 9, 9, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8], [8, 9, 9, 9, 9, 9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]];
objects81 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 61, 47, 61, 1, 84, 61, 84, 1, 84, 61, 61, 1, 1, 81, 2, 81, 1], [1, 1, 47, 1, 1, 62, 16, 85, 85, 1, 1, 1, 62, 1, 1, 2, 1, 1], [1, 1, 47, 85, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 5, 4, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params81 = {tier:5, enemies:[16], bg:3, effect:3, spawnFqcy:10, maxEnemies:6, enemyReserve:15, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"A strange force came from the royal quarters and engulfed the spa in ice. Fellows unlucky to be here at the time when it happened have turned into ice statues.", sign2:"undefined", sign3:"undefined"};
level82 = [[14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [14, 1, 15, 15, 15, 15, 15, 1, 14, 1, 1, 1, 1, 1, 15, 15, 15, 14], [1, 1, 14, 14, 14, 14, 14, 1, 16, 1, 14, 14, 14, 14, 14, 14, 1, 1], [14, 14, 14, 15, 1, 15, 14, 1, 16, 1, 15, 15, 15, 15, 15, 14, 14, 14], [14, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 14], [14, 1, 14, 15, 1, 15, 14, 15, 14, 1, 1, 1, 1, 1, 1, 1, 1, 14], [14, 1, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 1, 1, 14], [14, 1, 14, 1, 1, 1, 14, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 14], [14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 14], [14, 1, 14, 1, 14, 1, 1, 1, 1, 1, 1, 1, 14, 1, 14, 1, 1, 14], [14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 15, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects82 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 22, 22, 22, 22, 22, 1, 1, 2, 1, 1, 1, 1, 1, 16, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 2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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params82 = {tier:5, enemies:[16], bg:5, effect:1, spawnFqcy:3, maxEnemies:5, enemyReserve:20, chest1:[11, 4, 50], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"This is the famous delicious meatball manufactory.", sign2:"undefined", sign3:"undefined"};
level83 = [[14, 1, 1, 1, 1, 1, 1, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14], [14, 1, 1, 1, 1, 1, 1, 11, 12, 12, 1, 12, 12, 13, 1, 1, 1, 14], [1, 1, 1, 1, 1, 1, 1, 11, 12, 12, 1, 12, 12, 13, 1, 1, 1, 14], [14, 14, 14, 14, 14, 1, 14, 11, 12, 11, 11, 11, 11, 11, 14, 14, 14, 14], [14, 15, 15, 15, 15, 15, 14, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 14], [14, 15, 15, 15, 15, 15, 14, 11, 12, 12, 1, 12, 12, 11, 1, 1, 1, 1], [14, 15, 14, 14, 14, 14, 14, 11, 12, 12, 1, 12, 12, 18, 1, 1, 1, 14], [14, 15, 15, 15, 15, 15, 15, 11, 12, 12, 1, 12, 12, 11, 14, 14, 1, 14], [14, 15, 15, 15, 14, 15, 15, 11, 11, 11, 11, 11, 11, 11, 15, 15, 15, 14], [14, 15, 15, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14], [14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects83 = [[1, 86, 1, 86, 1, 1, 86, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 86, 1, 86, 1, 1, 86, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params83 = {tier:5, enemies:[12, 13, 15, 16], bg:5, effect:1, spawnFqcy:5, maxEnemies:5, enemyReserve:20, chest1:[10, 1, 10], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"No matter what we would do the old tower couldn't be brought down, so we built this section of the palace around it. We reckon the keys to the tower must be buried in the ruins eastward.", sign2:"undefined", sign3:"undefined"};
level84 = [[2, 15, 14, 1, 1, 11, 1, 11, 1, 11, 1, 1, 1, 2, 2, 3, 2, 2], [14, 15, 14, 1, 1, 11, 1, 1, 1, 11, 1, 1, 1, 3, 3, 3, 4, 2], [14, 15, 14, 1, 1, 11, 11, 11, 11, 11, 1, 1, 4, 4, 3, 2, 4, 2], [14, 15, 15, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 4, 4, 11, 11, 2], [14, 14, 14, 14, 14, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 2, 2], [15, 15, 15, 15, 1, 1, 1, 1, 1, 1, 1, 11, 12, 12, 12, 12, 11, 2], [14, 14, 14, 1, 1, 1, 1, 1, 1, 1, 4, 11, 12, 12, 12, 12, 11, 2], [14, 15, 1, 1, 1, 1, 1, 1, 1, 1, 4, 11, 11, 11, 11, 12, 11, 2], [14, 15, 1, 14, 1, 1, 1, 1, 4, 4, 4, 11, 12, 12, 12, 12, 11, 2], [14, 15, 1, 1, 1, 14, 1, 1, 4, 4, 4, 12, 12, 12, 12, 12, 11, 2], [14, 15, 1, 1, 1, 1, 4, 4, 4, 4, 11, 11, 11, 2, 2, 11, 2, 2], [14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2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1, 1, 1, 1, 1, 1, 11, 11, 11, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 11, 11, 11, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params84 = {tier:5, enemies:[13], bg:5, effect:1, spawnFqcy:1, maxEnemies:1, enemyReserve:20, chest1:[-2, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Men, the Lord is wondering what happened to the ladder. Any information will be rewarded with gold.", sign2:"undefined", sign3:"undefined"};
level90 = [[14, 9, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [8, 9, 8, 9, 1, 1, 1, 1, 1, 1, 15, 14, 15, 15, 15, 15, 15, 14], [8, 9, 9, 15, 1, 15, 1, 1, 1, 15, 15, 14, 15, 15, 15, 15, 15, 14], [8, 15, 15, 15, 15, 15, 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14], [14, 14, 14, 14, 14, 14, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 14, 15, 1, 1, 1, 1, 1, 14], [14, 15, 14, 14, 15, 15, 15, 14, 15, 15, 14, 15, 15, 1, 1, 15, 1, 14], [14, 15, 15, 14, 14, 15, 15, 15, 14, 15, 14, 15, 14, 15, 15, 14, 1, 14], [14, 14, 15, 14, 15, 14, 15, 15, 15, 15, 14, 15, 14, 14, 14, 14, 15, 14], [14, 15, 15, 14, 15, 15, 14, 14, 14, 14, 14, 15, 14, 3, 3, 14, 15, 14], [14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 3, 3, 14, 15, 15], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
objects90 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 61, 1, 1, 1, 1, 1, 1, 1, 1, 84, 1, 84, 1, 84, 1], [1, 1, 61, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 75, 1, 75, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 18, 30, 18, 18, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 81, 1, 1, 82, 82, 1, 31, 82, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 83, 86, 82, 1, 83, 1, 1, 1, 81, 1, 1, 81, 1, 1], [1, 1, 82, 1, 1, 83, 86, 82, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [1, 1, 86, 1, 82, 1, 83, 83, 1, 81, 1, 2, 1, 1, 1, 1, 1, 1], [1, 82, 86, 1, 86, 82, 1, 1, 1, 1, 1, 2, 1, 10, 10, 1, 1, 1], [1, 83, 83, 1, 83, 83, 1, 1, 1, 1, 32, 1, 1, 7, 7, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies90 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 21, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params90 = {tier:5, enemies:[undefined], bg:5, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:0, chest1:[0, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Chrambers of Mike, mighty God of Programming, graphics, and pretty much everything.", sign2:"Master Librarian, what happened to the king? What drove him mad and gave him the freezing breath? I'm deeply confused and require an explanation of what's happened here... (Signed: Wilfred)", sign3:"Sheesh man, the game's over, just enjoy the rest and don't ask stuff. (Signed: Librarian)"};
level91 = [[3, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 3], [11, 3, 3, 1, 1, 3, 3, 1, 3, 3, 1, 1, 3, 3, 1, 1, 3, 11], [11, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 11], [11, 11, 11, 11, 5, 11, 11, 11, 13, 13, 11, 11, 11, 5, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 1, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12], [11, 12, 11, 12, 12, 11, 12, 1, 1, 1, 1, 12, 11, 12, 12, 11, 12, 11], [11, 12, 13, 11, 5, 13, 12, 11, 1, 1, 11, 12, 13, 5, 11, 13, 12, 11], [11, 12, 12, 12, 12, 12, 12, 13, 11, 11, 13, 12, 12, 12, 12, 12, 12, 11], [11, 12, 11, 12, 12, 11, 12, 12, 12, 12, 12, 12, 11, 12, 12, 11, 12, 11], [11, 12, 13, 11, 11, 13, 12, 11, 12, 12, 11, 12, 13, 11, 11, 13, 12, 11], [12, 12, 12, 12, 12, 12, 12, 13, 11, 11, 13, 12, 12, 12, 12, 12, 12, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]];
objects91 = [[1, 1, 47, 1, 47, 1, 1, 1, 1, 1, 1, 1, 1, 47, 1, 47, 1, 1], [1, 1, 47, 1, 47, 1, 1, 1, 45, 46, 1, 1, 1, 47, 1, 47, 1, 1], [1, 5, 4, 5, 4, 5, 5, 5, 1, 1, 5, 5, 5, 4, 5, 4, 5, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 72, 1, 47, 72, 2, 72, 1, 1, 72, 2, 72, 47, 1, 72, 1, 32], [1, 2, 1, 5, 4, 1, 1, 73, 71, 71, 73, 1, 1, 4, 5, 1, 2, 1], [1, 2, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1, 1, 2, 1], [1, 2, 72, 1, 47, 72, 1, 1, 1, 1, 1, 1, 72, 47, 1, 72, 2, 1], [1, 2, 1, 5, 4, 1, 1, 72, 1, 1, 72, 1, 1, 4, 5, 1, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1], [30, 1, 72, 1, 1, 72, 1, 1, 1, 1, 1, 1, 72, 1, 1, 72, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies91 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 5, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 5, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params91 = {tier:4, enemies:[undefined], bg:4, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"This tasteless grey boring room is brought to you by Sarah Palin. You're not a real man unless you vote for Palin!", sign2:"", sign3:"Even skeletons need a bath every now and then."};
level92 = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 9, 9, 8, 8, 8, 9, 8, 8, 9, 1, 9, 9, 9, 9, 9, 9, 8], [8, 9, 1, 9, 8, 8, 1, 8, 9, 1, 1, 8, 1, 9, 9, 9, 1, 8], [8, 1, 1, 1, 8, 8, 1, 9, 1, 1, 1, 8, 1, 1, 9, 1, 1, 8], [9, 1, 1, 1, 8, 9, 1, 1, 8, 8, 1, 8, 1, 9, 9, 9, 1, 8], [8, 1, 9, 1, 8, 1, 1, 1, 9, 8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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params92 = {tier:3, enemies:[1], bg:3, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"This is the den of Honzificator the abominable snowman, who spends most of his time sleeping, designing levels or writing witty signs.", sign2:"Hey, did you notice the lava on ice in level 38? What kinda moron would put that in a game!", sign3:"undefined"};
level93 = [[2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2], [2, 2, 5, 5, 6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 5, 5, 2, 2], [2, 5, 5, 6, 1, 5, 5, 1, 1, 5, 1, 1, 5, 1, 6, 5, 5, 2], [5, 5, 6, 1, 1, 1, 1, 1, 1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1, 6, 6, 1, 1, 1, 1, 51, 1, 1, 32, 54, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies93 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params93 = {tier:2, enemies:[undefined], bg:2, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"According to the newest research, bats don't need air to breathe underwater.", sign2:"undefined", sign3:"Here lie remains of Manu, designer of several especially diabolic levels and also a worthy adviser and betatester."};
level94 = [[2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 5, 5, 5, 4, 5, 4, 5, 5, 5, 5, 1, 1, 1, 1, 79, 1, 1], [1, 6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies94 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params94 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[12, 1, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"Mouse trap ahead.", sign2:"Mommy (Signed: Christopher, age 6)", sign3:"undefined"};
level99 = [[1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
enemies99 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 22, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
params99 = {tier:1, enemies:[undefined], bg:1, effect:1, spawnFqcy:10, maxEnemies:5, enemyReserve:10, chest1:[0, 50, 1], chest2:[12, 1, 1], chest3:[12, 1, 1], sign1:"undefined", sign2:"undefined", sign3:"undefined"};
cloneArrays();
m.breath = 300;
m.breathMax = 300;
m.changesArray = [];
m.charLevel = 1;
m.dynamites = 1;
m.experience = 0;
m.gadgets = [];
m.gems = 0;
m.gold = 0;
m.groundDetect = false;
m.healthMax = 65;
m.health = m.healthMax;
m.jumpDuration = 0;
m.jumping = false;
m.keys0 = 0;
m.keys1 = 0;
m.keys2 = 0;
m.ladder = false;
m.lastDamage = 0;
m.lastDynamite = 0;
m.lastShop = 0;
m.level = 1;
m.levelLast = 0;
m.levelNext = 10;
m.readyToJump = true;
m.reloading = false;
m.respawnCoord = [0, 260, 340];
m.tall = 19;
m.toShoot = 48;
m.water = false;
m.weapon = 0;
m.weps = [];
m.wide = 9;
m.xMov = 0;
m.yMov = 0;
m.aKnives = Number.POSITIVE_INFINITY;
m.a9mm = 0;
m.a45ACP = 0;
m.a57mm = 0;
m.a50AE = 0;
m.a12Gauge = 0;
m.a762mm = 0;
m.a545mm = 0;
m.a50BMG = 0;
m.a40mm = 0;
m.aRockets = 0;
m.tubes = 0;
m.batteries = 0;
m.steel = 0;
m.powder = 0;
m.plastic = 0;
m.kevlar = 0;
m.springs = 0;
m.parts = 0;
m.bonLaser = false;
m.bonMagazine = 1;
m.bonSlow = 1;
m.bonDynamite = false;
m.bonScatter = 1;
m.bonArmor = 1;
m.bonReload = false;
m.bonAirMax = 0;
m.bonDrops = 0;
m.bonHealing = 1;
m.magazine = [];
var i = 0;
while (i < wepsArray.length) {
m.magazine[i] = 0;
i++;
}
m.weps[0] = true;
m.magazine[0] = wepsArray[0][12];
if (_root.gameFinished) {
m.weps[27] = true;
m.a45ACP = 1000;
m.weapon = 27;
m.bonDrops = m.bonDrops - 100;
}
m.shooting = false;
m.h.gotoAndStop(m.weapon + 1);
acceleration = 1;
airAcceleration = 0.5;
airDecay = 0.95;
angle = 90;
bulletPowerDecay = 0.6;
decay = 0;
enemyBoulderDamage = 5;
enemyDaggerCycles = 2;
enemyDaggerDamage = 8;
explosion0Damage = 100;
explosion1Damage = 250;
explosion2Damage = 600;
fireDamage = 6;
goldExponent = 2.5;
goldPenalty = 0.06;
gravityAcceleration = 1.5;
healthLevelUp = 1.1;
jumpInitSpeed = -10.5;
jumpDurationMax = 6;
ladderSpeed = 3;
lavaDamage = 75;
levelUpMultiplier = 1.8;
maxAimAngle = 160;
minAimAngle = 10;
maxFallSpeed = 10;
maxSpeed = 4;
packageLifeSpan = 700;
packageWidth = 12;
packageHeight = 25;
pressDamage = 100;
spikeDamage = 4;
spawnPointsDisabled = [];
trackPlayin = true;
waterDamage = 10;
gameTime = 0;
stopAllSounds();
ts = new Sound(o);
ts.setVolume(90);
track = new Sound(w);
track.attachSound("music_track");
track.setVolume(75);
track.onSoundComplete = function () {
this.start();
};
track.start();
shareObj = SharedObject.getLocal("arcade10");
if (_root.loadOnStart) {
loadGame();
} else {
cleanup();
buildWorld();
buildObjects();
buildEnemies();
magazineReload(m);
HUDupdate();
}
startDrag (crosshair, true);
Mouse.hide();
stop();
Instance of Symbol 761 MovieClip in Frame 54
on (press) {
if (_root.trackPlayin) {
_root.track.stop();
_root.trackPlayin = false;
} else {
_root.track.start();
_root.trackPlayin = true;
}
}
Instance of Symbol 764 MovieClip in Frame 54
on (release) {
_root._quality = "low";
}
Instance of Symbol 764 MovieClip in Frame 54
on (release) {
_root._quality = "medium";
}
Instance of Symbol 764 MovieClip in Frame 54
on (release) {
_root._quality = "high";
}
Frame 55
goToMenu("menu");
Frame 56
goToMenu("menu");
Frame 58
_root.gameFinished = true;
Frame 184
stop();
Frame 185
stop();
Instance of Symbol 790 MovieClip in Frame 185
onClipEvent (load) {
this.gotoAndPlay(7);
}
Instance of Symbol 793 MovieClip in Frame 185
onClipEvent (load) {
this.gotoAndPlay(14);
}
Symbol 51 MovieClip [smoke] Frame 50
this.removeMovieClip();
Symbol 88 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 28
if ((Math.abs(_root.m.xPos - _parent._x) < 20) && (Math.abs(_root.m.yPos - _parent._y) < 20)) {
_root.damage(_root.pressDamage * _root.tier);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 120
_root.m.paralysed = false;
_root.setLabel("label_green", _parent._x, _parent._y, "Released");
_root.removeTile(_parent);
stop();
Symbol 139 MovieClip [object] Frame 1
stop();
Symbol 139 MovieClip [object] Frame 2
fn = "objLadder";
Symbol 139 MovieClip [object] Frame 3
this.onEnterFrame = function () {
_root.trapTrigger(this, 1, _x, _y);
};
shooting = false;
lastShot = 0;
Symbol 139 MovieClip [object] Frame 4
fn = "objWater";
para = [false];
Symbol 139 MovieClip [object] Frame 5
fn = "objWater";
para = [false];
Symbol 139 MovieClip [object] Frame 6
fn = "objWater";
para = [true];
Symbol 139 MovieClip [object] Frame 7
fn = "damage";
para = [_root.lavaDamage, "fire"];
Symbol 139 MovieClip [object] Frame 8
fn = "damage";
para = [_root.lavaDamage, "fire"];
Symbol 139 MovieClip [object] Frame 9
fn = "damage";
para = [_root.spikeDamage * _root.tier, "splat"];
Symbol 139 MovieClip [object] Frame 10
fn = "damage";
para = [_root.spikeDamage * _root.tier, "splat"];
Symbol 139 MovieClip [object] Frame 11
fn = "damage";
para = [_root.spikeDamage * _root.tier, "splat"];
Symbol 139 MovieClip [object] Frame 12
fn = "damage";
para = [_root.spikeDamage * _root.tier, "splat"];
Symbol 139 MovieClip [object] Frame 13
fn = "objKey";
para = [this, "0"];
Symbol 139 MovieClip [object] Frame 14
fn = "objKey";
para = [this, "1"];
Symbol 139 MovieClip [object] Frame 15
fn = "objKey";
para = [this, "2"];
Symbol 139 MovieClip [object] Frame 16
this.lastCheck = _root.gameTime;
this.onEnterFrame = function () {
_root.spawnPointCheck(this);
};
Symbol 139 MovieClip [object] Frame 17
fn = "damage";
para = [_root.fireDamage * _root.tier, "fire"];
Symbol 139 MovieClip [object] Frame 18
fn = "objChest";
para = [this, 1];
Symbol 139 MovieClip [object] Frame 19
fn = "objLadder";
Symbol 139 MovieClip [object] Frame 20
fn = "objShop";
para = [_x, _y];
Symbol 139 MovieClip [object] Frame 21
fn = "objKeyScrapper";
Symbol 139 MovieClip [object] Frame 22
fn = "trapTrigger";
para = [this, 5, _x, _y];
Symbol 139 MovieClip [object] Frame 23
fn = "objPickUp";
para = [this, "gems", 1];
Symbol 139 MovieClip [object] Frame 24
fn = "trapTrigger";
para = [this, 4, _x, _y];
Symbol 139 MovieClip [object] Frame 25
fn = "objPickUp";
para = [this, "gold", 10 * Math.floor(Math.pow(_root.tier, _root.goldExponent))];
Symbol 139 MovieClip [object] Frame 26
fn = "objOneWay";
para = [1];
Symbol 139 MovieClip [object] Frame 27
fn = "objOneWay";
para = [-1];
Symbol 139 MovieClip [object] Frame 28
fn = "objChest";
para = [this, 2];
Symbol 139 MovieClip [object] Frame 29
fn = "objChest";
para = [this, 3];
Symbol 139 MovieClip [object] Frame 30
fn = "objSign";
para = ["sign1"];
Symbol 139 MovieClip [object] Frame 31
fn = "objSign";
para = ["sign2"];
Symbol 139 MovieClip [object] Frame 32
fn = "objSign";
para = ["sign3"];
Symbol 139 MovieClip [object] Frame 79
this.onEnterFrame = function () {
if (this.hitTest(_root.m.xPos, _root.m.yPos, true)) {
_root.goToMenu("victory", true);
}
};
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Instance of Symbol 131 MovieClip in Symbol 139 MovieClip [object] Frame 79
onClipEvent (load) {
gotoAndPlay(random(40) + 1);
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 21
_root.removeTile(_parent);
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 21
_root.removeTile(_parent);
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 21
_root.removeTile(_parent);
Symbol 222 MovieClip [tile] Frame 1
stop();
Symbol 224 MovieClip [rock] Frame 1
this.onEnterFrame = function () {
_root.fly(this);
};
Symbol 226 MovieClip [knife] Frame 1
this.onEnterFrame = function () {
_root.fly(this);
};
Symbol 228 MovieClip [gren] Frame 1
this.onEnterFrame = function () {
_root.fly(this);
};
Symbol 230 MovieClip [bull] Frame 1
this.onEnterFrame = function () {
_root.fly(this);
};
Symbol 232 MovieClip [p_fire] Frame 2
this.removeMovieClip();
Symbol 235 MovieClip [blood_crack] Frame 20
this.removeMovieClip();
Symbol 241 MovieClip [crack] Frame 6
this.removeMovieClip();
Symbol 243 MovieClip [blood_dust] Frame 23
this.removeMovieClip();
Symbol 245 MovieClip [dust] Frame 20
this.removeMovieClip();
Symbol 248 MovieClip [e9] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 251 MovieClip [e20] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 254 MovieClip [e0] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 257 MovieClip [e10] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
Symbol 260 MovieClip [e16] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
Symbol 262 MovieClip [e17] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 264 MovieClip [e8] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 267 MovieClip [e7] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
Symbol 270 MovieClip [e1] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
Symbol 272 MovieClip [bone_bea] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 274 MovieClip [bone_dea] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 276 MovieClip [bone_fis] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 278 MovieClip [bone_bat] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 280 MovieClip [bone_spi] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 282 MovieClip [bone_ske] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 284 MovieClip [blood_spot] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 284 MovieClip [blood_spot] Frame 30
this.removeMovieClip();
Symbol 312 MovieClip [package] Frame 1
this.onEnterFrame = function () {
_root.packageFall(this);
};
stop();
Symbol 317 MovieClip [label_blue] Frame 60
this.removeMovieClip();
Symbol 318 MovieClip [label_green] Frame 60
this.removeMovieClip();
Symbol 319 MovieClip [label_white] Frame 40
this.removeMovieClip();
Symbol 320 MovieClip [label_violet] Frame 40
this.removeMovieClip();
Symbol 321 MovieClip [label_gold] Frame 40
this.removeMovieClip();
Symbol 322 MovieClip [label_red] Frame 40
this.removeMovieClip();
Symbol 324 MovieClip [p_shells] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 326 MovieClip [p_grens] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 328 MovieClip [p_rifs] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 329 MovieClip [p_bulls] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 331 MovieClip [arrow] Frame 1
this.onEnterFrame = function () {
_root.enemyFly(this);
};
Symbol 333 MovieClip [dagger] Frame 1
this.onEnterFrame = function () {
_root.enemyFly(this);
};
Symbol 335 MovieClip [boulder] Frame 1
this.onEnterFrame = function () {
_root.enemyFly(this);
};
Symbol 337 MovieClip [blueball] Frame 1
this.onEnterFrame = function () {
_root.enemyFly(this);
};
Symbol 339 MovieClip [fireball] Frame 1
this.onEnterFrame = function () {
_root.enemyFly(this);
};
Symbol 342 MovieClip [e11] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 345 MovieClip [e12] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 348 MovieClip [e13] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 351 MovieClip [e4] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 353 MovieClip [e14] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
stop();
Symbol 355 MovieClip [e5] Frame 1
this.onEnterFrame = function () {
_root.enemyCruise(this);
};
stop();
Symbol 358 MovieClip [e15] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 361 MovieClip [e19] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 364 MovieClip [e18] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 367 MovieClip [e6] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 370 MovieClip [e3] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 373 MovieClip [e2] Frame 1
this.onEnterFrame = function () {
_root.enemyWalk(this);
};
Symbol 408 MovieClip [explosion2] Frame 1
_root.explode(this, Math.round((_root.explosion2Damage - (_root.explosion2Damage / 4)) + random((_root.explosion2Damage + 1) / 2)));
Symbol 408 MovieClip [explosion2] Frame 33
this.removeMovieClip();
Symbol 425 MovieClip [explosion1] Frame 1
_root.explode(this, Math.round((_root.explosion1Damage - (_root.explosion1Damage / 4)) + random((_root.explosion1Damage + 1) / 2)));
Symbol 425 MovieClip [explosion1] Frame 33
this.removeMovieClip();
Symbol 431 MovieClip [dynamite] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
this.isDynamite = true;
Symbol 431 MovieClip [dynamite] Frame 100
if (_root.m.bonDynamite) {
_root.setParticle("explosion2", this._x, this._y, 0, false);
} else {
_root.setParticle("explosion1", this._x, this._y, 0, false);
}
this.removeMovieClip();
Symbol 433 MovieClip [bone_player_head] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 435 MovieClip [bone_player_arm] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 437 MovieClip [bone_player_leg] Frame 1
this.onEnterFrame = function () {
_root.smartPart(this);
};
Symbol 447 MovieClip [splash] Frame 23
this.removeMovieClip();
Symbol 474 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 1
stop();
Instance of Symbol 539 MovieClip in Symbol 540 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (13);
}
Symbol 574 MovieClip Frame 1
stop();
Symbol 582 Button
on (release) {
pic.prevFrame();
changeWeapon();
}
Symbol 596 Button
on (release) {
if ((((!_root.m.weps[current]) && (_root.tier >= i14)) && (_root.m.gold >= bg)) && (_root.m.gems >= bd)) {
_root.m.weps[current] = true;
_root.m.gold = _root.m.gold - bg;
_root.m.gems = _root.m.gems - bd;
changeWeapon();
_root.HUDupdate();
_root.playSound("kaching");
} else {
_root.showPopup("You can't buy that.");
}
}
Symbol 599 Button
on (release) {
if (_root.m.weapon != current) {
if (_root.m.weps[current]) {
_root.m.weps[current] = false;
_root.m.gold = _root.m.gold + sg;
_root.m.gems = _root.m.gems + sd;
changeWeapon();
_root.HUDupdate();
_root.playSound("kaching");
} else {
_root.showPopup("You can't sell that.");
}
} else {
_root.showPopup("You can't sell a weapon you are currently using.");
}
}
Symbol 601 Button
on (release) {
pic.nextFrame();
changeWeapon();
}
Symbol 621 Button
on (press) {
gotoAndStop (3);
changeGadget();
}
Symbol 623 Button
on (press) {
gotoAndStop (2);
changeItem();
}
Symbol 648 MovieClip Frame 1
stop();
Symbol 649 Button
on (release) {
do {
pic2.prevFrame();
} while (!_root.dropsArray[pic2._currentframe - 1][9]);
changeItem();
}
Symbol 652 Button
on (release) {
if (_root.m.gold >= bg2) {
_root.m[_root.dropsArray[current2][1]] = _root.m[_root.dropsArray[current2][1]] + t10;
_root.m.gold = _root.m.gold - bg2;
changeItem();
_root.HUDupdate();
_root.playSound("kaching");
} else {
_root.showPopup("You can't buy that.");
}
}
Symbol 653 Button
on (release) {
if (t1 >= t10) {
_root.m.gold = _root.m.gold + sg2;
_root.m[_root.dropsArray[current2][1]] = _root.m[_root.dropsArray[current2][1]] - t10;
changeItem();
_root.HUDupdate();
_root.playSound("kaching");
} else {
_root.showPopup("You can't sell that.");
}
}
Symbol 655 Button
on (release) {
do {
pic2.nextFrame();
} while ((!_root.dropsArray[pic2._currentframe - 1][9]) && (pic2._currentframe < 22));
changeItem();
}
Symbol 660 Button
on (press) {
gotoAndStop (1);
changeWeapon();
}
Symbol 674 MovieClip Frame 1
stop();
Symbol 675 Button
on (release) {
pic3.prevFrame();
changeGadget();
}
Symbol 677 Button
on (release) {
pic3.nextFrame();
changeGadget();
}
Symbol 683 Button
on (release) {
if (_root.m.gadgets[current3]) {
_root.showPopup("You already have this gadget.");
} else if ((((((((_root.m.tubes >= g3) && (_root.m.batteries >= g4)) && (_root.m.steel >= g5)) && (_root.m.powder >= g6)) && (_root.m.plastic >= g7)) && (_root.m.kevlar >= g8)) && (_root.m.springs >= g9)) && (_root.m.parts >= g10)) {
_root.m.tubes = _root.m.tubes - g3;
_root.m.batteries = _root.m.batteries - g4;
_root.m.steel = _root.m.steel - g5;
_root.m.powder = _root.m.powder - g6;
_root.m.plastic = _root.m.plastic - g7;
_root.m.kevlar = _root.m.kevlar - g8;
_root.m.springs = _root.m.springs - g9;
_root.m.parts = _root.m.parts - g10;
_root.m.gadgets[current3] = true;
_root.m[_root.gadgetsArray[current3][1]] = _root.m[_root.gadgetsArray[current3][1]] + _root.gadgetsArray[current3][2];
changeGadget();
_root.HUDupdate();
_root.showPopup(_root.gadgetsArray[current3][0] + " created. It takes effect immediately. Enjoy!");
} else {
_root.showPopup("You don't have enough materials to create this gadget.");
}
}
Symbol 703 MovieClip Frame 1
function changeWeapon() {
foo = "?";
current = pic._currentframe - 1;
i14 = _root.wepsArray[current][14];
i0 = _root.wepsArray[current][0];
if (_root.m.weps[current]) {
i15 = "Yes";
} else {
i15 = "No";
}
if (_root.tier >= i14) {
bd = Math.round((_root.wepsArray[current][13] - Math.floor(_root.wepsArray[current][13])) * 10);
bg = Math.floor(_root.wepsArray[current][13]);
sd = 0;
sg = Math.floor(bg / 2);
i16 = _root.wepsArray[current][16];
i2 = _root.wepsArray[current][2] * _root.wepsArray[current][3];
i4 = 20 - _root.wepsArray[current][4];
if (_root.wepsArray[current][5] < 0) {
i5 = "Semi";
} else {
i5 = 1800 / _root.wepsArray[current][5];
}
i12 = _root.wepsArray[current][12];
i11 = _root.wepsArray[current][11];
if (_root.wepsArray[current][10] <= 1) {
i10 = "No";
} else {
i10 = "Yes";
}
if (_root.m.gold < bg) {
t_bg.setTextFormat(notNuff);
}
if (_root.m.gems < bd) {
t_bd.setTextFormat(notNuff);
}
} else {
bd = foo;
bg = foo;
sg = foo;
i16 = foo;
i2 = foo;
i4 = foo;
i5 = foo;
i12 = foo;
i11 = foo;
i10 = foo;
i11 = "- This weapon is not yet available -";
t_i0.setTextFormat(isZero);
}
}
function changeItem() {
current2 = pic2._currentframe - 1;
t0 = _root.dropsArray[current2][0];
t1 = _root.m[_root.dropsArray[current2][1]];
if (_root.dropsArray[current2][0] == "Dynamite") {
bg2 = Math.floor(_root.dropsArray[current2][11] * _root.tier);
} else {
bg2 = Math.floor(_root.dropsArray[current2][11]);
}
sg2 = Math.floor(bg2 / 2);
t10 = _root.dropsArray[current2][10];
t14 = _root.dropsArray[current2][14];
if (_root.m.gold < bg2) {
t_bg2.setTextFormat(notNuff);
}
if (!_root.dropsArray[current2][15]) {
sell._visible = false;
sg2 = "N/A";
} else {
sell._visible = true;
}
}
function changeGadget() {
current3 = pic3._currentframe - 1;
g0 = _root.gadgetsArray[current3][0];
if (_root.m.gadgets[current3]) {
g12 = "Yes";
} else {
g12 = "No";
}
g3 = _root.gadgetsArray[current3][3];
go3 = ("(" + _root.m.tubes) + ")";
g4 = _root.gadgetsArray[current3][4];
go4 = ("(" + _root.m.batteries) + ")";
g5 = _root.gadgetsArray[current3][5];
go5 = ("(" + _root.m.steel) + ")";
g6 = _root.gadgetsArray[current3][6];
go6 = ("(" + _root.m.powder) + ")";
g7 = _root.gadgetsArray[current3][7];
go7 = ("(" + _root.m.plastic) + ")";
g8 = _root.gadgetsArray[current3][8];
go8 = ("(" + _root.m.kevlar) + ")";
g9 = _root.gadgetsArray[current3][9];
go9 = ("(" + _root.m.springs) + ")";
g10 = _root.gadgetsArray[current3][10];
go10 = ("(" + _root.m.parts) + ")";
g11 = _root.gadgetsArray[current3][11];
if (_root.m.tubes < g3) {
t_g3.setTextFormat(notNuff);
}
if (_root.m.batteries < g4) {
t_g4.setTextFormat(notNuff);
}
if (_root.m.steel < g5) {
t_g5.setTextFormat(notNuff);
}
if (_root.m.powder < g6) {
t_g6.setTextFormat(notNuff);
}
if (_root.m.plastic < g7) {
t_g7.setTextFormat(notNuff);
}
if (_root.m.kevlar < g8) {
t_g8.setTextFormat(notNuff);
}
if (_root.m.springs < g9) {
t_g9.setTextFormat(notNuff);
}
if (_root.m.parts < g10) {
t_g10.setTextFormat(notNuff);
}
var _local3 = 3;
while (_local3 <= 10) {
if (this["g" + _local3] == 0) {
this["t_g" + _local3].setTextFormat(isZero);
this["t_go" + _local3].setTextFormat(isZero);
}
_local3++;
}
}
current = 0;
current2 = 0;
current3 = 0;
notNuff = new TextFormat();
notNuff.color = 16711680 /* 0xFF0000 */;
isZero = new TextFormat();
isZero.color = 10066329 /* 0x999999 */;
stop();
Symbol 706 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 10
penalty = Math.round(_root.m.gold * _root.goldPenalty);
_root.m.gold = _root.m.gold - penalty;
_root.HUDupdate();
inside.blah = ("You lose " + penalty) + " gold.\nPress Enter to respawn.";
Instance of Symbol 710 MovieClip "inside" in Symbol 711 MovieClip Frame 10
on (keyPress "<Enter>") {
_root.m._visible = true;
_root.loadGame(true);
_parent.gotoAndStop(1);
}
Symbol 711 MovieClip Frame 40
stop();
Symbol 733 MovieClip Frame 1
stop();
Symbol 733 MovieClip Frame 20
if (_root.m.bonReload) {
_root.magazineReload(_root.m);
_root.playSound("reload");
gotoAndStop (1);
}
Symbol 733 MovieClip Frame 40
_root.magazineReload(_root.m);
_root.playSound("reload");
Symbol 758 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 10
stop();
Symbol 768 MovieClip Frame 1
stop();
Instance of Symbol 764 MovieClip in Symbol 768 MovieClip Frame 2
on (keyPress "y") {
_root.goToMenu("menu");
}
Symbol 768 MovieClip Frame 5
stop();
Symbol 770 MovieClip Frame 1
stop();
Symbol 780 Button
on (press) {
stopAllSounds();
gotoAndPlay ("credits");
}
Symbol 798 Button
on (press) {
stopAllSounds();
gotoAndStop ("menu");
}