-
Notifications
You must be signed in to change notification settings - Fork 0
/
arcadebuilder-supertiny.html
78 lines (69 loc) · 561 KB
/
arcadebuilder-supertiny.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="initial-scale=0.5"><link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"><link rel="stylesheet" type="text/css" href="arcadebuilder/css/font.css"><link rel="stylesheet" type="text/css" href="arcadebuilder/css/css.css"><link rel="stylesheet" type="text/css" href="core/css/all.css"><link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16"><script type="text/javascript">var gdsdk</script></head><body id="body"><div style="font-family:Bungee" class="postLoadHide">.</div><div style="font-family:Handlee" class="postLoadHide">.</div><div style="font-family:Damion" class="postLoadHide">.</div><div style="font-family:Aldrich" class="postLoadHide">.</div><b id="toggleDebug">+</b><div id="debug-tools"><div id="debug-buttons"><b class="btnDebug" data-screen="default">Index</b> <b class="btnDebug" data-screen="default">UI</b> <b class="btnDebug" data-screen="worldobjects">World Object</b> <b class="btnDebug" data-screen="lifeobjects">Life Object</b></div><div id="debug-container"><input type="text" id="debugString"><div id="screen-default" class="debug-content">Screen content</div><div id="screen-objects" class="debug-content">Object contents</div><div id="screen-deep" class="debug-content">Deep contents</div></div></div><div id="esc-menu" class="html-ui"><h2 style="align:center" data-lang="true" data-lang-id="BTN_MENU">Menu</h2><div id="info-window-contents"><div class="info-container"><div class="info-container-contents"><ul class="big-buttons"><li id="btnResume" data-lang="true" data-lang-id="BTN_RESUME">Resume</li><li id="btnMute" data-lang="true" data-lang-id="BTN_MUTEAUDIO">Mute Audio</li><li id="btnSave" data-lang="true" data-lang-id="BTN_SAVE">Save</li><li id="btnChallenges" data-lang="true" data-lang-id="BTN_CHALLENGES">Challenges</li><li id="btnFullscreen" data-lang="true" data-lang-id="BTN_FULLSCREEN">Fullscreen</li><li id="btnSettings" data-lang="true" data-lang-id="BTN_SETTINGS">Settings</li><li id="btnHelp" data-lang="true" data-lang-id="BTN_HELP">Help</li></ul><div style="clear:both"></div></div></div></div></div><div id="help-guide" class="html-ui" style="display:none"><div id="help-contents"><div id="help-controls"><br><br><h1 class="btnExitHelp" id="btnExitHelp" style="text-align:center" data-lang="true" data-lang-id="BTN_CLOSE">CLOSE</h1><br><br></div><div id="help-tut-only" class="help-section"><h1 data-lang="true" data-lang-id="TIP_TUT_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui escmenu"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_TUT">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_1_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui cash"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_1">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_3_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui hire"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_3">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_4_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui managerjobs"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_4">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_2_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game furni smallpower"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_2">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_5_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui suppliers"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_5">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_6_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui research"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_6">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_7_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game furni atm"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_7">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_8_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game furni toilet"></span><br><span class="game furni sink"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_8">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_9_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game furni bin"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_9">...</p></div><div style="clear:both"></div></div></div><div id="help-tut" class="help-section"><h1 data-lang="true" data-lang-id="TIP_APP_TITLE">...</h1><div class="help-container"><div class="help-img"><span class="game ui os"></span></div><div class="help-text"><p data-lang="true" data-lang-id="TIP_APP">...</p></div><div style="clear:both"></div></div></div></div></div><div id="settings-menu" class="html-ui"><div id="settings-contents"><h2 style="align:center">Settings</h2><hr><div id="info-window-contents"><div class="info-container"><div class="info-container-contents"><h3>Graphics</h3><h4>Anti-Alias</h4><fieldset><label data-lang="true" data-lang-id="ENABLED" for="aa1">Enabled.</label> <input class="rr" type="radio" name="stgAntiAlias" id="aa1"> <label data-lang="true" data-lang-id="DISABLED" for="aa2">Disabled.</label> <input class="rr" type="radio" name="stgAntiAlias" id="aa2"></fieldset><h3>Controls</h3><h4>Control Set</h4><fieldset><label for="cs1">Tablet</label> <input class="rr" type="radio" name="stgControl" id="cs1"> <label for="cs2">Keyboard and Mouse</label> <input class="rr" type="radio" name="stgControl" id="cs2"></fieldset><h3>Tweaks</h3><h4>Autosave</h4><fieldset><label data-lang="true" data-lang-id="ENABLED" for="as1">Enabled.</label> <input class="rr" type="radio" name="stgAS" id="as1"> <label data-lang="true" data-lang-id="DISABLED" for="as2">Disabled.</label> <input class="rr" type="radio" name="stgAS" id="as2"></fieldset><br><h3>Reset</h3><p>Warning, this will clear all of your saved data and is non-reversible!</p><h3 class="btn" id="clearLocal">Reset all data</h3><br><p>Game developed entirely by Adam Dougherty. Thanks for playing :) <3<br>- Thanks to:<br>Rezoner (Music), - PixiJS Contributors - My family and friends<br>Twitter: AJamDonut</p><br><br><h3 id="btnExitSettings">Exit</h3><div style="clear:both"></div></div></div></div></div></div><div id="top-info-window" style="display:none">X: <i id="txt-x"></i><br>Y: <i id="txt-y"></i><br>Grid X: <i id="txt-gridx"></i><br>Grid Y: <i id="txt-gridy"></i><br>Power at XY: <i id="txt-power"></i><br></div><div id="pawn-info" class="html-ui"><h2>Robo Info</h2><span class="hide-parent">X Close</span><div id="info-window-contents"><div class="info-container"><div class="info-container-header">Robot</div><div class="info-container-contents"><p>Name: <i id="name">Jango</i></p><div id="pawn-jobs"></div></div></div></div></div><div id="debug-info" class="html-ui" style="background-color:red;margin-left:auto!important"><div id="info-window-contents" style="background-color:red"><div class="info-container" style="background-color:red"><div class="info-container-header"><b>Advertisement</b></div><div class="info-container-contents" style="display:none"><div id="debug"></div></div></div></div></div><div id="game-log"><div id="game-log-contents"></div></div><div id="main-menu" style="display:none"><div class="top-bar"><div class="menu-left"><i class="title">Main menu</i></div><div class="menu-right"><i class="btn-close" data-close="main-menu">x</i></div></div><div class="container"><a href="client.html" class="big-button">Save</a> <a href="client.html" class="big-button">Save As</a> <a href="client.html" class="big-button">Load</a> <a href="index.html" class="big-button">Exit to Menu</a> <a href="client.html" class="big-button">Exit to Desktop</a></div></div><div id="loader" class="centered"><h1>Loading please wait...</h1></div><div id="viewport"><div id="debugger" style="display:none"><table><tr><td rowspan="2">Speed</td><td><input type="button" id="bt1" onclick="game.speed++" value="+"></td></tr><tr><td><input type="button" id="bt1" onclick="game.speed--" value="-"></td></tr><tr><td>UIs</td><td><input type="button" id="bt1" onclick="game.ui.challengeMenu()" value="Templates"></td></tr><tr><td rowspan="2">Saves</td><td><input type="button" id="bt1" onclick="game.saves.unload(game.sandboxGame)" value="Sandbox"></td></tr><tr><td><input type="button" id="bt1" onclick="game.saves.unload(game.saves.remoteLoad)" value="Remote Load"></td></tr><tr><td>Load iframe-test</td><td><input type="button" id="bt1" onclick='game.ui.test("/iframe-test.php")' value="UI Test"></td></tr><tr><td>Load iframe-test2</td><td><input type="button" id="bt2" onclick='game.ui.test("/iframe-test2.php")' value="UI Test"></td></tr></table></div><audio id="audio"></audio><canvas id="gamestage" style="border:0 solid #d3d3d3">Error [1] Cannot load canvas in environment</canvas></div><script>function fs(){document.getElementById("gamestage").requestFullscreen?document.getElementById("gamestage").requestFullscreen():document.getElementById("gamestage").mozRequestFullScreen?document.getElementById("gamestage").mozRequestFullScreen():document.getElementById("gamestage").webkitRequestFullscreen?document.getElementById("gamestage").webkitRequestFullscreen():document.getElementById("gamestage").msRequestFullscreen&&document.getElementById("gamestage").msRequestFullscreen()}</script><script type="text/javascript">var ab_defaultLanguage="arcadebuilder/js/languages/en.js";function detectWebGLContext(){var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");return t&&t instanceof WebGLRenderingContext?(delete t,!0):(delete t,!1)}function checkSupport(){return"undefined"!=typeof Worker?w=!0:w=!1,navigator.cookieEnabled?c=!0:c=!1,detectWebGLContext(),wg=!0,w&&c&&wg}var game={},bootStrap=[],RENDER_WIDTH=document.documentElement.clientWidth,RENDER_HEIGHT=document.documentElement.clientHeight,_LANG={};game.langLoaded=function(){},checkSupport()?(gameFPS=10,window.onload=function(){console.debug("Im here"),setTimeout(function(){(game=new Game("dev")).load()},1e3/gameFPS)}):document.getElementById("body").innerHTML="<div style='font-family: Verdana;border: 1px solid black; color: red; background-color: black; height:100%;width:100%;position:absolute;display:block; text-align: center;'><p style='margin: 100px;'>NOTICE: Your browser does not have the latest HTML5 capability to run the game.<p>Please update your web browser or download an alternative web browser</p></div>"</script><script type="text/javascript" src="lib/jquery/jquery.min.js"></script><script type="text/javascript" src="lib/jquery/jquery-ui.min.js"></script><script type="text/javascript" src="lib/moment/moment.min.js"></script><script type="text/javascript" src="lib/howler/howler.min.js"></script><script type="text/javascript" src="lib/pixi/pixi.min.js"></script><script type="text/javascript" src="lib/pixi/pixi-filters.js"></script><script type="text/javascript" src="lib/pixi/pixi-extra-filters.min.js"></script><script type="text/javascript" src="lib/pixi/pixi-tilemap.js"></script><script type="text/javascript" src="lib/pixi/pixi-viewport.js"></script><script type="text/javascript" src="lib/pixi/pixi-cull.js"></script><script type="text/javascript" src="lib/pixi/pixi-display.min.js"></script><script type="text/javascript" src="lib/EventEmitter/EventEmitter.min.js"></script><script type="text/javascript" src="lib/createjs/tweenjs.js"></script><script type="text/javascript">var _SETTINGS={env:"dev",tileSize:64,lifeTileSize:64,gameFolder:"arcadebuilder/",gameName:"arcadebuilder",clientTemplate:"template.tpl",maxLife:1e3,walkAnim:0,walkTween:!0,saveFile:"ABSave",AI:{heads:6,bodies:4},Color:{"Not quite black":2303786,"Dark but not black":2895667,"Mid Dark":3092790,"Light Dark":3553599,"White text":16318463,Blue:7509978,Green:6544053,Yellow:14468730,Red:14709151,"Blue outline":6719937,"Green outline":6145187,"Yellow outline":12890994,"Red outline":13134481},adsEnabled:!1,paystoreEnabled:!1,playAudio:!0,adFormat:"custom",store:"custom",extraChallenges:!0,fullGame:!0,timeToolsEnabled:!0,hidePremium:!1};_SETTINGS.ColorStyles={WindowBack:_SETTINGS.Color["Mid Dark"],WindowMain:_SETTINGS.Color["Light Dark"],NormalButton:_SETTINGS.Color.Blue,NormalButtonBorder:_SETTINGS.Color["Blue outline"],TopBar:2171169},bootStrap.push(function(){game.alias={},game.alias.saveName={},game.alias.saveDisableads="disableads",game.alias.saveDefaultname="save",game.alias.saveFile="mainsave",game.alias.savePrefix="arcadebuilder",game.alias.saveSpeedtools="speedtools",game.alias.get=function(e){return game.alias[e]||e}}),_AUDIO=[],_AUDIO.push(["mainbg","long/hotel_room.mp3",.3,!0]),_AUDIO.push(["menu","long/menu.mp3",.3,!0]),_AUDIO.push(["ding","ding.mp3",.05]),_AUDIO.push(["win","win.mp3",.4]),_AUDIO.push(["hammer","hammer.mp3",.05]),_AUDIO.push(["tack","tack.mp3",1]),_AUDIO.push(["tweets","tweets.mp3",.5]),_AUDIO.push(["highlazer","highlazer.mp3",.5]),_AUDIO.push(["shortlazer","shortlazer.mp3",.5]),_AUDIO.push(["lose","lose.mp3",.5]),_AUDIO.push(["superwin","superwin.mp3",.5]),_AUDIO.push(["turnon","turnon.mp3",.5]),_AUDIO.push(["takeoff","takeoff.mp3",.5]),_AUDIO.push(["retroending","retroending.mp3",.5]),_AUDIO.push(["ratchet","ratchet.mp3",.5]),_AUDIO.push(["spend","spend.mp3",.5]),_AUDIO.push(["munch","munch.mp3",.5]),_AUDIO.push(["crank","crank.mp3",.5]),_AUDIO.push(["denied","denied.mp3",.5]),_AUDIO.push(["hallknock","hallknock.mp3",.5]),_AUDIO.push(["goodding","goodding.mp3",.5]),_AUDIO.push(["blonk","blonk.mp3",.5]),_AUDIO.push(["toggle","toggle.mp3",.5]),_AUDIO.push(["creak","creak.mp3",.5]),_AUDIO.push(["slot","slot.mp3",.5]),_AUDIO.push(["rollkaching","rollkaching.mp3",.5]),_AUDIO.push(["coinspin","coinspin.mp3",.5]);var settings=function(){game.resetSettings=function(){game.settings={},game.settings.cash=5e3,game.settings.happyPeeps=0,game.settings.unHappyPeeps=0,game.settings.locked={},game.settings.locked.level1=!1,game.settings.locked.normal=!1,game.settings.locked.easy=!1,game.settings.locked.sandbox=!1,game.settings.locked.nightmare=!1,"jamdonut.com"==window.location.hostname||window.location.hostname},game.resetSettings()};bootStrap.push(settings),bootStrap.push(function(){dismantle={name:"dismantle",readName:_LANG.DESTROY,codename:"dismantle",description:_LANG.DESC_DESTROY,cost:0,across:31,down:4,blocks:1,quality:1,dirs:1,offsetX:0,offsetY:0,tick:!1,mouseDown:!1,onCreate:!1,data:{dismantle:!0}},game.world.objectTemplates={general:{trash1:{height:64,width:64,framex:1856,framey:256,tileSetName:game.folder+"png/furni.png",built:!0,id:"rb",data:{ref:null,buildFloor:!1,cleanup:!0},name:"trash",alpha:1},scuff1:{height:64,width:64,framex:1920,framey:256,tileSetName:game.folder+"png/furni.png",built:!0,id:"rb",data:{ref:null,buildFloor:!1,cleanup:!0},name:"trash",alpha:1},scuff2:{height:64,width:64,framex:2048,framey:256,tileSetName:game.folder+"png/furni.png",built:!0,id:"rb",data:{ref:null,buildFloor:!1,cleanup:!0},name:"trash",alpha:1}},planning:[{name:"markroom",readName:_LANG.NEW_ROOM,description:_LANG.WAITING_FOR_DESCRIPTION,cost:50,across:1,down:1,data:{buildFurni:!0}}],other:{trash:{name:"trash",readName:_LANG.WOOD,description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:30,down:5,blocks:1,data:{cleanup:!0,fill:"floor",killOnBuild:!0,friction:0,across:30,down:5}}}},game.world.objectTemplates.walls=[{name:"buildroom",readName:_LANG.BUILDWALL,codename:"buildroom",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:30,down:2,blocks:1,collide:"allowwall",data:{buildWall:!0,wallBuild:!0,across:1,down:7}},{name:"buildroom",readName:_LANG.BUILDROOM,codename:"buildroom",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:30,down:2,blocks:1,collide:"allowwall",data:{buildWall:!0,fill:"floor",wallBuild:!0,across:1,down:7}},{name:"destroywall",readName:_LANG.DESTROYWALL,codename:"destroywall",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:31,down:2,blocks:1,data:{alpha:0,bulldoze:!0,fill:"wall",wallBuild:!0,across:1,down:7}},{name:"blue",readName:_LANG.BLUE,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:8,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:8}},{name:"tiled",readName:_LANG.TILED,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:9,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:9}},{name:"concrete",readName:_LANG.CONCRETE,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:10,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:10}},{name:"red",readName:_LANG.RED,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:11,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:11}},{name:"wood",readName:_LANG.WOOD,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:12,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:12}},{name:"gravel",readName:_LANG.GRAVEL,codename:"floor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:1,down:13,blocks:1,data:{buildFloor:!0,wallBuild:!0,fill:"floor",killOnBuild:!0,friction:0,across:1,down:13}}],game.world.objectTemplates.submenus=[{name:"submenu",readName:"Decor",codename:"furni",submenu:"decor",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:34,down:6,blocks:1},{name:"submenu",readName:"Food",codename:"furni",submenu:"food",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:30,down:6,blocks:1},{name:"submenu",readName:"Hygiene",codename:"furni",submenu:"hygiene",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:33,down:6,blocks:1},{name:"submenu",readName:"Elec",codename:"furni",submenu:"power",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:31,down:6,blocks:1},{name:"submenu",readName:"Office",codename:"furni",submenu:"office",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:32,down:6,blocks:1},{name:"submenu",readName:"Research",codename:"furni",submenu:"research",description:_LANG.WAITING_FOR_DESCRIPTION,cost:0,across:35,down:6,blocks:1}],game.world.objectTemplates.ui=[{name:"os",readName:_LANG.WORKMAN,codename:"os",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:26,blocks:1,down:1,data:!1},{name:"build",readName:_LANG.WORKMAN,codename:"build",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:18,blocks:1,down:3,data:!1},{name:"suppliers",readName:_LANG.WORKMAN,codename:"suppliers",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:19,blocks:1,down:4,data:!1},{name:"research",readName:_LANG.WORKMAN,codename:"research",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:19,blocks:1,down:5,data:!1},{name:"managerjobs",readName:_LANG.WORKMAN,codename:"managerjobs",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:20,blocks:1,down:5,data:!1},{name:"thoughts",readName:_LANG.WORKMAN,codename:"thoughts",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:24,blocks:1,down:9,data:!1},{name:"rotate",readName:_LANG.WORKMAN,codename:"rotate",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:18,blocks:1,down:4,data:!1},{name:"pindown",readName:_LANG.WORKMAN,codename:"pindown",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:24,blocks:1,down:4,data:!1},{name:"pinup",readName:_LANG.WORKMAN,codename:"pinup",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:25,blocks:1,down:4,data:!1},{name:"hire",readName:_LANG.WORKMAN,codename:"hire",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:21,blocks:1,down:4,data:!1},{name:"cash",readName:_LANG.WORKMAN,codename:"cash",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:26,blocks:1,down:9,data:!1},{name:"escmenu",readName:_LANG.WORKMAN,codename:"escmenu",description:_LANG.WAITING_FOR_DESCRIPTION,cost:5e3,across:20,blocks:1,down:4,data:!1}]}),bootStrap.push(function(){game.world.objectTemplates.machines=[{variant:"change",description:_LANG.CHANGE_MACHINE_DESC,dirs:4,across:5,down:1,blocks:4,offsetX:0,offsetY:0,tutNumber:3,name:"change",readName:_LANG.CHANGE_MACHINE,codename:"changemachine",cost:100,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:1,standArea4:!0,tutNumber:4,canBeTaken:!1}},{description:_LANG.WAITING_FOR_DESCRIPTION,across:1,down:13,blocks:2,dirs:4,tutNumber:7,offsetX:0,offsetY:0,variant:"pinball",name:"pinball",readName:_LANG.SUNWARS,codename:"sunwars",cost:200,data:{buildFurni:!0,elecUnits:2,standArea3:!0,pay:1,buildFunction:"arcademachine",tutNumber:8}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:23,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.MONKEYKONG,codename:"monkeykong",cost:220,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:3,pay:2,standArea4:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:25,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.PACBOY,codename:"pacboy",cost:300,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:10,pay:5,standArea4:!0}},{variant:"pinball",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:15,blocks:2,offsetX:0,offsetY:0,tutNumber:24,name:"pinball",readName:_LANG.FIREBALL,codename:"fireball",cost:500,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:4,pay:1,standArea3:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:25,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.KITERIDER,codename:"kiterider",cost:500,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:10,pay:5,standArea4:!0}},{variant:"pinball",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:18,blocks:2,offsetX:0,offsetY:0,name:"pinball",readName:_LANG.PICCOLO,codename:"piccolo",cost:750,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:8,pay:8,standArea3:!0}},{variant:"pinball",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:20,blocks:2,offsetX:0,offsetY:0,name:"pinball",readName:_LANG.OLDGRAY,codename:"oldgray",cost:750,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:20,pay:10,standArea3:!0}},{variant:"claw",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:20,blocks:4,offsetX:0,offsetY:0,name:"claw",readName:"Claw machine 2",codename:"unicorns",cost:750,data:{buildFurni:!0,buildFunction:"claw",elecUnits:3,pay:15,standArea3:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:27,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.ARMY,codename:"army",cost:1e3,data:{elecUnits:1,pay:1,buildFurni:!0,buildFunction:"arcademachine",standArea4:!0}},{variant:"pinball",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:16,blocks:2,offsetX:0,offsetY:0,name:"pinball",readName:_LANG.JUPITER,codename:"jupiter",cost:1500,data:{elecUnits:2,pay:5,buildFurni:!0,buildFunction:"arcademachine",standArea3:!0}},{variant:"pinball",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:17,blocks:2,offsetX:0,offsetY:0,name:"pinball",readName:_LANG.TWINKLEZONE,codename:"twinklezone",cost:2e3,data:{elecUnits:2,pay:3,buildFurni:!0,buildFunction:"arcademachine",standArea3:!0}},{variant:"claw",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:18,blocks:4,offsetX:0,offsetY:0,name:"claw",readName:"Claw machine 1",codename:"bears",cost:5e3,data:{elecUnits:10,pay:10,buildFurni:!0,buildFunction:"claw",standArea3:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:29,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.MARLENO,codename:"marleno",cost:5e3,data:{elecUnits:1,pay:2,buildFurni:!0,buildFunction:"arcademachine",standArea4:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:27,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.FROGGY,codename:"froggy",cost:8e3,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:2,pay:8,standArea4:!0}},{variant:"arcade",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:23,blocks:4,offsetX:0,offsetY:0,name:"arcade",readName:_LANG.RESX,codename:"ResidentX",cost:1e4,data:{elecUnits:1,pay:5,buildFurni:!0,buildFunction:"arcademachine",standArea4:!0}}],game.world.objectTemplates.furni=[{description:_LANG.WAITING_FOR_DESCRIPTION,across:1,down:2,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"door",name:"door",readName:_LANG.DOOR,codename:"door",cost:50,data:{buildDoor:!0,wallBuild:!0,isDoor:!0}},{description:_LANG.DESC_CHAIR,across:1,down:1,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"seat",name:"seat",readName:_LANG.CHAIR,codename:"chair",cost:50,data:{buildFurni:!0,anim:"chatter"}},{description:_LANG.DESC_CHAIR,across:9,down:1,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"chair",name:"chair",readName:_LANG.STOOL,codename:"stool",cost:50,data:{buildFurni:!0,anim:"chatter"}},{description:_LANG.WAITING_FOR_DESCRIPTION,across:1,down:3,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"smalltable",name:"smalltable",readName:_LANG.SMALL_TABLE,codename:"smalltable",cost:100,data:{buildFurni:!0}},{description:_LANG.WAITING_FOR_DESCRIPTION,across:1,down:4,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"seat",name:"seat",readName:_LANG.COUCH,codename:"couch",cost:100,data:{buildFurni:!0,anim:"chatter"}},{description:_LANG.WAITING_FOR_DESCRIPTION,across:9,down:2,blocks:1,dirs:4,offsetX:0,offsetY:0,variant:"smalltable",name:"smalltable",readName:_LANG.SMALL_TABLE,codename:"smalltablebetter",cost:100,data:{buildFurni:!0}},{description:_LANG.WAITING_FOR_DESCRIPTION,across:1,down:5,blocks:2,dirs:4,offsetX:0,offsetY:0,variant:"coffeetable",name:"coffeetable",readName:_LANG.COFFEETABLE,codename:"coffeetable",cost:150,data:{buildFurni:!0}}],game.world.objectTemplates.tables=[{variant:"table",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:20,down:4,blocks:5,offsetX:0,offsetY:0,name:"table",readName:_LANG.TABLETENNIS,codename:"tabletennis",cost:1e4,data:{buildFurni:!0,buildFunction:"table",pay:10,big:!0,standArea4:!0,anim:"tennis"}},{variant:"table",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:20,down:2,blocks:5,w:128,h:128,offsetX:0,offsetY:0,name:"table",readName:_LANG.POOLTABLE,codename:"pooltable",cost:12500,data:{buildFurni:!0,buildFunction:"table",elecUnits:2,pay:15,big:!0,standArea4:!0,anim:"pool",canBeTaken:!1}},{variant:"table",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:22,down:2,blocks:5,offsetX:0,offsetY:0,name:"table",readName:_LANG.AIRHOCKEY,codename:"airhockey",cost:12500,data:{buildFurni:!0,buildFunction:"table",elecUnits:15,pay:20,big:!0,standArea4:!0}},{variant:"table",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:22,down:4,blocks:5,offsetX:0,offsetY:0,name:"table",readName:_LANG.TABLEFOOTBALL,codename:"tablefootball",cost:2e4,data:{buildFurni:!0,buildFunction:"table",pay:17,big:!0,standArea4:!0}},{variant:"cinemaseat",description:_LANG.DESC_CHAIR,dirs:4,across:9,down:25,blocks:1,offsetX:0,offsetY:0,name:"cinemaseat",readName:"Cinema seat",codename:"cinemaseat",cost:2e4,data:{buildFurni:!0,anim:"watch",animLength:25}},{variant:"cinemaspeaker",description:_LANG.CHANGE_MACHINE_DESC,dirs:1,across:9,down:26,blocks:4,offsetX:0,offsetY:0,name:"cinemaspeaker",readName:"Cinema Speaker",codename:"cinemaspeaker",cost:2e4,data:{buildFurni:!0,buildFunction:"speaker",elecUnits:1,tutNumber:4,canBeTaken:!1}},{variant:"cinemascreen",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:35,down:1,blocks:6,offsetX:0,offsetY:0,name:"cinemascreen",readName:"Attack Attack",codename:"attackattack",cost:25e3,data:{buildFurni:!0,buildFunction:"cinema",elecUnits:50,pay:220,big:!0,standArea4:!0}},{variant:"cinemascreen",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:35,down:1,blocks:6,offsetX:0,offsetY:0,name:"cinemascreen",readName:"Sun Wars",codename:"sunwars2",cost:25e3,data:{buildFurni:!0,buildFunction:"cinema",elecUnits:50,pay:220,big:!0,standArea4:!0}},{variant:"cinemascreen",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:1,across:35,down:1,blocks:6,offsetX:0,offsetY:0,name:"cinemascreen",readName:"Bear Land",codename:"bearland",cost:25e3,data:{buildFurni:!0,buildFunction:"cinema",elecUnits:50,pay:220,big:!0,standArea4:!0}},{variant:"staffdesk",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:23,blocks:2,offsetX:0,offsetY:0,name:"staffdesk",readName:"Cinema desk",codename:"cinemadesk",cost:25e3,data:{buildFurni:!0,elecUnits:25,pay:100,standArea:!0,standArea2:!0,needStaff:!0}},{variant:"atm",description:"Customers withdraw cash",dirs:4,across:9,down:3,blocks:4,offsetX:0,offsetY:0,name:"atm",readName:_LANG.ATM,codename:"atm",cost:25e3,data:{buildFurni:!0,buildFunction:"atm",elecUnits:50,standArea4:!0,canBeTaken:!0}}],game.world.objectTemplates.utilities=[],game.world.objectTemplates.food=[{variant:"food",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:11,blocks:4,offsetX:0,offsetY:0,name:"food",readName:_LANG.SNACKMACHINE,codename:"snackmachine",cost:250,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:5,pay:25,standArea4:!0,anim:"snack",doNow:"1",canBeTaken:!0}},{variant:"food",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:9,blocks:4,offsetX:0,offsetY:0,name:"food",readName:_LANG.SODAMACHINE,codename:"sodamachine",cost:250,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:5,pay:25,standArea4:!0,anim:"drink",doNow:"1",canBeTaken:!0}},{variant:"food",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:7,blocks:4,offsetX:0,offsetY:0,name:"food",readName:_LANG.FIZZSODA,codename:"fizzmachine",cost:250,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:10,pay:75,standArea4:!0,anim:"drink",doNow:"1",canBeTaken:!0}},{variant:"food",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:9,blocks:4,offsetX:0,offsetY:0,name:"food",readName:_LANG.MUNCHMACHINE,codename:"munchmachine",cost:250,data:{buildFurni:!0,buildFunction:"arcademachine",elecUnits:20,pay:150,standArea4:!0,anim:"drink",doNow:"1",canBeTaken:!0}}],game.world.objectTemplates.power=[{variant:"power",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:8,blocks:1,offsetX:0,offsetY:0,name:"power",readName:_LANG.SMALLPOWER,codename:"smallpower",cost:1e3,data:{buildFurni:!0,buildFunction:"power",powerUnits:25}},{variant:"power",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:20,down:6,blocks:5,offsetX:0,offsetY:0,name:"power",readName:_LANG.BIGPOWER,codename:"bigpower",cost:1e4,data:{buildFurni:!0,buildFunction:"power",big:!0,standArea4:!0,powerUnits:75,canBeTaken:!1}}],game.world.objectTemplates.office=[{variant:"officechair",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:22,blocks:1,offsetX:0,offsetY:0,name:"officechair",readName:_LANG.OFFICECHAIR,codename:"officechair",cost:100,data:{buildFurni:!0,anim:"chatter"}},{variant:"filingcabinet",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:3,blocks:4,offsetX:0,offsetY:0,name:"filingcabinet",readName:_LANG.FILINGCABINET,codename:"filingcabinet",cost:1e3,data:{buildFurni:!0,buildFunction:"filingcabinet",standArea4:!0,canBeTaken:!1}},{variant:"officedesk",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:5,blocks:2,offsetX:0,offsetY:0,name:"officedesk",readName:_LANG.OFFICEDESK,codename:"officedesk",cost:2500,data:{buildFurni:!0}}],game.world.objectTemplates.hygiene=[{variant:"toilet",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:7,blocks:1,offsetX:0,offsetY:0,name:"toilet",readName:_LANG.TOILET,codename:"toilet",cost:50,data:{buildFurni:!0,buildFunction:"toilet"}},{variant:"sink",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:11,blocks:1,offsetX:0,offsetY:0,name:"sink",readName:_LANG.SINK,codename:"sink",cost:50,data:{buildFurni:!0,buildFunction:"sink"}},{variant:"bin",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:7,blocks:1,offsetX:0,offsetY:0,name:"bin",readName:_LANG.BIN,codename:"bin",cost:150,data:{buildFurni:!0,buildFunction:"bin"}}],game.world.objectTemplates.decor=[{variant:"plants1",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:14,blocks:1,offsetX:0,offsetY:0,name:"plants1",readName:_LANG.PLANTS,codename:"plants1",cost:500,data:{buildFurni:!0,buildFunction:"plants1"}},{variant:"sign",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:14,blocks:1,name:"sign",readName:"Exit Sign",codename:"exitsign",cost:750,data:{buildFurni:!0,buildFunction:"neonstrip"}},{variant:"watertank",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:12,blocks:4,offsetX:0,offsetY:0,name:"watertank",readName:_LANG.WATERTANK,codename:"watertank",cost:1e3,data:{buildFurni:!0,buildFunction:"watertank"}},{variant:"floorlights",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:29,blocks:1,name:"floorlights",readName:"Floor Lights",codename:"floorlight",cost:1e3,data:{buildFurni:!0}},{variant:"lamp",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:21,blocks:4,offsetX:0,offsetY:0,name:"lamp",readName:_LANG.PIXELLAMP,codename:"pixellamp",cost:1e3,data:{buildFurni:!0,buildFunction:"pixellamp"}},{variant:"plants2",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:14,blocks:1,offsetX:0,offsetY:0,name:"plants2",readName:_LANG.PLANTS,codename:"plants2",cost:1100,data:{buildFurni:!0,buildFunction:"plants2"}},{variant:"blueneonstrip",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:19,blocks:1,name:"blueneonstrip",readName:"Blue Neon",codename:"blueneonstrip",cost:1500,data:{buildFurni:!0,buildFunction:"neonstrip"}},{variant:"redneonstrip",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:1,down:20,blocks:1,offsetX:0,offsetY:0,name:"redneonstrip",readName:_LANG.REDNEONSTRIP,codename:"redneonstrip",cost:1500,data:{buildFurni:!0,buildFunction:"neonstrip"}},{variant:"poster",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:17,blocks:1,offsetX:0,offsetY:0,name:"poster",readName:"Sunwars poster",codename:"sunwarsposter",cost:2e3,data:{buildFurni:!0,buildFunction:"poster"}},{variant:"poster",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:16,blocks:1,offsetX:0,offsetY:0,name:"poster",readName:"Bear land poster",codename:"bearlandposter",cost:2e3,data:{buildFurni:!0,buildFunction:"poster"}},{variant:"poster",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:15,blocks:1,offsetX:0,offsetY:0,name:"poster",readName:"Attack poster",codename:"attackattackposter",cost:2e3,data:{buildFurni:!0,buildFunction:"poster",big:!1,standArea:!1,standArea2:!1,standArea3:!1,standArea4:!1,needStaff:!1,dismantle:!1,canBeTaken:!1}}],game.world.objectTemplates.research=[{variant:"chalkboard",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:22,down:6,blocks:5,w:128,h:128,offsetX:0,offsetY:0,name:"chalkboard",readName:_LANG.CHALKBOARD,codename:"chalkboard",cost:1e3,data:{buildFurni:!0,buildFunction:"",pay:0,big:!0,standArea4:!0,canBeTaken:!1}},{variant:"researchchair",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:22,blocks:1,offsetX:0,offsetY:0,name:"researchchair",readName:_LANG.RESEARCHERSCHAIR,codename:"researchchair",cost:1500,data:{buildFurni:!0,anim:"chatter"}},{variant:"researchdesk",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:9,down:5,blocks:2,offsetX:0,offsetY:0,name:"researchdesk",readName:_LANG.RESEARCHDESK,codename:"researchdesk",cost:5e3,data:{buildFurni:!0,elecUnits:50}},{variant:"advancedresearch",description:_LANG.WAITING_FOR_DESCRIPTION,dirs:4,across:5,down:9,blocks:4,offsetX:0,offsetY:0,name:"advancedresearch",readName:_LANG.RESEARCHMACHINE,codename:"advancedresearch",cost:15e3,data:{buildFurni:!0,buildFunction:"",elecUnits:100,pay:0,standArea4:!0}}]}),bootStrap.push(function(){game.upgradeTemplates={},game.upgradeTemplates.upgrade_research_suppliers={time:3,d1:"Supplier allow you to purchase new machine types",runFunction:function(){game.settings.locked.suppliers=!1,game.tut(17)},across:19,down:4,readName:"Unlock Suppliers",name:"upgrade_research_suppliers",cost:100},game.upgradeTemplates["arcade-1"]={time:10,d1:"Unlocks basic tables and chairs ",tileset:"furni",runFunction:function(){game.settings.locked.basicarcadefurniture=!1,game.settings.locked.smalltable=!1,game.settings.locked.chair=!1,game.settings.locked.watertank=!1},across:1,down:3,readName:"Basic Arcade Furniture",name:"arcade-1",cost:100},game.upgradeTemplates["decor-1"]={runFunction:function(){game.settings.locked.plants1=!1,game.settings.locked.exitsign=!1,game.settings.locked.floorlight=!1},reqCheck:function(){return!0},time:120,d1:"Unlock plants and lights",tileset:"furni",reqText:"",across:5,down:14,readName:"Decor Pack 1",name:"decor-1",cost:750},game.upgradeTemplates["snack-1"]={time:30,d1:"Unlock basic snack machines",tileset:"furni",runFunction:function(){game.settings.locked.snackmachine=!1,game.settings.locked.sodamachine=!1},reqText:"Must have Basic Arcade Furniture",reqCheck:function(){return!game.isLocked("basicarcadefurniture")},across:1,down:9,w:64,h:128,readName:"Basic Snack Machines",name:"snack-1",cost:1100},game.upgradeTemplates["a_cleaning-1"]={time:120,d1:"Unlocks Toilets and Sinks",tileset:"furni",runFunction:function(){game.settings.locked.researcher=!1,game.settings.locked.basichygeine=!1,game.settings.locked.toilet=!1,game.settings.locked.sink=!1},reqText:"Must have over 15 customers",reqCheck:function(){return void 0===game.world.index.customer?customerCount=0:customerCount=game.propCount(game.world.index.customer),15<customerCount},across:2,down:7,readName:"Basic Hygeine",name:"a_cleaning-1",cost:1150},game.upgradeTemplates["furniture-2"]={time:30,d1:"Unlock couches and tables",tileset:"furni",runFunction:function(){game.settings.locked.stool=!1,game.settings.locked.couch=!1,game.settings.locked.smalltablebetter=!1,game.settings.locked.coffeetable=!1},reqText:"Must have Basic Arcade Furniture",reqCheck:function(){return!game.isLocked("basicarcadefurniture")},across:1,down:4,readName:"Better Arcade Furniture",name:"furniture-2",cost:1200},game.upgradeTemplates["hire-janitor"]={time:360,d1:"Unlock janitors",runFunction:function(){game.settings.locked["hire-janitor"]=!1},reqText:"Must have Basic Hygeine research",reqCheck:function(){return!game.isLocked("basichygeine")},across:19,down:9,readName:"Hire Janitors",name:"hire-janitor",cost:2e3},game.upgradeTemplates["office-1"]={time:280,d1:"Unlock office desk and chair",tileset:"furni",runFunction:function(){game.settings.locked.officedesk=!1,game.settings.locked.officechair=!1,game.settings.locked.filingcabinet=!1},reqText:"Must have over 25 customers",reqCheck:function(){return void 0===game.world.index.customer?customerCount=0:customerCount=game.propCount(game.world.index.customer),25<customerCount},across:5,down:22,readName:"Basic Office Equipment",name:"office-1",cost:3500},game.upgradeTemplates["hire-manager"]={time:480,d1:"Unlock managers",runFunction:function(){game.settings.locked["hire-manager"]=!1},reqText:"Must have 1 Office Desk and Office Chair",reqCheck:function(){return 1<=game.propCount(game.world.index.officedesk)&&1<=game.propCount(game.world.index.officechair)},across:18,down:9,readName:"Hire Managers",name:"hire-manager",cost:4e3},game.upgradeTemplates["decor-2"]={runFunction:function(){game.settings.locked.plants2=!1,game.settings.locked.pixellamp=!1,game.settings.locked.redneonstrip=!1,game.settings.locked.blueneonstrip=!1},reqCheck:function(){return 1<=game.propCount(game.world.index.manager)},time:360,d1:"Unlock plants and lights",tileset:"furni",reqText:"Must have 1 Manager",across:5,down:14,readName:"Decor Pack 2",name:"decor-2",cost:4100},game.upgradeTemplates["cleaning-3"]={time:520,d1:"Unlocks recycling bin",tileset:"furni",runFunction:function(){game.settings.locked.bin=!1},reqText:"Must have Basic Hygeine research",reqCheck:function(){return!game.isLocked("basichygeine")},across:5,down:7,readName:"Recycling Bin",name:"cleaning-3",cost:4750},game.upgradeTemplates["decor-3"]={time:600,d1:"Unlock posters",tileset:"furni",runFunction:function(){game.settings.locked.sunwarsposter=!1,game.settings.locked.bearlandposter=!1,game.settings.locked.attackattackposter=!1},reqText:"Must have 1 Manager",reqCheck:function(){return 1<=game.propCount(game.world.index.manager)},across:5,down:14,readName:"Poster Pack",name:"decor-3",cost:5e3},game.upgradeTemplates["research-1"]={time:650,d1:"Unlock researchers desk and chair",tileset:"furni",runFunction:function(){game.settings.locked.researchdesk=!1,game.settings.locked.researchchair=!1,game.settings.locked.chalkboard=!1},reqText:"Must have 1 Manager",reqCheck:function(){return 1<=game.propCount(game.world.index.manager)},across:9,down:22,readName:"Basic Research",name:"research-1",cost:5e3},game.upgradeTemplates["hire-researcher"]={time:700,d1:"Unlock researchers",runFunction:function(){game.settings.locked["hire-researcher"]=!1},reqText:"Must have 1 Researchers desk and Researcers Chair",reqCheck:function(){return 1<=game.propCount(game.world.index.researchdesk)&&1<=game.propCount(game.world.index.researchchair)},across:18,down:10,readName:"Hire Researchers",name:"hire-researcher",cost:5e3},game.upgradeTemplates["table-games"]={time:800,d1:"Unlocks table games",tileset:"gui",runFunction:function(){game.settings.locked.tablegames=!1},reqText:"Must have 1 manager and 1 researcher",reqCheck:function(){return 1<=game.propCount(game.world.index.manager)&&1<=game.propCount(game.world.index.researcher)},across:18,down:11,readName:"Table Games",name:"table-games",cost:5500},game.upgradeTemplates["advanced-research"]={time:900,d1:"Unloacks advanced research computer",tileset:"furni",runFunction:function(){game.settings.locked.advancedresearch=!1},reqText:"Must have 2 researchers",reqCheck:function(){return 2<=game.propCount(game.world.index.researcher)},across:5,down:9,w:64,h:128,readName:"Advanced Research",name:"advanced-research",cost:1e4},game.upgradeTemplates["advanced-power"]={time:950,d1:"A larger power unit",tileset:"furni",runFunction:function(){game.settings.locked.researcher=!1},reqText:"Requires 1 advanced research machine",reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},across:20,down:6,w:128,h:128,readName:"Advanced Power Station",name:"advanced-power",cost:1e4},game.upgradeTemplates["atm-r-machines"]={time:1e3,d1:"Allows customers to withdraw more cash.",tileset:"furni",runFunction:function(){game.settings.locked.atm=!1},reqText:"Requires advanced research machine",reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},across:9,down:3,w:64,h:128,readName:"ATM Machines",name:"atm-r-machines",cost:25e3},game.upgradeTemplates.builder={time:10,d1:"Find builders to hire",runFunction:function(){delete game.settings.locked["upgrade-builder"],game.patients.newAvailablePatient("builder"),game.ui.delayedNotification("Found a new builder to hire!",function(){},!0)},across:20,down:9,readName:_LANG.BUILDER,name:"builder",cost:2e3},game.upgradeTemplates.janitor={time:150,d1:"Find janitors to hire",runFunction:function(){delete game.settings.locked["upgrade-janitor"],game.patients.newAvailablePatient("janitor"),game.ui.delayedNotification("Found a new janitor to hire!",function(){},!0)},reqText:"Must have Hire Janitors researched",reqCheck:function(){return!game.isLocked("hire-janitor")},across:19,down:9,readName:_LANG.JANITOR,name:"janitor",cost:5e3},game.upgradeTemplates.manager={time:250,d1:"Find managers to hire",runFunction:function(){delete game.settings.locked["upgrade-manager"],game.patients.newAvailablePatient("manager"),game.ui.delayedNotification("Found a new manager to hire!",function(){},!0)},reqText:"Must have Hire Managers researched",reqCheck:function(){return!game.isLocked("hire-manager")},across:18,down:9,readName:_LANG.MANAGER,name:"manager",cost:1e4},game.upgradeTemplates.researcher={time:250,d1:"Find researchers to hire",runFunction:function(){delete game.settings.locked["upgrade-researcher"],game.patients.newAvailablePatient("researcher"),game.ui.delayedNotification("Found a new researcher to hire!",function(){},!0)},reqText:"Must have Hire Researchers researched",reqCheck:function(){return!game.isLocked("hire-researcher")},across:18,down:10,readName:_LANG.RESEARCHER,name:"researcher",cost:1e4},game.upgradeTemplates.poweron={time:10,d1:"Turn power on",runFunction:function(){delete game.settings.locked["upgrade-poweron"],game.hasPower=!0,game.ui.elecImage.tint=16777215},reqText:"Power is already turned on",reqCheck:function(){return!game.hasPower},across:27,down:9,readName:"Turn power on",name:"poweron",cost:0},game.upgradeTemplates["grant-1"]={time:10,d1:"Get 1,000 cash",runFunction:function(){delete game.settings.locked["upgrade-grant-1"],game.cash+=1e3,game.ui.delayedNotification("Found a cash grant of 1,000!",function(){},!0)},across:26,down:9,readName:"Find a cash grant",name:"grant-1",cost:0},game.upgradeTemplates["mkt-0"]={runFunction:function(){delete game.settings.locked["upgrade-mkt-0"],type="normal",game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type)},time:60,d1:"Attracts some customers",readName:"Leaflet advert",across:21,down:8,name:"mkt-0",cost:1e3},game.upgradeTemplates["mkt-1"]={runFunction:function(){delete game.settings.locked["upgrade-mkt-1"],type="normal",game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type)},reqCheck:function(){return 1<=game.propCount(game.world.index.manager)},time:60,d1:"Attracts normal customers",readName:"Newspaper advert",reqText:"Requires 1 Manager staff",across:21,down:8,name:"mkt-1",cost:2e3},game.upgradeTemplates["mkt-2"]={runFunction:function(){delete game.settings.locked["upgrade-mkt-2"],type="normal",game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type),game.makeRandomer(type)},reqCheck:function(){return 2<=game.propCount(game.world.index.manager)},time:60,d1:"Attracts lots of customers",readName:"TV advert",reqText:"Requires 2 Manager staff",across:21,down:8,name:"mkt-2",cost:3e3},game.upgradeTemplates.fireball={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:10,d1:"Find a supplier",tileset:"furni",across:1,down:15,w:64,h:128,readName:_LANG.FIREBALL,name:"fireball",cost:1e3},game.upgradeTemplates.twinklezone={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:20,d1:"Find a supplier",tileset:"furni",across:1,down:17,w:64,h:128,readName:_LANG.TWINKLEZONE,name:"twinklezone",cost:1500},game.upgradeTemplates.monkeykong={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:30,d1:"Find a supplier",tileset:"furni",across:1,down:23,w:64,h:128,readName:_LANG.MONKEYKONG,name:"monkeykong",cost:2e3},game.upgradeTemplates.pacboy={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:40,d1:"Find a supplier",tileset:"furni",across:1,down:25,w:64,h:128,readName:_LANG.PACBOY,name:"pacboy",cost:2200},game.upgradeTemplates.bears={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.researchdesk)},time:180,d1:"Find a supplier",tileset:"furni",reqText:"Requires research desk",across:9,down:18,w:64,h:128,readName:"Claw machine 1",name:"bears",cost:3e3},game.upgradeTemplates.piccolo={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:200,d1:"Find a supplier",tileset:"furni",across:5,down:18,w:64,h:128,readName:_LANG.PICCOLO,name:"piccolo",cost:3e3},game.upgradeTemplates.jupiter={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:200,d1:"Find a supplier",tileset:"furni",across:5,down:16,w:64,h:128,readName:_LANG.JUPITER,name:"jupiter",cost:3200},game.upgradeTemplates.oldgray={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:200,d1:"Find a supplier",tileset:"furni",across:5,down:20,w:64,h:128,readName:_LANG.OLDGRAY,name:"oldgray",cost:3500},game.upgradeTemplates.unicorns={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.manager)},time:300,d1:"Find a supplier",tileset:"furni",reqText:"Requires 1 manager",across:9,down:20,w:64,h:128,readName:"Claw machine 2",name:"unicorns",cost:4e3},game.upgradeTemplates.marleno={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:300,d1:"Find a supplier",tileset:"furni",across:5,down:29,w:64,h:128,readName:_LANG.MARLENO,name:"marleno",cost:5500},game.upgradeTemplates.froggy={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:300,d1:"Find a supplier",tileset:"furni",across:1,down:27,w:64,h:128,readName:_LANG.FROGGY,name:"froggy",cost:6e3},game.upgradeTemplates.ResidentX={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:300,d1:"Find a supplier",tileset:"furni",across:5,down:23,w:64,h:128,readName:_LANG.RESX,name:"ResidentX",cost:6500},game.upgradeTemplates.kiterider={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:300,d1:"Find a supplier",tileset:"furni",across:5,down:25,w:64,h:128,readName:_LANG.KITERIDER,name:"kiterider",cost:7e3},game.upgradeTemplates.army={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},time:300,d1:"Find a supplier",tileset:"furni",across:5,down:27,w:64,h:128,readName:_LANG.ARMY,name:"army",cost:7500},game.upgradeTemplates.pooltable={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return!game.isLocked("tablegames")},time:300,d1:"Find a supplier",tileset:"furni",reqText:"Requires table games research",across:20,down:2,w:128,h:128,readName:_LANG.POOLTABLE,name:"pooltable",cost:8e3},game.upgradeTemplates.airhockey={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return!game.isLocked("tablegames")},time:300,d1:"Find a supplier",tileset:"furni",reqText:"Requires table games research",across:22,down:2,w:128,h:128,readName:_LANG.AIRHOCKEY,name:"airhockey",cost:8500},game.upgradeTemplates.tabletennis={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return!game.isLocked("tablegames")},time:350,d1:"Find a supplier",tileset:"furni",reqText:"Requires table games research",across:20,down:4,w:128,h:128,readName:_LANG.TABLETENNIS,name:"tabletennis",cost:9e3},game.upgradeTemplates.tablefootball={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return!game.isLocked("tablegames")},time:350,d1:"Find a supplier",tileset:"furni",reqText:"Requires table games research",across:22,down:4,w:128,h:128,readName:_LANG.TABLEFOOTBALL,name:"tablefootball",cost:9500},game.upgradeTemplates.attackattack={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:35,down:1,readName:"Attack Attack",name:"attackattack",cost:1e4},game.upgradeTemplates.sunwars2={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:35,down:1,readName:"Sun Wars",name:"sunwars2",cost:10500},game.upgradeTemplates.bearland={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:35,down:1,readName:"Bear Land",name:"bearland",cost:11e3},game.upgradeTemplates.cinemaseat={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:9,down:25,w:64,h:64,readName:"Cinema seat",name:"cinemaseat",cost:12e3},game.upgradeTemplates.cinemadesk={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:9,down:23,w:128,h:64,readName:"Cinema Desk",name:"cinemadesk",cost:12500},game.upgradeTemplates.cinemaspeaker={runFunction:function(e){game.tut(20),game.settings.locked[e.name]=!1,game.ui.delayedNotification("Found a "+e.readName+" supplier!")},reqCheck:function(){return 1<=game.propCount(game.world.index.advancedresearch)},time:400,d1:"Find a supplier",tileset:"furni",reqText:"Requires advanced research machine",across:9,down:26,w:64,h:128,readName:"Cinema Speaker",name:"cinemaspeaker",cost:12500}}),bootStrap.push(function(){game.upgrades={},game.upgrades.research=[game.upgradeTemplates.upgrade_research_suppliers,game.upgradeTemplates["arcade-1"],game.upgradeTemplates["decor-1"],game.upgradeTemplates["snack-1"],game.upgradeTemplates["a_cleaning-1"],game.upgradeTemplates["furniture-2"],game.upgradeTemplates["hire-janitor"],game.upgradeTemplates["office-1"],game.upgradeTemplates["hire-manager"],game.upgradeTemplates["decor-2"],game.upgradeTemplates["cleaning-3"],game.upgradeTemplates["decor-3"],game.upgradeTemplates["research-1"],game.upgradeTemplates["hire-researcher"],game.upgradeTemplates["table-games"],game.upgradeTemplates["advanced-research"],game.upgradeTemplates["advanced-power"],game.upgradeTemplates["atm-r-machines"]],game.upgrades.staff=[game.upgradeTemplates.builder,game.upgradeTemplates.janitor,game.upgradeTemplates.manager,game.upgradeTemplates.researcher],game.upgrades.jobs=[game.upgradeTemplates.poweron,game.upgradeTemplates["grant-1"],game.upgradeTemplates["mkt-0"],game.upgradeTemplates["mkt-1"],game.upgradeTemplates["mkt-2"]],game.upgrades.suppliers=[game.upgradeTemplates.fireball,game.upgradeTemplates.twinklezone,game.upgradeTemplates.monkeykong,game.upgradeTemplates.pacboy,game.upgradeTemplates.bears,game.upgradeTemplates.piccolo,game.upgradeTemplates.jupiter,game.upgradeTemplates.oldgray,game.upgradeTemplates.unicorns,game.upgradeTemplates.marleno,game.upgradeTemplates.froggy,game.upgradeTemplates.ResidentX,game.upgradeTemplates.kiterider,game.upgradeTemplates.army,game.upgradeTemplates.pooltable,game.upgradeTemplates.airhockey,game.upgradeTemplates.tabletennis,game.upgradeTemplates.tablefootball,game.upgradeTemplates.attackattack,game.upgradeTemplates.sunwars2,game.upgradeTemplates.bearland,game.upgradeTemplates.cinemaseat,game.upgradeTemplates.cinemadesk,game.upgradeTemplates.cinemaspeaker]});var tool=function(){game.upgradeMultiplier=1,game.upgradeUIOptions={},game.upgradeUIOptions.staff={name:"staff",unlocks:game.upgrades.staff,goText:"Search",title:"Find staff",maxCols:1},game.upgradeUIOptions.jobs={name:"jobs",unlocks:game.upgrades.jobs,goText:"Start",afterMe:"research",title:"Manager Jobs",maxCols:1},game.upgradeUIOptions.research={name:"research",unlocks:game.upgrades.research,goText:"Research",beforeMe:"jobs",afterMe:"suppliers",title:"Research",maxCols:1},game.upgradeUIOptions.suppliers={name:"suppliers",unlocks:game.upgrades.suppliers,goText:"Search",beforeMe:"research",title:"Suppliers",maxCols:2}};bootStrap.push(tool);tool=function(){game.needs=["pinball"]};bootStrap.push(tool),bootStrap.push(function(){game.ui.tuts=[],game.ui.tut1Complete=function(){game.settings.locked.upgrades=!1},game.ui.tutLevel1=function(){game.tutStep=-1,game.ui.tuts.push(function(){closeTut1=function(){game.ui.clicked=!0,game.nextTutorial()},goButton=game.ui.greenButton(_LANG.OKAY,448,307,closeTut1),game.ui.showTutorial(_LANG.TUT1,100,100,goButton[0].x+120,goButton[0].y+16,0),game.ui.tutorialContents.push(goButton[0]),game.ui.tutorialContents.push(goButton[1]),game.settings.tut1Complete=!0}),game.ui.tuts.push(function(){closeTut1=function(){game.ui.clicked=!0,game.nextTutorial()},goButton=game.ui.greenButton(_LANG.OKAY,448,307,closeTut1),game.ui.showTutorial(_LANG.TUT2,100,100,goButton[0].x+120,goButton[0].y+16,0),game.ui.tutorialContents.push(goButton[0]),game.ui.tutorialContents.push(goButton[1])}),game.ui.tuts.push(function(){game.unlock("machines"),game.unlock("changemachine"),game.ui.showTutorial(_LANG.TUT3,100,100,230,game.ui._VIEWPORT_BOTTOM-50,0)}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT4,100,100,130,game.ui._VIEWPORT_BOTTOM-130,0)}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT5,100,100,-100,-100,0)}),game.ui.tuts.push(function(){closeTut1=function(){game.lock("changemachine"),game.ui.clicked=!0,game.unlock("sunwars"),game.nextTutorial()},goButton=game.ui.greenButton(_LANG.OKAY,448,307,closeTut1),game.ui.showTutorial(_LANG.TUT6,100,100,goButton[0].x+120,goButton[0].y+16,0),game.ui.tutorialContents.push(goButton[0]),game.ui.tutorialContents.push(goButton[1])}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT7,100,100,250,game.ui._VIEWPORT_BOTTOM-50,0),game.tut(game.tutStep)}),game.ui.tuts.push(function(){game.cash=200,game.ui.showTutorial(_LANG.TUT8,100,100,194,game.ui._VIEWPORT_BOTTOM-130,0)}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT9,100,100,-100,-100,0)}),game.ui.tuts.push(function(){game.unlock("changemachine"),closeTut1=function(){game.ui.clicked=!0,game.nextTutorial()},goButton=game.ui.greenButton(_LANG.OKAY,448,307,closeTut1),game.ui.showTutorial(_LANG.TUT10,100,100,goButton[0].x+120,goButton[0].y+16,0),game.ui.tutorialContents.push(goButton[0]),game.ui.tutorialContents.push(goButton[1])}),game.ui.tuts.push(function(){game.settings.locked.missions=!1,game.ui.updateAll(),game.ui.showTutorial(_LANG.TUT11,100,100,80,180,0)}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT12,game.ui._VIEWPORT_RIGHT-448,1,game.ui._VIEWPORT_RIGHT-290,220,180)}),game.ui.tuts.push(function(){game.camera.newOffsetX=-50,game.camera.newOffsetY=-50,game.ui.showTutorial(_LANG.TUT13,game.ui._VIEWPORT_RIGHT-576,1,game.ui._VIEWPORT_RIGHT-100,75,180)}),game.ui.tuts.push(function(){sign=game.world.index.openSign[Object.keys(game.world.index.openSign)[0]],game.render.viewport.snapZoom({width:960,time:2e3,center:sign,interrupt:!1,removeOnComplete:!0}),game.ui.showTutorial(_LANG.TUT14,100,100,sign.x-32,sign.y+16,180,!0)}),game.ui.tuts.push(function(){game.ui.closeTutorial()}),game.ui.tuts.push(function(){closeTut1=function(){game.ui.clicked=!0,game.nextTutorial()},goButton=game.ui.greenButton(_LANG.OKAY,448,307,closeTut1),game.ui.showTutorial(_LANG.TUT16,100,100,goButton[0].x+120,goButton[0].y+16,0),game.ui.tutorialContents.push(goButton[0]),game.ui.tutorialContents.push(goButton[1])}),game.ui.tuts.push(function(){game.ui.showTutorial(_LANG.TUT17,100,100,230,80,0),game.unlock("floors"),game.unlock("walls"),game.unlock("furni"),game.unlock("staff"),game.unlock("tables"),game.unlock("research")}),game.ui.tuts.push(function(){game.ui.showTutorial("",100,100,game.ui._VIEWPORT_RIGHT-230,135,180),game.ui.r.alpha=0}),game.ui.tuts.push(function(){game.ui.showTutorial("You will always have new stuff to research so make sure to check back here.",100,100,game.ui._VIEWPORT_RIGHT-100,75,180)}),game.ui.tuts.push(function(){game.ui.showTutorial("Before you can buy new arcade machines you have to find a supplier first.",100,100,320,80,0)}),game.ui.tuts.push(function(){game.ui.showTutorial("",100,100,game.ui.upgradeMenuContents[10].x+90,game.ui.upgradeMenuContents[10].y+5,0),game.ui.r.alpha=0}),game.ui.tuts.push(function(){game.ui.showTutorial("",100,100,game.ui._VIEWPORT_RIGHT-120,25,0),game.ui.r.alpha=0}),game.ui.tuts.push(function(){game.ui.showTutorial("Now that you have a supplier you can build that machine",100,100,game.ui._VIEWPORT_RIGHT-100,75,180)}),game.ui.tuts.push(function(){game.ui.showTutorial("The machine will now be unlocked in the machines menu",100,100,230,game.ui._VIEWPORT_BOTTOM-50,0)}),game.ui.tuts.push(function(){game.ui.showTutorial("The machine will now be unlocked in the machines menu",100,100,258,game.ui._VIEWPORT_BOTTOM-130,0)}),game.ui.tuts.push(function(){game.ui.showTutorial("Great, you get it! Now remember to keep an eye on these tasks, and everything should be fine!",100,100,80,180,0)})}}),bootStrap.push(function(){return game.hasXOf=function(e,a){return game.propCount(game.world.index[e])>=a},game.allMissions={},buildXOf=function(e,a,t,i){return{description:_LANG.MISSION_DYNAMIC_1+e+" "+_LANG[t]+_LANG.MISSION_DYNAMIC_2,payout:i,checkMission:function(){return game.propCount(game.world.index[a])>=e}}},!0}),bootStrap.push(function(){game.missions_main={},game.missions_main.starter4={description:"Build a change machine!",checkMission:function(){return 1<=game.propCount(game.world.index.change)},payout:150},game.allMissions.starter4=game.missions_main.starter4,game.missions_main.starter3={description:"Open your arcade!",checkMission:function(){return!0===game.isOpen},payout:250},game.allMissions.starter3=game.missions_main.starter3,game.missions_main.have_small_arcade={description:"Have a small arcade business\n -Has 5 pinball machines\n -Has 2 arcade machines",checkMission:function(){return 5<=game.propCount(game.world.index.pinball)&&2<=game.propCount(game.world.index.arcade)},payout:1250},game.allMissions.have_small_arcade=game.missions_main.have_small_arcade,game.missions_main.build_bathroom={description:"Build a bathroom\n -Has 2 toilets\n -Has 2 sinks",checkMission:function(){return 2<=game.propCount(game.world.index.toilet)&&2<=game.propCount(game.world.index.sink)},payout:1300},game.allMissions.build_bathroom=game.missions_main.build_bathroom,game.missions_main.build_seats={description:"Build a sitting area\n -Has 4 chairs\n -Has 2 tables",checkMission:function(){return 4<=game.propCount(game.world.index.seat)&&2<=game.propCount(game.world.index.smalltable)},payout:1500},game.allMissions.build_seats=game.missions_main.build_seats,game.missions_main.keep_people_fed={description:"Keep people fed\n -Has 2 snack machines",checkMission:function(){return 2<=game.propCount(game.world.index.food)},payout:1500},game.allMissions.keep_people_fed=game.missions_main.keep_people_fed,game.missions_main.generate_50_elec={description:"Generate over 50 electricity\n -Has over 50 electricity",checkMission:function(){return 50<=game.elecUnits},payout:1550},game.allMissions.generate_50_elec=game.missions_main.generate_50_elec,game.missions_main.have_large_arcade={description:"Have a small arcade business\n -Has 10 pinball machines\n -Has 10 arcade machines",checkMission:function(){return 10<=game.propCount(game.world.index.arcade)&&10<=game.propCount(game.world.index.pinball)},payout:1700},game.allMissions.have_large_arcade=game.missions_main.have_large_arcade,game.missions_main.generate_1000_elec={description:"Generate over 100 electricity\n -Has over 100 electricity",checkMission:function(){return 100<=game.elecUnits},payout:2e3},game.allMissions.generate_1000_elec=game.missions_main.generate_1000_elec,game.missions_main.build_pool_hall={description:"Build a pool room\n -Has 2 pool tables",checkMission:function(){return 2<=game.propCount(game.world.index.pooltable)},payout:3e3},game.allMissions.build_pool_hall=game.missions_main.build_pool_hall,game.missions_main.keep_clean={description:"Keep the place clean\n -Has 5 trash cans",checkMission:function(){return 5<=game.propCount(game.world.index.bin)},payout:3e3},game.allMissions.keep_clean=game.missions_main.keep_clean,game.missions_main.keep_pockets_filled={description:"Keep pockets filled\n -Has 1 ATM Machine",checkMission:function(){return 1<=game.propCount(game.world.index.atm)},payout:3e3},game.allMissions.keep_pockets_filled=game.missions_main.keep_pockets_filled,game.missions_main.has_50_customers={description:"Have 50 customers in your arcade",checkMission:function(){return 50<=game.propCount(game.world.index.customer)},payout:3e3},game.allMissions.has_50_customers=game.missions_main.has_50_customers,game.missions_main.have_medium_arcade={description:"Have a small arcade business\n -Has 15 pinball machines\n -Has 15 arcade machines",checkMission:function(){return 15<=game.propCount(game.world.index.arcade)&&15<=game.propCount(game.world.index.pinball)},payout:3500},game.allMissions.have_medium_arcade=game.missions_main.have_medium_arcade,game.missions_main.has_first_office={description:"Build your first office\n -Has 1 office desk\n -Has 1 office chair",checkMission:function(){return 1<=game.propCount(game.world.index.officechair)&&1<=game.propCount(game.world.index.officedesk)},payout:5e3},game.allMissions.has_first_office=game.missions_main.has_first_office,game.missions_main.upgrade_office={description:"Upgrade your first office\n -Has 2 filing cabinets",checkMission:function(){return 2<=game.propCount(game.world.index.filingcabinet)},payout:5100},game.allMissions.upgrade_office=game.missions_main.upgrade_office,game.missions_main.have_research_lab={description:"Build a research lab\n -Has 1 research table\n -Has 1 research chair",checkMission:function(){return 1<=game.propCount(game.world.index.researchdesk)&&1<=game.propCount(game.world.index.researchchair)},payout:1e4},game.allMissions.have_research_lab=game.missions_main.have_research_lab,game.missions_main.upgrade_research_lab={description:"Upgrade your research lab\n -Has 3 research tables\n -Has 3 research Chairs\n -Has 1 research machine",checkMission:function(){return 3<=game.propCount(game.world.index.researchdesk)&&3<=game.propCount(game.world.index.researchchair)&&1<=game.propCount(game.world.index.advancedresearch)},payout:15e3},game.allMissions.upgrade_research_lab=game.missions_main.upgrade_research_lab,game.missions_main.build_cinema={description:"Build a cinema\n -Has 1 Cinema Desk\n -Has 1 Cinema screen\n -Has 2 Cinema Seats",checkMission:function(){return 1<=game.propCount(game.world.index.cinemascreen)&&2<=game.propCount(game.world.index.cinemaseat)&&2<=game.propCount(game.world.index.cinemadesk)},payout:25e3},game.allMissions.build_cinema=game.missions_main.build_cinema}),bootStrap.push(function(){game.missions_tut={},game.missions_tut.starter1={description:_LANG.M1,checkMission:function(){return 1<=game.propCount(game.world.index.change)},payout:1e3},game.allMissions.starter1=game.missions_tut.starter1,game.missions_tut.snack1={description:"Build a snack or drink machine",checkMission:function(){return 1<=game.propCount(game.world.index.food)},payout:3500},game.allMissions.snack1=game.missions_tut.snack1,game.missions_tut.has_10_customers={description:"Have 10 customers in your arcade",checkMission:function(){return 10<=game.propCount(game.world.index.customer)},payout:5e3},game.allMissions.has_10_customers=game.missions_tut.has_10_customers}),bootStrap.push(function(){game.challenges={},openSign=',{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-191","data":{"buildFunction":"openSign"},"name":null,"alpha":1}',game.defaultUnlocks=function(){game.settings.locked.hire_staff=!1,game.settings.locked.utilities=!1,game.settings.locked.jobs=!1,game.settings.locked.upgrades=!1,game.ui.updateAll()},game.resetStats=function(){game.settings.happyPeeps=45,game.elecUsed=0,game.elecUnits=0,game.hasPower=!0},game.setupTutorialLocks=function(){for(game.resetStats(),i=0;i<game.world.objectTemplates.machines.length;i++)game.settings.locked[game.world.objectTemplates.machines[i].codename]=!0;for(i=0;i<game.world.objectTemplates.tables.length;i++)game.settings.locked[game.world.objectTemplates.tables[i].codename]=!0;for(i=0;i<game.world.objectTemplates.utilities.length;i++)game.settings.locked[game.world.objectTemplates.utilities[i].codename]=!0;for(i=0;i<game.world.objectTemplates.furni.length;i++)game.settings.locked[game.world.objectTemplates.furni[i].codename]=!0;game.setMarketingSettings(),game.settings.locked.staff_builder=!0,game.settings.locked.staff_janitor=!0,game.settings.locked.hire_staff=!0,game.settings.locked.game_log=!0,game.settings.locked.jobs=!0,game.settings.locked.research=!0,game.settings.locked.suppliers=!0,game.settings.locked.elec_prices=!0,game.settings.locked.tables=!0,game.settings.locked.basicfurni=!0,game.settings.locked.chair=!0,game.settings.locked.door=!0,game.settings.locked.toilet=!0,game.settings.locked.snackmachine=!0,game.settings.locked.builder=!0,game.settings.locked.janitor=!0,game.settings.locked.advancedfurni=!0,game.settings.locked.readthoughts=!0,game.settings.locked.bluemachines=!0,game.settings.locked.redmachines=!0,game.settings.locked.tabletennis=!0,game.settings.locked.pooltable=!0,game.settings.locked.tablefootball=!0,game.settings.locked.airhockey=!0,game.settings.locked.pixellamp=!0,game.settings.locked.couch=!0,game.settings.locked.redneonstrip=!0,game.settings.locked.sodamachine=!0,game.settings.locked.coffeetable=!0,game.settings.locked.smallpower=!0,game.settings.locked.bigpower=!0,game.settings.locked.filingcabinet=!0,game.settings.locked.officedesk=!0,game.settings.locked.bin=!0,game.settings.locked.sandbox=!1,game.settings.locked.sandbox_big=!_SETTINGS.extraChallenges,game.settings.locked.normal=!1,game.settings.locked.super_normal=!_SETTINGS.extraChallenges,game.settings.locked.hard=!_SETTINGS.extraChallenges,game.settings.locked.super_hard=!_SETTINGS.extraChallenges,game.settings.locked.nightmare=!0},game.setupDefaultLocks=function(){for(game.resetStats(),i=0;i<game.world.objectTemplates.machines.length;i++)game.settings.locked[game.world.objectTemplates.machines[i].codename]=!0;for(i=0;i<game.world.objectTemplates.tables.length;i++)game.settings.locked[game.world.objectTemplates.tables[i].codename]=!0;for(i=0;i<game.world.objectTemplates.utilities.length;i++)game.settings.locked[game.world.objectTemplates.utilities[i].codename]=!0;for(i=0;i<game.world.objectTemplates.furni.length;i++)game.settings.locked[game.world.objectTemplates.furni[i].codename]=!0;for(i=0;i<game.world.objectTemplates.walls.length;i++)game.settings.locked[game.world.objectTemplates.walls[i].codename]=!1;game.setMarketingSettings(),game.settings.locked.staff_builder=!0,game.settings.locked.staff_janitor=!0,game.settings.locked.hire_staff=!0,game.settings.locked.game_log=!0,game.settings.locked.jobs=!0,game.settings.locked.research=!0,game.settings.locked.suppliers=!0,game.settings.locked.elec_prices=!0,game.settings.locked.tables=!0,game.settings.locked.basicfurni=!0,game.settings.locked.chair=!0,game.settings.locked.door=!0,game.settings.locked.toilet=!0,game.settings.locked.snackmachine=!0,game.settings.locked.builder=!0,game.settings.locked.janitor=!0,game.settings.locked.advancedfurni=!0,game.settings.locked.readthoughts=!0,game.settings.locked.bluemachines=!0,game.settings.locked.redmachines=!0,game.settings.locked.tabletennis=!0,game.settings.locked.pooltable=!0,game.settings.locked.tablefootball=!0,game.settings.locked.airhockey=!0,game.settings.locked.pixellamp=!0,game.settings.locked.couch=!0,game.settings.locked.redneonstrip=!0,game.settings.locked.sodamachine=!0,game.settings.locked.coffeetable=!0,game.settings.locked.smallpower=!0,game.settings.locked.bigpower=!0,game.settings.locked.filingcabinet=!0,game.settings.locked.officedesk=!0,game.settings.locked.bin=!0,game.settings.locked.nightmare=!0,game.settings.locked.floors=!1,game.settings.locked.walls=!1,game.settings.locked.tables=!1,game.settings.locked.furni=!1,game.settings.locked.machines=!1,game.settings.locked.staff=!1,game.settings.locked.upgrades=!1,game.settings.locked.missions=!1,game.settings.locked.changemachine=!1,game.settings.locked.sunwars=!1,game.settings.locked.research=!1,game.settings.locked.suppliers=!1,game.settings.locked["upgrade-suppliers"]=!1,game.settings.locked.jobs=!1,game.settings.locked.hire_staff=!1,game.settings.locked.door=!1,game.settings.locked.smallpower=!1,game.settings.locked.chair=!1},game.tutMissions=Object.keys(game.missions_tut),game.defaultMissions=Object.keys(game.missions_main),game.challenges.level1={name:_LANG.C1,description:_LANG.C1_DESC,tileset:"default",startElecRate:10,challenges:game.tutMissions,across:18,down:13,load:function(e){game.track.event("Started tutorial",""),game.setupTutorialLocks(),e&&(game.saves.load('{"drawMatrix":[[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,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,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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,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,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],[3,2],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,6],[1,10],[4,6],[3,3],[3,3],[3,3],[3,4],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[5,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,4],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[3,2],[3,3],[3,3],[3,3],[3,3],[5,6],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[3,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,9],[1,9],[1,9],[1,9],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[3,5],[1,9],[1,9],[1,9],[1,9],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,5],[1,9],[1,9],[1,9],[1,9],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,9],[1,9],[1,9],[1,9],[4,2],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[5,2],[3,3],[3,3],[3,3],[3,3],[3,3],[6,6],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[6,6],[3,3],[3,3],[3,3],[3,3],[5,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]]],"life":[{"x":576,"y":832,"data":{"speed":91,"across":1,"down":1,"body":{"hat":3,"head":2,"across":1,"down":1},"female":false,"needCount":0,"need":"gohome","job":"builder"},"job":"builder"}],"objects":[{"x":384,"y":704,"height":128,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3325","itemid":"2","data":{"maxPay":null,"buildFunction":"openSign"},"name":"openSign","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3331","itemid":"4","data":{"maxPay":null,"buildFunction":"car"},"name":"car","alpha":1},{"x":1280,"y":832,"height":64,"width":64,"framex":1984,"framey":256,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3369","itemid":"21","data":{"maxPay":null,"ref":"1280-832","buildFloor":false,"cleanup":true},"name":"trash","alpha":1},{"x":1536,"y":1280,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3744","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75},"name":"power","alpha":1,"direction":3,"readName":"Big power"},{"x":1664,"y":1280,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3371","itemid":"22","data":{"maxPay":null,"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75},"name":"power","alpha":1,"direction":3,"readName":"Big power"},{"x":1792,"y":1280,"height":64,"width":64,"framex":448,"framey":448,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3374","itemid":"23","data":{"maxPay":null,"powerUnits":30,"buildFurni":false,"buildFunction":"power"},"name":"power","alpha":1,"direction":3,"readName":"Small power"},{"x":1792,"y":1344,"height":64,"width":64,"framex":448,"framey":448,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-3850","data":{"powerUnits":30,"buildFurni":false,"buildFunction":"power"},"name":"power","alpha":1,"direction":3,"readName":"Small power"}],"settings":false,"cash":4989000,"isOpen":false}',e),game.settings.locked.upgrades=!0,game.settings.locked.missions=!0,game.settings.locked.utilities=!0,game.settings.locked.floors=!0,game.settings.locked.walls=!0,game.settings.locked.furni=!0,game.settings.locked.machines=!0,game.settings.locked.staff=!0,game.settings.happyPeeps=55,game.ui.updateAll(),game.started=!0,game.isTut=!0,!(game.tutStep=-1)!==game.showTut&&(game.ui.tutLevel1(),game.nextTutorial()),game.cash=100)}},game.challenges.idle={name:"Idle mode",description:"-Building already exists.\n-For idle gamers",requires:_LANG.C4_REQ,tileset:"default",startElecRate:1,challenges:game.defaultMissions,across:18,down:13,load:function(e){game.track.event("Started tutorial",""),game.settings.locked.floors=!0,game.settings.locked.walls=!0,game.settings.locked.tables=!0,game.settings.locked.furni=!0,game.settings.locked.machines=!0,game.settings.locked.staff=!0,game.setupDefaultLocks(),game.settings.happyPeeps=65,game.settings.locked.sandbox=!1,game.settings.locked.normal=!1,game.settings.locked.easy=!1,loadFile='{"drawMatrix":[[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,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,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[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,2],[3,3],[3,3],[3,3],[3,3],[6,5],[3,3],[3,6],[1,1],[1,1],[4,6],[6,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,4],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[3,5],[1,11],[1,11],[1,11],[1,11],[1,11],[3,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,11],[1,11],[1,11],[1,11],[1,11],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,5],[1,11],[1,11],[1,11],[1,11],[1,11],[4,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[5,5],[3,3],[3,3],[3,3],[3,3],[5,6],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[3,5],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,11],[1,11],[1,11],[1,11],[1,11],[5,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,6],[1,11],[1,11],[1,11],[1,11],[4,6],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[5,6],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,5],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[3,5],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,5],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[5,5],[3,3],[3,3],[3,3],[3,3],[5,6],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[3,5],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[1,13],[1,11],[1,11],[1,11],[1,11],[1,11],[5,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,6],[1,11],[1,11],[1,11],[1,11],[4,6],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[5,6],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,5],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[5,5],[3,3],[3,6],[1,9],[4,6],[3,3],[5,6],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[4,2],[1,13],[1,13],[1,13],[1,13],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,1],[1,1]],[[1,1],[1,1],[5,2],[3,3],[3,3],[3,3],[3,3],[6,6],[3,3],[3,3],[3,3],[3,3],[3,3],[6,6],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[5,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,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]],"life":[{"x":2175.996955023324,"y":1983.9999980373868,"job":"builder","data":{"speed":85,"across":1,"down":0,"patient":{"name":"Nickname: Steph","rawName":"Steph","bio":"The life of the party!","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":1},"body":{"hat":3,"head":4,"across":1,"down":0},"female":0,"job":"builder","jobs":["builder","miner","janitor","builder","builder","builder"]}}],"objects":[{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1679","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"0"},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1683","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"2"},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1681","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"1"},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1685","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"3"},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1687","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"4"},{"x":832,"y":448,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1699","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","alpha":1,"itemid":"10","cost":50,"direction":0,"readName":"Door","codename":"door"},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1689","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1,"itemid":"5"},{"x":384,"y":704,"height":128,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1701","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1,"itemid":"11"},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1693","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"7"},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1691","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"6"},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1695","itemid":"8","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1707","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"12"},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1697","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"9"},{"x":64,"y":1664,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1711","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"16"},{"x":64,"y":1984,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1713","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"17"},{"x":1344,"y":448,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1719","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","alpha":1,"itemid":"20","cost":50,"direction":0,"readName":"Door","codename":"door"},false,{"x":64,"y":2304,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1715","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"18"},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1709","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"15"},{"x":64,"y":2624,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1723","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"22"},{"x":64,"y":2944,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-2165","data":{"maxPay":null},"name":"Lightpost","alpha":0.25,"itemid":"243"},{"x":256,"y":1792,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1717","data":{"maxPay":null},"name":null,"alpha":0.25,"itemid":"19"},{"x":2240,"y":448,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1993","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","alpha":1,"itemid":"157","cost":50,"direction":0,"readName":"Door","codename":"door"},false,{"x":2432,"y":640,"height":64,"width":64,"framex":192,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-278268","data":{"buildDoor":false,"wallBuild":true,"isDoor":true},"name":"door","cost":50,"direction":3,"readName":"Door","codename":"door","alpha":1},{"x":256,"y":2112,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1721","itemid":"21","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":832,"y":832,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-1725","itemid":"23","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","cost":50,"direction":0,"readName":"Door","codename":"door","alpha":1},{"x":256,"y":2432,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1753","itemid":"37","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":2752,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-1757","itemid":"39","data":{"maxPay":null},"name":null,"alpha":0.25}],"settings":false,"cash":5000,"isOpen":false}',game.saves.load(loadFile,e),game.ui.updateAll(),game.started=!0,game.cash=5e3}},game.challenges.normal={name:_LANG.NORMAL_MODE,description:_LANG.NORMAL_MODE_DESC,requires:_LANG.C4_REQ,tileset:"default",startElecRate:1,challenges:game.defaultMissions,across:18,down:14,load:function(e){game.track.event("Started Normal",""),game.setupDefaultLocks(),e&&(game.sandboxGame(),game.tutStep=-1,game.cash=5e3,game.started=!0,game.ui.updateAll(),game.patients.newAvailablePatient("builder"),game.patients.newAvailablePatient("builder"),game.patients.newAvailablePatient("builder"),game.patients.addPatientToWorld("builder",0),game.patients.addPatientToWorld("builder",1),game.patients.addPatientToWorld("builder",2))}},!(game.challenges.sandbox={name:_LANG.SANDBOX,description:_LANG.SANDBOX_DESC,requires:_LANG.C4_REQ,tileset:"default",startElecRate:1,challenges:game.defaultMissions,across:18,down:14,load:function(e){game.track.event("Started sandbox",""),game.setupDefaultLocks(),e&&(game.sandboxGame(),game.tutStep=-1,game.setupDefaultLocks(),game.cash=5e6,game.started=!0,game.ui.updateAll(),game.patients.newAvailablePatient("builder"),game.patients.newAvailablePatient("builder"),game.patients.newAvailablePatient("builder"),game.patients.addPatientToWorld("builder",0),game.patients.addPatientToWorld("builder",1),game.patients.addPatientToWorld("builder",2))}})!==game.saves.getItem(game.alias.get("saveFile"))?(game.settings.locked.normal=!1,game.settings.locked.sandbox=!1):(game.settings.locked.normal=!0,game.settings.locked.sandbox=!0),game.settings.locked.normal=!1,game.settings.locked.idle=!1,game.settings.locked.sandbox=!1}),bootStrap.push(function(){game.ui.data={},game.ui.data.menus=[{name:"walls",readName:_LANG.WALLS,description:"",across:18,down:3,tools:game.world.objectTemplates.walls},{name:"tables",readName:_LANG.LARGE_GAMES,description:"",across:24,down:3,tools:game.world.objectTemplates.tables},{name:"machines",tutNumbers:[2,6,23],rotate:!0,readName:_LANG.GAMES_MACHINES,description:"",across:22,down:3,tools:game.world.objectTemplates.machines},{name:"furni",rotate:!0,readName:_LANG.FURNITURE,description:"",across:19,down:3,tools:game.world.objectTemplates.furni},{name:"utilities",rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.submenus},{name:"research",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.research},{name:"office",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.office},{name:"hygiene",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.hygiene},{name:"power",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.power},{name:"food",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.food},{name:"decor",submenu:!0,rotate:!0,readName:_LANG.UTILITIES,description:"",across:23,down:3,tools:game.world.objectTemplates.decor}]});tool=function(){game.world.attachStandAreas=function(e){if(x=e.x,y=e.y,void 0!==e.standArea||void 0!==e.standArea2||void 0!==e.standArea3||void 0!==e.standArea4)return!1;if(!0===e.data.standArea&&(e.standArea=game.render.gameSquare(16,16,32,32,65280),e.standArea.alpha=1,game.render.objectLayer.addChild(e.standArea)),!0===e.data.standArea2&&(e.standArea2=game.render.gameSquare(16,16,32,32,255),e.standArea2.alpha=1,game.render.objectLayer.addChild(e.standArea2)),!0===e.data.standArea3&&(e.standArea3=game.render.gameSquare(16,16,32,32,255),e.standArea3.alpha=1,game.render.objectLayer.addChild(e.standArea3)),!0===e.data.standArea4&&(e.standArea4=game.render.gameSquare(16,16,32,32,255),e.standArea4.alpha=1,game.render.objectLayer.addChild(e.standArea4)),!0===e.data.standArea)switch(e.direction){case 0:e.standArea.x=x,e.standArea.y=y+game.tileSize;break;case 1:e.standArea.x=x,e.standArea.y=y-game.tileSize;break;case 2:e.standArea.x=x+game.tileSize,e.standArea.y=y;break;case 3:e.standArea.x=x-game.tileSize,e.standArea.y=y}if(!0===e.data.standArea2)switch(e.direction){case 0:e.standArea2.x=x,e.standArea2.y=y-game.tileSize;break;case 1:e.standArea2.x=x,e.standArea2.y=y+game.tileSize;break;case 2:e.standArea2.x=x-game.tileSize,e.standArea2.y=y;break;case 3:e.standArea2.x=x+game.tileSize,e.standArea2.y=y}if(!0===e.data.standArea3)switch(e.direction){case 0:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x+game.tileSize),game.gridPos(e.y),!1),e.standArea3.x=x,e.standArea3.y=y;break;case 1:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y),!1),e.standArea3.x=x+game.tileSize,e.standArea3.y=y;break;case 2:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y+game.tileSize),!1),e.standArea3.x=x,e.standArea3.y=y-16;break;case 3:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y),!1),e.standArea3.x=x,e.standArea3.y=y+game.tileSize}if(!0===e.data.standArea4)switch(-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y),!1),e.direction){case 0:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y+game.tileSize),!1),e.standArea4.x=x+game.tileSize,e.standArea4.y=y+game.tileSize;break;case 1:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y+game.tileSize),!1),e.standArea4.x=x,e.standArea4.y=y-game.tileSize;break;case 2:-1!==game.blockList.indexOf(e.name)&&game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y+game.tileSize),!1),e.standArea4.x=x-game.tileSize,e.standArea4.y=y+game.tileSize;break;case 3:e.data.standDefault?(e.standArea4.x=x,e.standArea4.y=y+game.tileSize+game.tileSize):(e.standArea4.x=x,e.standArea4.y=y+game.tileSize)}!0===e.data.big&&game.ai.updateGrid(game.gridPos(e.x)+1,game.gridPos(e.y),!1)},game.blockList=["coffeetable","arcade","pinball","change","snack","claw","table","food"],game.world.defaultBuildFunction=function(e){"pinball"!=e.name&&"arcade"!=e.name&&"table"!=e.name&&"food"!=e.name&&"snack"!=e.name||(game.world.addToIndex(e.codename,e),game.needs.push(e.codename)),e.data.defaultPay=e.data.pay,e.data.maxPay=1.25*e.data.pay,void 0!==e.data.elecUnits&&game.world.addToIndex("on",e),game.world.addToIndex(e.name,e),"trash"==e.name?e.interactive=!1:(e.interactive=!0,e.on("pointerup",function(){if(!0===game.ui.clicked)return!1;this.id!==game.ui.watchingObject.id&&game.ui.watchObject(e)})),"pooltable"==e.codename&&(e.data.anim="pool"),"tabletennis"==e.codename&&(e.data.anim="tennis"),"filingcabinet"!=e.name&&"advancedresearch"!=e.name||(e.data.standDefault=!0),x=e.x,y=e.y,game.world.attachStandAreas(e)},game.onBuildFunctions.atm=function(e){e.data.anim="card"},game.onBuildFunctions.claw=function(e){game.needs.push(e.name)},game.onBuildFunctions.staffdesk=function(e){e.data.canBeTaken=!1,e.data.doNow=!0,game.needs.push(e.name),game.needs.push(e.name),game.needs.push(e.name)},game.onBuildFunctions.cinemaseat=function(e){e.data.animLength=10,game.needs.push("staffdesk")},game.onBuildFunctions.table=function(e){game.needs.push(e.name)},game.onBuildFunctions.atm=function(e){e.data.anim="card"},game.onBuildFunctions.bin=function(e){e.data.canBeTaken=!1,e.data.doNow=!0},game.onBuildFunctions.sink=function(e){e.data.anim="wash",e.data.face="same",game.world.defaultBuildFunction(e)},game.onBuildFunctions.power=function(e){game.elecUnits=game.elecUnits+e.data.powerUnits},game.onBuildFunctions.cinema=function(e){game.world.defaultBuildFunction(e),sx=19*game.tileSize,sy=9*game.tileSize,"sunwars2"==e.codename&&(sx=19*game.tileSize,sy=9*game.tileSize),"bearland"==e.codename&&(sx=19*game.tileSize,sy=11*game.tileSize),"attackattack"==e.codename&&(sx=19*game.tileSize,sy=13*game.tileSize),sw=3*game.tileSize,sh=2*game.tileSize,w=5*game.tileSize,h=4*game.tileSize,frameW=sw,offsetX=35,offsetY=25,frames=[],texture=game.render.newTexture(game.render.tilesets.furni,sx,sy,sw,sh),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+frameW,sy,sw,sh),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+frameW+frameW,sy,sw,sh),frames.push(texture);var a=new WorldObjectAnim(e.x+offsetX,e.y+offsetY,frames);a.width=w,a.height=h,game.render.objectLayer.addChild(a),a.animationSpeed=.019*Math.random()+.001,a.play(),e.animRender=a},game.onBuildFunctions.toilet=function(e){game.world.defaultBuildFunction(e)},game.onBuildFunctions.car=function(e){game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y),!1),game.ai.updateGrid(game.gridPos(e.x)+1,game.gridPos(e.y),!1),game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y)+1,!1),game.ai.updateGrid(game.gridPos(e.x)+1,game.gridPos(e.y)+1,!1)},game.onBuildFunctions.openSign=function(e){var a;game.ai.updateGrid(game.gridPos(e.x),game.gridPos(e.y),!1),game.ai.updateGrid(game.gridPos(e.x)+1,game.gridPos(e.y),!1),game.debug("ATTACH"),game.debug("ATTACH"),game.debug("ATTACH"),game.debug("ATTACH"),game.debug("ATTACH"),e.interactive=!0,e.on("pointerup",function(){return!0===game.ui.clicked?game.ui.clicked=!1:null==game.world.index.pinball?(game.ui.notification("You must have atleast 3 pinball machines (Sun Wars) before opening!"),!1):Object.keys(game.world.index.pinball).length<3?(game.ui.notification("You must have atleast 3 pinball machines (Sun Wars) before opening!"),!1):game.hasPower?(!1===game.isOpen?(game.tut(13),openOrClose=_LANG.READY_TO_OPEN,yesFunc=function(){game.closed.visible=!1,game.open.visible=!0,game.isOpen=!0,game.tut(14),game.track.event("Opened arcade",""),game.openSign.animRender[0].play(),game.openSign.animRender[0].alpha=1}):(openOrClose=_LANG.READY_TO_CLOSE,yesFunc=function(){game.closed.visible=!0,game.open.visible=!1,game.isOpen=!1,game.track.event("Closed arcade","");for(var e=0;e<game.ai.life.length;e++)game.ai.life[e].forceNeed="gohome",game.ai.life[e].hasNeed=!0;game.openSign.animRender[0].alpha=0,game.openSign.animRender[0].pause()}),void game.ui.yesno(openOrClose,yesFunc)):(game.ui.notification("You should turn the power on before opening!"),!1)}),game.open=game.render.text(_LANG.OPEN,"sign-open"),game.open.x=e.x+e.width/2,game.open.y=e.y+57,game.open.visible=!1,game.open.anchor.set(.5),game.open.data=!1,game.closed=game.render.text(_LANG.CLOSED,"sign-closed"),game.closed.x=e.x+e.width/2,game.closed.y=e.y+57,game.closed.anchor.set(.5),game.closed.visible=!1,game.closed.data=!1,game.open.built=!0,game.open.name="opentext",game.closed.built=!0,game.closed.name="opentext",game.render.objectLayer.addChild(game.open),game.render.objectLayer.addChild(game.closed),game.world.addObject(game.open),game.world.addObject(game.closed),w=128,h=128,frameW=w,sx=25*game.tileSize,sy=1*game.tileSize,frames=[],texture=game.render.newTexture(game.render.tilesets.furni,sx,sy,w,h),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+frameW,sy,w,h),frames.push(texture),(a=new WorldObjectAnim(e.x,e.y,frames)).x=e.x,a.y=e.y,a.width=w,a.height=h,game.render.bloomLayer.addChild(a),a.animationSpeed=.019*Math.random()+.001,a.alpha=1,e.animRender=[a],2==(_SETTINGS.bloomLevel||2)&&3==game.rand(2,4)&&game.throttle.screenFilterCount<game.throttle.screenFilter&&game.throttle.screenFilterCount++,!1===game.isOpen?(game.closed.visible=!0,a.alpha=0):(game.open.visible=!0,a.play()),w=128,h=128,frameW=w,sx=25*game.tileSize,sy=3*game.tileSize,frames=[],texture=game.render.newTexture(game.render.tilesets.furni,sx,sy,w,h),a=new WorldSprite(e.x,e.y,texture),game.render.lights.addChild(a),a.blendMode=PIXI.BLEND_MODES.ADD,a.animationSpeed=25,a.alpha=1,e.animRender.push(a),game.openSign=e}};bootStrap.push(tool);tool=function(){game.throttle={},game.throttle.screenFilter=10,game.throttle.screenFilterCount=0,game.onBuildFunctions.arcademachine=function(e){game.needs.push(e.name),game.world.defaultBuildFunction(e),light=PIXI.Sprite.fromImage(game.folder+"png/soda-light.png"),light.width=64,light.height=128,light.x=e.x,light.y=e.y,light.alpha=1,light.rotate=-180,light.blendMode=PIXI.BLEND_MODES.ADD,light.parentLayer=game.render.lighting,game.flashingLights.push(light);var a,t=game.tileSize,i=game.tileSize,n=game.tileSize,r=_SETTINGS.bloomLevel||2;3==e.direction&&"arcade"==e.name&&(i=t=64,n=t,sx=15*game.tileSize,sy=(game.rand(20,23)-1)*game.tileSize,frames=[],texture=game.render.newTexture(game.render.tilesets.furni,sx,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n+n,sy,t,i),frames.push(texture),a=new WorldObjectAnim(e.x,e.y,frames),game.render.bloomLayer.addChild(a),a.animationSpeed=.019*Math.random()+.001,a.play(),a.alpha=1,e.animRender=[a],2==r&&3==game.rand(2,4)&&game.throttle.screenFilterCount<game.throttle.screenFilter&&game.throttle.screenFilterCount++,a=new WorldSprite(e.x,e.y,texture),game.render.lights.addChild(a),a.blendMode=PIXI.BLEND_MODES.ADD,a.animationSpeed=.019*Math.random()+.001,a.alpha=1,e.animRender.push(a)),3==e.direction&&"pinball"==e.name&&(i=t=64,n=t,sx=15*game.tileSize,sy=18*game.tileSize,frames=[],texture=game.render.newTexture(game.render.tilesets.furni,sx,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n+n,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n+n+n,sy,t,i),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,sx+n+n+n+n,sy,t,i),frames.push(texture),a=new WorldObjectAnim(e.x+2,e.y+17,frames),game.render.bloomLayer.addChild(a),a.animationSpeed=.019*Math.random()+.001,a.play(),a.alpha=1,e.animRender=[a],2==r&&3==game.rand(2,4)&&game.throttle.screenFilterCount<game.throttle.screenFilter&&game.throttle.screenFilterCount++,a=new WorldSprite(e.x+2,e.y+17,texture),game.render.lights.addChild(a),a.blendMode=PIXI.BLEND_MODES.ADD,a.animationSpeed=.019*Math.random()+.001,a.alpha=1,e.animRender.push(a))}};bootStrap.push(tool),bootStrap.push(function(){game.onBuildFunctions.add_light_1=function(e){game.world.defaultBuildFunction(e)}});tool=function(){game.onBuildFunctions.neonstrip=function(e){switch(light=PIXI.Sprite.fromImage(game.folder+"png/walllight.png"),light.width=256,light.height=384,light.x=e.x+64-16,light.y=e.y+32,light.alpha=1,light.anchor.set(0,.5),e.direction){case 0:game.rotate(light,90);break;case 3:game.rotate(light,180);break;case 2:game.rotate(light,-90)}switch(light.blendMode=PIXI.BLEND_MODES.ADD,game.render.lights.addChild(light),e.animRender=[light],light=PIXI.Sprite.fromImage(game.folder+"png/walllight-red.png"),light.width=256,light.height=384,light.x=e.x+64-16,light.y=e.y+32,light.alpha=.5,light.anchor.set(0,.5),e.direction){case 0:game.rotate(light,90);break;case 3:game.rotate(light,180);break;case 2:game.rotate(light,-90)}e.animRender.push(light),light.blendMode=PIXI.BLEND_MODES.ADD,game.render.objectLayer.addChild(light)}};function Game(e){this.stage=document.getElementById("gamestage"),this.lock=function(e){game.settings.locked[e]=!0},game.unlock=function(e){game.settings.locked[e]=!1,game.ui.updateAll()},this.isLocked=function(e){return null==game.settings.locked[e]||game.settings.locked[e]},this.ee=new EventEmitter,this.runVersion=e,this.tileSize=_SETTINGS.tileSize,this.lifeTileSize=_SETTINGS.lifeTileSize,this.mapDimension=60,this.buildDistance=3*this.tileSize,this.defaultScene="start",this._RENDER_WIDTH=RENDER_WIDTH,this._RENDER_HEIGHT=RENDER_HEIGHT,void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")?this.clientMode="tablet":this.clientMode="desk",game.reload=function(){location.reload()};try{void 0!==nw&&void 0!==nw.Window&&(this.clientMode="nw")}catch(e){}this.randomItem=function(e){var a=Object.keys(e);return e[a[a.length*Math.random()<<0]]},this.clientMode="tablet",this.blockMatrix=[],this.oppositeBlockMatrix=[],this.drawMatrix=[],this.shadowMatrix=[],this.folder=_SETTINGS.gameFolder,this.gameName=_SETTINGS.gameName,this.randomLoadQuotes=["Counting quarters","Playing Mario","Plugging in machines","Warming up CPU","Warming up GPU","Adding coal to kernel","Inspecting inspector"],this.events={},this.timestamp=function(){return Math.round((new Date).getTime()/1e3)},this.event=function(e,a){void 0!==this.events[e]?this.events[e](a):game.debug("Cant find event: "+e)},this.arrayMove=function(e,a,t){var i=e[a];e.splice(a,1),e.splice(t,0,i)},this.fps=60,this.lastTime=(new Date).getTime(),this.interval=1e3/this.fps,this.delta=0,this.langLoaded=!1,this.activeTool="select",this.calcFPS=0,this.quickRender=!1,this.furniture=[],this.speed=1,this.play=!0,this.tempObjects=[],this.flashingLights=[],this.rotatingLights=[],this.lastID=100,this.onBuildFunctions={},this.onDismantleFunctions={},this.flashLights=function(){for(var e=0;e<game.flashingLights.length;e++)5==game.rand(0,50)&&(game.flashingLights[e].alpha=Math.random());this.rotateLights()},this.rotateLights=function(){for(var e=0;e<game.rotatingLights.length;e++)5==game.rand(0,50)&&(game.rotatingLights[e].rotation=game.rand(0,360))},this.propCount=function(e){return void 0!==e?Object.keys(e).length:0},this.isLangLoaded=!1,this.lang="dev",this.pickLang=function(e){var a;"dev"==this.lang?(a=document.createElement("script"),this.lang=e,a.type="text/javascript",a.src=ab_defaultLanguage):(a=document.createElement("script"),this.lang=e,a.type="text/javascript",a.src=game.folder+"js/languages/"+e+".js"),document.body.appendChild(a)},this.langConvert=function(e){return void 0===_LANG[e]?(game.debug(e+" has no translation"),e):_LANG[e]},this.urlVar=function(e){for(var a=window.location.search.substring(1).split("&"),t=0;t<a.length;t++){var i=a[t].split("=");if(i[0]==e)return i[1]}return!1},this.unlock=function(e){game.settings.locked[e]=!1,game.ui.updateAll()},this.rotate=function(e,a){e.rotation=a*(Math.PI/180)},this.tickers=[],this.playTickers=[],this.drawBlockers=function(){game.ai.pathFinders[1].postMessage(["getgrid"]),setTimeout(function(){for(var e=0;e<game.blockMatrix.length-1;e++)for(var a=0;a<game.blockMatrix[e].length;a++)if(!0!==game.blockMatrix[e][a].walkable){var t=new PIXI.Graphics;t.beginFill(65535,.8),t.lineStyle(1,0),t.drawRect(0,0,game.tileSize,game.tileSize),t.visible=!0,x=game.blockMatrix[e][a].x,y=game.blockMatrix[e][a].y,t.x=game.atGridPos(x),t.y=game.atGridPos(y),game.render.lifeLayer.addChild(t)}},1e3)},this.atGridPos=function(e){return Math.floor(e*game.tileSize)},this.gridPos=function(e){return Math.floor(e/game.tileSize)},this.rng=function(e,a){return Math.floor(e+Math.random()*(a+1-e))},this.rand=function(e,a){return a-=e,Math.floor(Math.random()*a)+e},this.r=function(e,a){return Math.floor(Math.random()*(a-e+1)+e)},this.randID=function(e){return void 0===e&&(e="object"),this.lastID++,e+"-"+this.lastID},this.clone=function(e){if(null===e||"object"!=typeof e)return e;var a=e.constructor();for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);return a},this.debug=function(e){this.llog("default",e)},window.onfocus=function(){game.debug("play")},window.onblur=function(){game.debug("pause")},this.pause=function(){game.play=!1},this.unpause=function(){game.play=!0},this.jobCounter=0,this.tickDraw=!1,this.tickDelta=0,this.tickThen=Date.now(),this.tickInterval=1e3/60,this.tickCounter=0,this.ticks=0,this.showLogs=["worker","pathfinder","jobs","timers","ai"],this.llog=function(e,a){this.showLogs.indexOf(e)},this.renderWorld=function(){var a;if(game.ui.clicked=!1,now=Date.now(),delta=now-game.tickThen,game.tickCounter=game.tickCounter+delta,1e4<game.tickCounter?(game.ticks=0,game.tickCounter=0):game.ticks++,delta>game.tickInterval&&(game.tickThen=now-delta%game.tickInterval,game.stats.start("render"),game.render.render(delta),game.stats.end("render")),game.stats.start("tools"),game.tools.tick(),game.stats.end("tools"),!0===game.play){game.stats.start("camera"),game.camera.tick(),game.stats.end("camera"),game.stats.start("uirender"),game.ui.render(game.delta),game.stats.end("uirender"),currentTime=(new Date).getTime(),game.delta=currentTime-game.lastTime,game.delta=game.delta,game.stats.start("lifeticker");try{game.ai.lifeTicker(game.delta)}catch(e){}for(game.stats.end("lifeticker"),game.stats.start("worldrender"),game.world.render(game.delta),game.stats.end("worldrender"),game.stats.start("createjobs"),game.jobs.createJobs(),game.stats.end("createjobs"),game.jobCounter=0,game.jobCounter++,!1!==game.quickRender&&game.quickRender(),game.stats.start("gridrender"),game.grid.render(),game.stats.end("gridrender"),game.stats.tick(game.delta),game.lastTime=currentTime,a=0;a<game.playTickers.length;a++)try{game.stats.start("functickers"+a),game.playTickers[a](),game.stats.end("functickers"+a)}catch(e){game.stats.end("functickers"+a)}}else currentTime=(new Date).getTime(),game.lastTime=currentTime;for(game.flashLights(),a=0;a<game.tickers.length;a++)try{game.stats.start("functickers"+a),game.tickers[a](),game.stats.end("functickers"+a)}catch(e){game.stats.end("functickers"+a)}},this.load=function(){this.debug("Loading"),this.render=new Render(this),this.render.init()},this.renderReady=function(){game.debug("Start game in language: "+_LANG.LANGUAGE),this.grid=new Grid(this),this.ai=new AI(this),this.ai.init(),this.ui=new UI(this),this.ui.init(),this.tools=new Tools(this),this.tools.init(),this.stats=new Stats(this),this.stats.init(),this.world=new World(this),this.world.init(),roomx=10*game.tileSize,roomy=10*game.tileSize,game.world.rooms=JSON.parse('[{"x":'+roomx+',"y":'+roomy+',"framex":0,"framey":0,"built":false,"id":"undefined-9961-1815-8229-7731","data":{"type":"Storage","startX":500000,"startY":500000,"endY":0,"endX":0,"rects":[{"x":'+roomx+',"y":'+roomy+',"width":384,"height":448}],"occupied":false,"occupiedBy":{}}}]'),this.camera=new Camera(this),this.camera.init(),this.jobs=new Jobs(this),this.jobs.init(),this.grid.drawWalls(),this.saves=new Saves(this),this.audio=new GameAudio,this.audio.init(),this.audio.loadAudio(this.selectLanguage),setTimeout(function(){doRedraw(),game.render.rezoom()},1e3)},this.selectLanguageContents=[],this.closeselectLanguage=function(){for(var e=0;e<game.selectLanguageContents.length;e++)game.selectLanguageContents[e].destroy(),game.selectLanguageContents[e]=void 0;game.selectLanguageContents=[]},this.selectLanguage=function(){var e;game.render.loadingBlack.visible=!1,game.createCursor(),game.render.loadingComplete(),game.startUI(),sx=0,sy=0,windowW=RENDER_WIDTH,windowH=RENDER_HEIGHT,windowX=RENDER_WIDTH/2-windowW/2,windowY=RENDER_HEIGHT/2-windowH/2+100,windowYTop=30,x=windowX,e=windowY,0===game.selectLanguageContents.length?(game.selectLanguageContents.push(game.render.window(0,0,RENDER_WIDTH,RENDER_HEIGHT,266515,1)),game.selectLanguageContents.push(game.render.window(25,25,RENDER_WIDTH-50,RENDER_HEIGHT-50,266515,1,266515)),this.r=new WorldObject(x,e,game.render.newTexture(game.render.tilesets.gui,sx,sy,1,1)),this.r.width=1,this.r.height=1,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.selectLanguageContents.push(this.r),game.langLoaded=function(){game.closeselectLanguage(),game.isLangLoaded=!0,game.runBootstrap()},langBtn=function(){game.clicked=!0,game.pickLang(this.lang),game.render.loadQuick("Loading scripts")},offset=0,windowText=game.render.text("English","menu-title"),windowText.x=windowX+windowW/2-windowText.width/2,windowText.y=windowY+140,game.selectLanguageContents.push(windowText),game.render.baseStage.addChild(windowText),windowText.interactive=!0,game.attachCursorEvents(windowText),windowText.lang="en",windowText.on("pointerup",langBtn)):this.r.visible=!0,game.pickLang(this.lang),game.render.loadQuick("Loading scripts")},this.runBootstrap=function(){$("[data-lang='true']").each(function(e,a){$(this).html(_LANG[$(this).data("lang-id")])}),game.debug("Loaded"),game.debug("Bootstrapping: "+bootStrap.length+" scripts"),game.render.loadingText("Loading scripts"),game.bitMax=bootStrap.length,game.bitsReady=function(){game.audio.sounds.mainbg.playOnce(),game.audio.sounds.tweets.playOnce(),game.debug("Bits ready"),bootStrap=[],game.start(),game.render.loadingComplete(),game.ui.mainMenu()},game.loadBits()},this.elecUnits=0,this.cash=100,this.hasPower=!1,this.isOpen=!1,this.cursor={},this.createCursor=function(){sx=22*game.tileSize,sy=6*game.tileSize,game.cursor=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),game.cursor.width=1,game.cursor.height=1,game.cursor.defaultTexture=game.cursor.texture,texture=game.render.cache[game.render.tilesets.gui].clone(),rectangle=new PIXI.Rectangle(sx+64,sy,64,64),texture.frame=rectangle,game.cursor.textureOver=texture,game.render.cursor.addChild(game.cursor),game.cursor.alpha=0},this.setCursor=function(e){var a;document.getElementById&&(a=document.getElementById("viewport"))&&a.style&&(a.style.cursor=e)},this.cursorOver=function(){this.cursorOver=!0,game.setCursor("pointer"),game.cursor.texture=game.cursor.textureOver},this.cursorOut=function(){this.cursorOver=!1,game.setCursor("default"),game.cursor.texture=game.cursor.defaultTexture},this.hideCursor=!1,this.cursorHide=function(){game.hideCursor=!0},this.cursorUnHide=function(){game.hideCursor=!1,game.cursorShow()},this.cursorShow=function(){game.cursor.alpha=1},this.attachCursorEvents=function(e){void 0!==e.isInteractive&&e.isInteractive(!0),e.on("pointerover",game.cursorOver),e.on("pointerout",game.cursorOut),e.on("pointerup",game.cursorOut),e.on("pointerdown",game.cursorOut)},document.onmousemove=function(e){event=e||window.event,game.cursor.x=event.clientX,game.cursor.y=event.clientY,!0===game.hideCursor&&"select"!==game.tools.activeTool.name&&(game.cursor.x<100||game.cursor.x>game.ui._VIEWPORT_RIGHT-50||game.cursor.y>game.ui._VIEWPORT_BOTTOM-220||game.cursor.y<100?game.cursorShow():game.cursor.alpha=1)},this.emptyGame=function(){game.mapDimension=80,game.isOpen=!1,game.grid.needRedraw=!0,game.grid.reGrid(),game.grid.drawWalls();for(var e=[],a=0;a<game.drawMatrix.length;a++){xMatrix=[];for(var t=0;t<game.drawMatrix[a].length;t++)3<=game.drawMatrix[t][a][0]?xMatrix.push(1):xMatrix.push(0);e.push(xMatrix)}for(i=0;i<game.ai.maxWorkers;i++)game.ai.pathFinders[i].postMessage(["creategrid",e]);game.cash=5e5},this.addChumba=function(){openSignObj={x:384,y:704,height:128,width:128,framex:1472,framey:64,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-191",data:{buildFunction:"openSign"},name:"openSign",alpha:1},game.world.furniFromObject(openSignObj),sx=21*game.tileSize,sy=21*game.tileSize,bluecar={x:4*game.tileSize,y:10*game.tileSize+game.tileSize,height:4*game.tileSize,width:2*game.tileSize,framex:sx,framey:sy,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-1",data:{buildFunction:"car"},name:"car",alpha:1},game.world.furniFromObject(bluecar),sx=21*game.tileSize,sy=25*game.tileSize,redcar={x:4*game.tileSize,y:15*game.tileSize+game.tileSize,height:4*game.tileSize,width:2*game.tileSize,framex:sx,framey:sy,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-1",data:{buildFunction:"car"},name:"car",alpha:1},game.world.furniFromObject(redcar);var e=1*game.tileSize,a=1*game.tileSize;for(offsetY=0,i=0;i<game.mapDimension/5;i++)sx=23*game.tileSize,sy=26*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.furni,sx,sy,2*game.tileSize,4*game.tileSize)),staticImage.x=e,staticImage.y=a+offsetY,staticImage.name="lightpost",staticImage.built=!0,staticImage.width=2*game.tileSize,staticImage.height=4*game.tileSize,game.render.objectLayer.addChild(staticImage),game.world.addObject(staticImage),offsetY+=5*game.tileSize;for(e=4*game.tileSize,a=1*game.tileSize,offsetY=0,i=0;i<(game.mapDimension-6)/5;i++)sx=25*game.tileSize,sy=26*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.furni,sx,sy,2*game.tileSize,4*game.tileSize)),staticImage.x=e,staticImage.y=a+offsetY+game.tileSize+game.tileSize,staticImage.name="lightpost",staticImage.built=!0,staticImage.width=2*game.tileSize,staticImage.height=4*game.tileSize,game.render.objectLayer.addChild(staticImage),game.world.addObject(staticImage),offsetY+=5*game.tileSize},this.sandboxGame=function(){game.mapDimension=50,game.isOpen=!1,game.grid.needRedraw=!0,game.grid.reGrid(),game.grid.drawWalls();for(var e,a=[],t=0;t<game.drawMatrix.length;t++){for(xMatrix=[],e=0;e<game.drawMatrix[t].length;e++)3<=game.drawMatrix[e][t][0]?xMatrix.push(1):xMatrix.push(0);a.push(xMatrix)}for(i=0;i<game.ai.maxWorkers;i++)game.ai.pathFinders[i].postMessage(["creategrid",a]);for(game.cash=5e5,i=0;i<game.mapDimension;i++)game.grid.floorTile(0,i,1,1);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(1,i,1,10);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(2,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(3,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(4,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(5,i,1,10);for(roomSize=17,game.grid.drawn=!1,game.grid.needRedraw=!0,game.cash=5e6,game.grid.drawWalls(),game.grid.reGrid(),i=0;i<game.mapDimension;i++)game.grid.floorTile(0,i,1,1);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(1,i,1,10);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(2,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(3,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(4,i,1,13);for(i=0;i<game.mapDimension;i++)game.grid.floorTile(5,i,1,10);for(openSignObj={x:384,y:704,height:128,width:128,framex:1472,framey:64,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-191",data:{buildFunction:"openSign"},name:"openSign",alpha:1},game.world.furniFromObject(openSignObj),sx=21*game.tileSize,sy=21*game.tileSize,bluecar={x:4*game.tileSize,y:10*game.tileSize+game.tileSize,height:4*game.tileSize,width:2*game.tileSize,framex:sx,framey:sy,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-1",data:{buildFunction:"car"},name:"car",alpha:1},game.world.furniFromObject(bluecar),sx=21*game.tileSize,sy=25*game.tileSize,redcar={x:4*game.tileSize,y:15*game.tileSize+game.tileSize,height:4*game.tileSize,width:2*game.tileSize,framex:sx,framey:sy,tileSetName:game.folder+"png/furni.png",built:!0,id:"object-1",data:{buildFunction:"car"},name:"car",alpha:1},game.world.furniFromObject(redcar),e=1*game.tileSize,t=1*game.tileSize,offsetY=0,i=0;i<game.mapDimension/5;i++)sx=23*game.tileSize,sy=26*game.tileSize,staticImage=new WorldObject(e,t,game.render.newTexture(game.render.tilesets.furni,sx,sy,2*game.tileSize,4*game.tileSize)),staticImage.x=e,staticImage.y=t+offsetY,staticImage.name="Lightpost",staticImage.width=2*game.tileSize,staticImage.height=4*game.tileSize,game.render.objectLayer.addChild(staticImage),game.world.addObject(staticImage),offsetY+=5*game.tileSize;for(e=4*game.tileSize,t=1*game.tileSize,offsetY=0,i=0;i<(game.mapDimension-6)/5;i++)sx=25*game.tileSize,sy=26*game.tileSize,staticImage=new WorldObject(e,t,game.render.newTexture(game.render.tilesets.furni,sx,sy,2*game.tileSize,4*game.tileSize)),staticImage.x=e,staticImage.y=t+offsetY+game.tileSize+game.tileSize,staticImage.width=2*game.tileSize,staticImage.height=4*game.tileSize,game.render.objectLayer.addChild(staticImage),game.world.addObject(staticImage),offsetY+=5*game.tileSize},this.newGame=function(){game.saves.slowLoad(function(){game.saves.unload(function(){game.saves.load('{"drawMatrix":[[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,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,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13],[1,13]],[[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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,10],[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],[1,1],[1,1],[1,1],[1,1],[1,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],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[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,5],[1,11],[4,6],[3,4],[1,1],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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],[1,1],[1,1],[1,1],[1,1],[1,1],[4,2],[1,11],[1,11],[4,2],[1,1],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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],[3,2],[3,3],[3,3],[3,3],[3,3],[3,3],[5,6],[1,11],[1,11],[4,2],[1,1],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[3,5],[1,11],[1,11],[4,2],[1,1],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,1],[1,11],[1,11],[4,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,5],[1,11],[1,11],[4,2],[1,1],[3,2],[3,3],[3,3],[3,3],[3,3],[3,3],[3,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[5,2],[3,3],[5,4],[1,9],[1,9],[1,9],[1,9],[1,9],[4,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[1,11],[1,11],[1,11],[1,9],[1,9],[1,9],[1,9],[1,9],[4,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],[5,5],[3,3],[3,3],[3,3],[3,3],[3,3],[5,4],[1,11],[1,11],[3,2],[3,3],[3,4],[1,9],[1,9],[1,9],[1,9],[1,9],[4,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,1],[1,11],[1,11],[4,2],[1,10],[4,2],[1,9],[1,9],[1,9],[1,9],[1,9],[4,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,5],[1,11],[1,11],[4,2],[1,10],[5,2],[3,3],[3,3],[3,3],[3,3],[3,3],[5,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[3,2],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,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],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[4,2],[1,11],[1,11],[4,2],[1,1],[1,1],[1,11],[1,11],[1,11],[1,11],[1,11],[1,10],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[3,2],[6,6],[3,3],[3,3],[3,3],[3,3],[3,3],[5,6],[1,11],[1,11],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,11],[1,10],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[4,2],[1,11],[1,11],[5,2],[3,3],[3,3],[3,3],[3,3],[3,3],[3,6],[1,11],[4,6],[5,6],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[3,5],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,1],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[3,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,5],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,10],[1,10],[1,10],[1,10],[1,10],[1,10],[1,1],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[5,2],[6,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,4],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[5,2],[3,3],[3,6],[1,8],[4,6],[3,6],[1,8],[4,6],[3,3],[3,3],[3,6],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,1],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,5],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[1,12],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[5,5],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[5,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,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],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[4,2],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[1,8],[4,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],[5,2],[3,3],[3,3],[3,3],[3,3],[3,3],[6,6],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[5,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,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]],[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]],"life":[{"x":300,"y":300,"data":{"speed":97,"across":1,"down":0,"patient":{"name":"Nickname: Mizzy","rawName":"Mizzy","bio":"Enjoys reading books","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":14},"body":{"hat":3,"head":1,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":909,"need":"pinball"}},{"x":300,"y":300,"data":{"speed":99,"across":1,"down":0,"patient":{"name":"Nickname: Gremblo","rawName":"Gremblo","bio":"Loves to play FPS games","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":10},"body":{"hat":3,"head":1,"across":1,"down":0},"female":0,"jobs":["manager","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":721,"need":"pinball"}},{"x":300,"y":300,"data":{"speed":93,"across":1,"down":0,"patient":{"name":"Nickname: Pash","rawName":"Pash","bio":"Loves to play FPS games","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":3},"body":{"hat":3,"head":4,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":669,"need":"food"}},{"x":300,"y":300,"data":{"speed":81,"across":1,"down":0,"patient":{"name":"Nickname: Tashybashi","rawName":"Tashybashi","bio":"The boring one","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":10},"body":{"hat":3,"head":4,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":230,"need":"food"}},{"x":300,"y":300,"data":{"speed":83,"across":1,"down":0,"patient":{"name":"Nickname: Morgan","rawName":"Morgan","bio":"Enjoys reading books","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":5},"body":{"hat":3,"head":1,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":37,"need":"pinball"}},{"x":1657.5174067401495,"y":1214.7870100806347,"job":"builder","data":{"speed":77,"across":1,"down":0,"patient":{"name":"Nickname: Keybro","rawName":"Keybro","bio":"Loves to play FPS games","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":13},"body":{"hat":3,"head":1,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor","builder","builder","builder","builder","builder"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":55,"need":"seat","job":"builder"}},{"x":603.7030646061129,"y":704,"job":"builder","data":{"speed":72,"across":1,"down":0,"patient":{"name":"Nickname: Jammy","rawName":"Jammy","bio":"A very smart cookie","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":4},"body":{"hat":3,"head":2,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor","builder","builder","builder","builder","builder"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":340,"need":"toilet","job":"builder"}},{"x":1493.3148889467307,"y":1215.0724436034707,"job":"builder","data":{"speed":89,"across":1,"down":0,"patient":{"name":"Nickname: Gremblo","rawName":"Gremblo","bio":"The life of the party!","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":6},"body":{"hat":3,"head":2,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor","builder","builder","builder","builder","builder"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":738,"need":"seat","job":"builder"}},{"x":1663.5186043602907,"y":768,"job":"builder","data":{"speed":66,"across":1,"down":0,"patient":{"name":"Nickname: Morgan","rawName":"Morgan","bio":"The boring one","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":1},"body":{"hat":3,"head":4,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor","builder","builder","builder","builder","builder"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":308,"need":"food","job":"builder"}},{"x":300,"y":300,"data":{"speed":64,"across":1,"down":0,"patient":{"name":"Nickname: Luke","rawName":"Luke","bio":"Loves to play FPS games","love":100,"compliance":20,"creativity":100,"skill":"builder","skillLevel":6},"body":{"hat":3,"head":4,"across":1,"down":0},"female":0,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":0,"need":"change"}},{"x":1632.2599056839679,"y":1214.8898837688532,"job":"janitor","data":{"speed":61,"across":1,"down":0,"patient":{"name":"Nickname: Tashybashi","rawName":"Tashybashi","bio":"The life of the party!","love":100,"compliance":20,"creativity":100,"skill":"janitor","skillLevel":7},"body":{"hat":3,"head":4,"across":1,"down":0},"female":1,"jobs":["builder","miner","janitor","janitor","janitor","janitor","janitor","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":0,"need":"pinball","job":"janitor"}},{"x":1663.321163948494,"y":1664.0096971965713,"data":{"speed":73,"across":1,"down":2,"customerID":198,"customer":true,"happiness":100,"jobs":["customer"],"personality":"casual","experience":"noob","cash":49,"hunger":54,"toilet":29,"needCount":602,"need":"advancedresearch"}},{"x":1791.0756076098937,"y":2239.9957842591543,"data":{"speed":94,"across":1,"down":2,"customerID":264,"customer":true,"happiness":102,"jobs":["customer"],"personality":"hardcore","experience":"pro","cash":22,"hunger":89,"toilet":35,"needCount":105,"need":"bin"}},{"x":1472,"y":1728,"job":"janitor","data":{"speed":79,"across":1,"down":0,"patient":{"name":"Nickname: El Pompo","rawName":"El Pompo","bio":"Super cool dude","love":100,"compliance":20,"creativity":100,"skill":"janitor","skillLevel":1},"body":{"hat":3,"head":4,"across":1,"down":0},"female":1,"jobs":["builder","miner","janitor","janitor","janitor","janitor","janitor","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":974,"need":"arcade","job":"janitor"}},{"x":668.7720340823452,"y":1215.8002458660146,"job":"researcher","data":{"speed":80,"across":1,"down":1,"patient":{"name":"Nickname: Ladeda","rawName":"Ladeda","bio":"Enjoys reading books","love":100,"compliance":20,"creativity":100,"skill":"researcher","skillLevel":8},"body":{"hat":3,"head":3,"across":1,"down":1},"female":0,"jobs":["builder","miner","janitor","researcher","researcher","researcher","researcher","researcher"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":406,"need":"arcade","job":"researcher"}},{"x":1150.6685734732555,"y":1215.998424283731,"data":{"speed":61,"across":1,"down":4,"customerID":317,"customer":true,"happiness":102,"jobs":["customer"],"personality":"casual","experience":"novice","cash":183,"hunger":89,"toilet":7,"needCount":908,"need":"bin"}},{"x":577.3521285143593,"y":1216.0013086977806,"data":{"speed":81,"across":1,"down":2,"customerID":330,"customer":true,"happiness":102,"jobs":["customer"],"personality":"hardcore","experience":"amateur","cash":336,"hunger":55,"toilet":13,"needCount":110,"need":"bin"}},{"x":895.0048168303728,"y":704.0018986246681,"data":{"speed":83,"across":1,"down":4,"customerID":352,"customer":true,"happiness":100,"jobs":["customer"],"personality":"ruffian","experience":"novice","cash":57,"hunger":58,"toilet":54,"needCount":594,"need":"advancedresearch"}},{"x":1982.9005171605108,"y":1664.0026631618096,"data":{"speed":99,"across":1,"down":2,"customerID":356,"customer":true,"happiness":100,"jobs":["customer"],"personality":"immature","experience":"pro","cash":31,"hunger":56,"toilet":38,"needCount":798,"need":"chalkboard"}},{"x":300,"y":300,"data":{"speed":71,"across":1,"down":0,"patient":{"name":"Nickname: Dale","rawName":"Dale","bio":"The boring one","love":100,"compliance":20,"creativity":100,"skill":"janitor","skillLevel":12},"body":{"hat":3,"head":2,"across":1,"down":0},"female":1,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":646,"need":"food"}},{"x":300,"y":300,"data":{"speed":60,"across":1,"down":0,"patient":{"name":"Nickname: Steph","rawName":"Steph","bio":"Loves to play FPS games","love":100,"compliance":20,"creativity":100,"skill":"janitor","skillLevel":3},"body":{"hat":3,"head":3,"across":1,"down":0},"female":1,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":778,"need":"pinball"}},{"x":300,"y":300,"data":{"speed":82,"across":1,"down":0,"patient":{"name":"Nickname: Warwick","rawName":"Warwick","bio":"Enjoys reading books","love":100,"compliance":20,"creativity":100,"skill":"janitor","skillLevel":10},"body":{"hat":3,"head":3,"across":1,"down":0},"female":1,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":10,"need":"arcade"}},{"x":1663.2247911852112,"y":1983.994574588619,"data":{"speed":94,"across":1,"down":3,"customerID":367,"customer":true,"happiness":100,"jobs":["customer"],"personality":"ruffian","experience":"novice","cash":180,"hunger":43,"toilet":21,"needCount":752,"need":"advancedresearch"}},{"x":1663.1976999426072,"y":2239.1853963410013,"data":{"speed":97,"across":1,"down":4,"customerID":370,"customer":true,"happiness":100,"jobs":["customer"],"personality":"hardcore","experience":"amateur","cash":0,"hunger":58,"toilet":44,"needCount":853,"need":"atm"}},{"x":704.0054003355738,"y":896.9184044616424,"data":{"speed":68,"across":1,"down":3,"customerID":371,"customer":true,"happiness":100,"jobs":["customer"],"personality":"ruffian","experience":"novice","cash":109,"hunger":25,"toilet":52,"needCount":109,"need":"chalkboard"}},{"x":300,"y":300,"data":{"speed":70,"across":1,"down":1,"patient":{"name":"Nickname: Balzack","rawName":"Balzack","bio":"Super cool dude","love":100,"compliance":20,"creativity":100,"skill":"manager","skillLevel":2},"body":{"hat":3,"head":4,"across":1,"down":1},"female":1,"jobs":["builder","miner","janitor"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":822,"need":"arcade"}},{"x":1663.9943735502466,"y":1214.781308380894,"job":"manager","data":{"speed":81,"across":1,"down":1,"patient":{"name":"Nickname: Jake","rawName":"Jake","bio":"Enjoys reading books","love":100,"compliance":20,"creativity":100,"skill":"manager","skillLevel":5},"body":{"hat":3,"head":3,"across":1,"down":1},"female":1,"jobs":["manager","miner","janitor","manager","manager"],"happiness":65,"hunger":0,"toilet":0,"cash":2500,"needCount":543,"need":"toilet","job":"manager"}},{"x":705.2513448081542,"y":1216.0008750922404,"data":{"speed":89,"across":1,"down":4,"customerID":407,"customer":true,"happiness":100,"jobs":["customer","customer"],"personality":"immature","experience":"pro","cash":0,"hunger":57,"toilet":67,"needCount":533,"need":"atm"}},{"x":958.9522204505255,"y":897.0520063705089,"data":{"speed":62,"across":1,"down":2,"customerID":408,"customer":true,"happiness":100,"jobs":["customer","customer"],"personality":"ruffian","experience":"amateur","cash":159,"hunger":53,"toilet":5,"needCount":811,"need":"advancedresearch"}},{"x":1982.8269728626915,"y":1664.0028479486568,"job":"customer","data":{"speed":95,"across":1,"down":4,"customerID":7,"customer":true,"happiness":100,"jobs":["customer","customer"],"personality":"casual","experience":"pro","cash":0,"hunger":82,"toilet":30,"needCount":710,"need":"atm"}},{"x":1804.8669741159897,"y":1343.3823188736535,"job":"customer","data":{"speed":90,"across":1,"down":2,"customerID":19,"customer":true,"happiness":96,"jobs":["customer","customer"],"personality":"ruffian","experience":"noob","cash":7,"hunger":84,"toilet":4,"needCount":57,"need":"seat"}},{"x":1856.8963467520184,"y":1471.9944654889202,"job":"customer","data":{"speed":69,"across":1,"down":3,"customerID":36,"customer":true,"happiness":63,"jobs":["customer","customer"],"personality":"immature","experience":"novice","cash":2,"hunger":51,"toilet":46,"needCount":219,"need":"atm"}},{"x":1918.8385617119939,"y":1983.9973567144502,"job":"customer","data":{"speed":73,"across":1,"down":4,"customerID":44,"customer":true,"happiness":53,"jobs":["customer","customer"],"personality":"immature","experience":"novice","cash":0,"hunger":5,"toilet":6,"needCount":80,"need":"atm"}},{"x":1792,"y":1535.2526586918186,"job":"customer","data":{"speed":66,"across":1,"down":3,"customerID":49,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"ruffian","experience":"noob","cash":0,"hunger":6,"toilet":9,"needCount":810,"need":"atm"}},{"x":2239.144263630573,"y":832.8623164705916,"job":"customer","data":{"speed":93,"across":1,"down":2,"customerID":57,"customer":true,"happiness":50,"jobs":["customer","customer"],"personality":"ruffian","experience":"amateur","cash":0,"hunger":5,"toilet":1,"needCount":277,"need":"atm"}},{"x":1150.7409176150302,"y":1279.9977351257437,"job":"customer","data":{"speed":71,"across":1,"down":4,"customerID":62,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"immature","experience":"noob","cash":47,"hunger":2,"toilet":4,"needCount":840,"need":"bin"}},{"x":1984,"y":2240,"job":"customer","data":{"speed":71,"across":1,"down":4,"customerID":64,"customer":true,"happiness":53,"jobs":["customer","customer"],"personality":"hardcore","experience":"amateur","cash":67,"hunger":9,"toilet":11,"needCount":385,"need":"bin"}},{"x":1534.656004789253,"y":1215.9989837089463,"job":"customer","data":{"speed":87,"across":1,"down":2,"customerID":65,"customer":true,"happiness":50,"jobs":["customer","customer"],"personality":"hardcore","experience":"amateur","cash":69,"hunger":0,"toilet":0,"needCount":13,"need":"change"}},{"x":1918.8193663801526,"y":1536.0033688074313,"job":"customer","data":{"speed":67,"across":1,"down":3,"customerID":83,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"immature","experience":"pro","cash":0,"hunger":8,"toilet":1,"needCount":134,"need":"atm"}},{"x":1918.9733099041596,"y":1536.0024357119614,"job":"customer","data":{"speed":63,"across":1,"down":4,"customerID":95,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"immature","experience":"pro","cash":0,"hunger":4,"toilet":7,"needCount":358,"need":"atm"}},{"x":1920,"y":1088,"job":"customer","data":{"speed":98,"across":1,"down":4,"customerID":97,"customer":true,"happiness":48,"jobs":["customer","customer"],"personality":"casual","experience":"amateur","cash":5,"hunger":19,"toilet":27,"needCount":454,"need":"seat"}},{"x":1792.336171466888,"y":1023.998459015245,"job":"customer","data":{"speed":97,"across":1,"down":3,"customerID":98,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"hardcore","experience":"noob","cash":0,"hunger":9,"toilet":5,"needCount":474,"need":"seat"}},{"x":1539.7737106951274,"y":1597.09405495394,"job":"customer","data":{"speed":72,"across":1,"down":2,"customerID":99,"customer":true,"happiness":55,"jobs":["customer","customer"],"personality":"casual","experience":"amateur","cash":0,"hunger":7,"toilet":23,"needCount":369,"need":"arcade"}},{"x":2368,"y":832,"job":"customer","data":{"speed":68,"across":1,"down":3,"customerID":100,"customer":true,"happiness":51,"jobs":["customer","customer"],"personality":"casual","experience":"noob","cash":21,"hunger":0,"toilet":3,"needCount":392,"need":"food"}},{"x":1728,"y":1280,"job":"customer","data":{"speed":86,"across":1,"down":3,"customerID":101,"customer":true,"happiness":52,"jobs":["customer","customer"],"personality":"ruffian","experience":"amateur","cash":54,"hunger":7,"toilet":5,"needCount":35,"need":"pinball"}},{"x":1663.3114853903792,"y":1728.915659029099,"job":"customer","data":{"speed":82,"across":1,"down":3,"customerID":102,"customer":true,"happiness":50,"jobs":["customer","customer"],"personality":"hardcore","experience":"novice","cash":45,"hunger":0,"toilet":0,"needCount":62,"need":"arcade"}},{"x":1278.69317461841,"y":1215.9984474776575,"job":"customer","data":{"speed":90,"across":1,"down":2,"customerID":103,"customer":true,"happiness":50,"jobs":["customer","customer"],"personality":"casual","experience":"pro","cash":39,"hunger":0,"toilet":0,"needCount":717,"need":"food"}},{"x":448.8831391290668,"y":1097.672494715758,"job":"customer","data":{"speed":63,"across":1,"down":4,"customerID":104,"customer":true,"happiness":50,"jobs":["customer","customer"],"personality":"ruffian","experience":"noob","cash":123,"hunger":0,"toilet":0,"needCount":232,"need":"food"}}],"objects":[{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41231","itemid":"0","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41239","itemid":"4","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41241","itemid":"5","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41243","itemid":"6","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41247","itemid":"8","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41249","itemid":"9","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41251","itemid":"10","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41253","itemid":"11","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41255","itemid":"12","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41257","itemid":"13","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41259","itemid":"14","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41261","itemid":"15","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41263","itemid":"16","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41265","itemid":"17","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41267","itemid":"18","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41269","itemid":"19","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41271","itemid":"20","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41273","itemid":"21","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41275","itemid":"22","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41277","itemid":"23","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41279","itemid":"24","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41281","itemid":"25","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41283","itemid":"26","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41285","itemid":"27","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41287","itemid":"28","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41289","itemid":"29","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41291","itemid":"30","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41293","itemid":"31","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":64,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41295","itemid":"32","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41235","itemid":"2","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41233","itemid":"1","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41297","itemid":"33","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41245","itemid":"7","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41299","itemid":"34","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41301","itemid":"35","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41305","itemid":"37","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41303","itemid":"36","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41311","itemid":"40","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41307","itemid":"38","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41313","itemid":"41","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41309","itemid":"39","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41317","itemid":"43","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41321","itemid":"45","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41315","itemid":"42","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41323","itemid":"46","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41319","itemid":"44","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41325","itemid":"47","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41327","itemid":"48","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41337","itemid":"53","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41339","itemid":"54","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41341","itemid":"55","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41343","itemid":"56","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41345","itemid":"57","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41329","itemid":"49","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41347","itemid":"58","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41349","itemid":"59","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41353","itemid":"61","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41331","itemid":"50","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41355","itemid":"62","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41333","itemid":"51","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41335","itemid":"52","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41359","itemid":"64","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41351","itemid":"60","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41361","itemid":"65","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41367","itemid":"68","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41369","itemid":"69","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41357","itemid":"63","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41363","itemid":"66","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41371","itemid":"70","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41375","itemid":"72","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41365","itemid":"67","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41373","itemid":"71","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41377","itemid":"73","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41379","itemid":"74","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41383","itemid":"76","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41385","itemid":"77","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41381","itemid":"75","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41389","itemid":"79","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41395","itemid":"82","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41399","itemid":"84","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41387","itemid":"78","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41391","itemid":"80","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41393","itemid":"81","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41405","itemid":"87","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41397","itemid":"83","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":384,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41401","itemid":"85","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":192,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41411","itemid":"90","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41237","itemid":"3","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41403","itemid":"86","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41415","itemid":"92","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41407","itemid":"88","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41419","itemid":"94","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41429","itemid":"99","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41409","itemid":"89","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41413","itemid":"91","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41433","itemid":"101","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41417","itemid":"93","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41437","itemid":"103","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41421","itemid":"95","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41423","itemid":"96","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41425","itemid":"97","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41427","itemid":"98","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41431","itemid":"100","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41435","itemid":"102","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41439","itemid":"104","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41441","itemid":"105","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41443","itemid":"106","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41447","itemid":"108","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41453","itemid":"111","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41455","itemid":"112","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41457","itemid":"113","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41459","itemid":"114","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41461","itemid":"115","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41445","itemid":"107","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41465","itemid":"117","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41467","itemid":"118","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41449","itemid":"109","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41469","itemid":"119","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41473","itemid":"121","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41451","itemid":"110","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41463","itemid":"116","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41479","itemid":"124","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41483","itemid":"126","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41485","itemid":"127","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41471","itemid":"120","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41487","itemid":"128","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41475","itemid":"122","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41477","itemid":"123","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41493","itemid":"131","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41495","itemid":"132","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41497","itemid":"133","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41481","itemid":"125","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41505","itemid":"137","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41489","itemid":"129","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41491","itemid":"130","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41507","itemid":"138","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41499","itemid":"134","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41511","itemid":"140","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41501","itemid":"135","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41513","itemid":"141","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41515","itemid":"142","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41503","itemid":"136","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41509","itemid":"139","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":512,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41519","itemid":"144","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":704,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41517","itemid":"143","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41521","itemid":"145","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41523","itemid":"146","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41525","itemid":"147","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41527","itemid":"148","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41529","itemid":"149","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41531","itemid":"150","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41533","itemid":"151","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41535","itemid":"152","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41537","itemid":"153","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41539","itemid":"154","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41541","itemid":"155","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41543","itemid":"156","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41545","itemid":"157","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41547","itemid":"158","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41549","itemid":"159","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41551","itemid":"160","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41553","itemid":"161","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41555","itemid":"162","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41557","itemid":"163","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41559","itemid":"164","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41561","itemid":"165","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41655","itemid":"256","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41657","itemid":"257","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41659","itemid":"258","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41661","itemid":"259","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41663","itemid":"260","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41563","itemid":"166","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41565","itemid":"167","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41567","itemid":"168","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41569","itemid":"169","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41571","itemid":"170","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41673","itemid":"268","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41675","itemid":"269","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41573","itemid":"171","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41575","itemid":"172","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":704,"height":256,"width":128,"framex":1344,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41577","itemid":"173","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41647","itemid":"252","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41649","itemid":"253","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41687","itemid":"275","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41689","itemid":"276","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41691","itemid":"277","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41651","itemid":"254","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41695","itemid":"279","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41653","itemid":"255","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41699","itemid":"281","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41701","itemid":"282","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41665","itemid":"261","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41705","itemid":"284","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41671","itemid":"267","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41709","itemid":"286","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41677","itemid":"270","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41679","itemid":"271","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41715","itemid":"289","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41681","itemid":"272","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41683","itemid":"273","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41685","itemid":"274","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41723","itemid":"293","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41725","itemid":"294","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41727","itemid":"295","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41729","itemid":"296","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41731","itemid":"297","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41733","itemid":"298","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41735","itemid":"299","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41693","itemid":"278","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41697","itemid":"280","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41741","itemid":"302","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41743","itemid":"303","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41745","itemid":"304","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41703","itemid":"283","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41707","itemid":"285","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41751","itemid":"307","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41711","itemid":"287","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41713","itemid":"288","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41717","itemid":"290","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41719","itemid":"291","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41761","itemid":"312","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41721","itemid":"292","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1024,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41765","itemid":"314","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41737","itemid":"300","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41769","itemid":"316","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41739","itemid":"301","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41747","itemid":"305","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41749","itemid":"306","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41753","itemid":"308","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41779","itemid":"321","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41781","itemid":"322","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41755","itemid":"309","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41757","itemid":"310","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41759","itemid":"311","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":832,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41763","itemid":"313","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41791","itemid":"327","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41767","itemid":"315","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41771","itemid":"317","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41773","itemid":"318","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41775","itemid":"319","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41801","itemid":"332","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41777","itemid":"320","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41783","itemid":"323","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41785","itemid":"324","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41787","itemid":"325","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41789","itemid":"326","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41813","itemid":"338","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41793","itemid":"328","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41795","itemid":"329","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41797","itemid":"330","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41799","itemid":"331","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41823","itemid":"343","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41803","itemid":"333","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41805","itemid":"334","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41829","itemid":"346","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41807","itemid":"335","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41579","itemid":"174","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41583","itemid":"175","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41587","itemid":"177","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41591","itemid":"182","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41595","itemid":"187","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41599","itemid":"192","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41603","itemid":"197","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41607","itemid":"202","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41611","itemid":"207","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41615","itemid":"212","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41619","itemid":"217","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41623","itemid":"222","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41627","itemid":"227","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41631","itemid":"232","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41635","itemid":"237","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41853","itemid":"373","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41639","itemid":"242","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41643","itemid":"247","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41667","itemid":"262","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41833","itemid":"348","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41837","itemid":"353","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41841","itemid":"358","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41845","itemid":"363","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41849","itemid":"368","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41855","itemid":"374","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41859","itemid":"379","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41863","itemid":"384","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41867","itemid":"389","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41809","itemid":"336","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41811","itemid":"337","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41815","itemid":"339","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41877","itemid":"397","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},false,false,{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41817","itemid":"340","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":384,"y":704,"height":256,"width":128,"framex":1472,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41883","itemid":"403","data":{"buildFunction":"openSign","maxPay":null},"name":"openSign","alpha":1},false,false,{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41887","itemid":"408","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41819","itemid":"341","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41821","itemid":"342","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41893","itemid":"411","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41895","itemid":"412","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41825","itemid":"344","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41899","itemid":"414","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41901","itemid":"415","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41827","itemid":"345","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41905","itemid":"417","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41831","itemid":"347","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41871","itemid":"394","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41873","itemid":"395","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41913","itemid":"421","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41875","itemid":"396","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41917","itemid":"423","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1024,"height":256,"width":128,"framex":1344,"framey":1600,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41881","itemid":"402","data":{"buildFunction":"car","maxPay":null},"name":"car","alpha":1},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41889","itemid":"409","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41923","itemid":"426","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41891","itemid":"410","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41927","itemid":"428","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41897","itemid":"413","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41903","itemid":"416","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41933","itemid":"431","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41935","itemid":"432","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41907","itemid":"418","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41939","itemid":"434","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41909","itemid":"419","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41911","itemid":"420","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41945","itemid":"437","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41915","itemid":"422","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41919","itemid":"424","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41951","itemid":"440","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41921","itemid":"425","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41925","itemid":"427","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41929","itemid":"429","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41959","itemid":"444","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41931","itemid":"430","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41937","itemid":"433","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41941","itemid":"435","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41943","itemid":"436","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41969","itemid":"449","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41971","itemid":"450","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41947","itemid":"438","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41949","itemid":"439","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41977","itemid":"453","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41953","itemid":"441","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41955","itemid":"442","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":64,"y":1344,"height":256,"width":128,"framex":1472,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41983","itemid":"456","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41957","itemid":"443","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41961","itemid":"445","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41963","itemid":"446","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41965","itemid":"447","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41967","itemid":"448","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41973","itemid":"451","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41975","itemid":"452","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41979","itemid":"454","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1152,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41981","itemid":"455","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41985","itemid":"457","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41987","itemid":"458","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41989","itemid":"459","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41991","itemid":"460","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41993","itemid":"461","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41995","itemid":"462","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-41997","itemid":"467","data":{"maxPay":null},"name":null,"alpha":0.25},false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42008","itemid":"472","data":{"maxPay":null},"name":null,"alpha":0.25},false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42010","itemid":"473","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42020","itemid":"477","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42032","itemid":"482","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42042","itemid":"487","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42053","itemid":"492","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42065","itemid":"497","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42067","itemid":"498","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42069","itemid":"499","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42074","itemid":"501","data":{"maxPay":null},"name":null,"alpha":0.25},false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42078","itemid":"503","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42086","itemid":"506","data":{"maxPay":null},"name":null,"alpha":0.25},false,{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42094","itemid":"509","data":{"maxPay":null},"name":null,"alpha":0.25},false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,{"x":832,"y":768,"height":128,"width":64,"framex":256,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-41999","itemid":"469","data":{"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"filingcabinet","maxPay":null,"dismantle":false,"job":"done","standDefault":true},"name":"filingcabinet","direction":3,"alpha":1},{"x":704,"y":832,"height":128,"width":128,"framex":1344,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42002","itemid":"470","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":120,"defaultPay":120,"maxPay":150,"dismantle":false,"job":"done"},"name":"chalkboard","direction":3,"readName":"Pool table","alpha":1},{"x":896,"y":768,"height":128,"width":64,"framex":256,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42005","itemid":"471","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":25,"defaultPay":25,"maxPay":31.25,"dismantle":false,"job":"done","standDefault":true},"name":"advancedresearch","direction":3,"readName":"Monkey Kong","alpha":1},{"x":704,"y":1152,"height":128,"width":64,"framex":512,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42022","itemid":"478","data":{"canBeTaken":true,"buildFurni":false,"standArea4":true,"buildFunction":"atm","maxPay":null,"anim":"card"},"name":"atm","direction":3,"readName":"ATM","alpha":1},{"x":832,"y":1024,"height":64,"width":64,"framex":448,"framey":832,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42028","itemid":"480","data":{"buildFurni":false,"buildFunction":"plants2","maxPay":null},"name":"plants2","direction":3,"readName":"Toilet","alpha":1},{"x":768,"y":1152,"height":64,"width":64,"framex":128,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42057","itemid":"494","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":2,"readName":"Door","alpha":1},{"x":832,"y":1152,"height":128,"width":64,"framex":512,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42059","itemid":"495","data":{"canBeTaken":true,"buildFurni":false,"standArea4":true,"buildFunction":"atm","maxPay":null,"anim":"card"},"name":"atm","direction":3,"readName":"ATM","alpha":1},{"x":896,"y":1024,"height":64,"width":128,"framex":576,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42046","itemid":"489","data":{"buildFurni":false,"maxPay":null},"name":"researchdesk","direction":0,"readName":"Research Desk","alpha":1},{"x":960,"y":768,"height":128,"width":64,"framex":256,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42012","itemid":"474","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":25,"defaultPay":25,"maxPay":31.25,"dismantle":false,"job":"done","standDefault":true},"name":"advancedresearch","direction":3,"readName":"Monkey Kong","alpha":1},{"x":1088,"y":832,"height":64,"width":64,"framex":448,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42034","itemid":"483","data":{"buildFurni":false,"buildFunction":"bin","maxPay":null},"name":"bin","direction":3,"alpha":1},{"x":512,"y":1216,"height":64,"width":64,"framex":64,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42030","itemid":"481","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":1,"readName":"Door","alpha":1},{"x":896,"y":1088,"height":64,"width":64,"framex":640,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42107","itemid":"515","data":{"buildFurni":false,"anim":"chatter","maxPay":null},"name":"researchchair","direction":2,"readName":"Researchers chair","alpha":1},{"x":896,"y":1152,"height":128,"width":64,"framex":512,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42062","itemid":"496","data":{"canBeTaken":true,"buildFurni":false,"standArea4":true,"buildFunction":"atm","maxPay":null,"anim":"card"},"name":"atm","direction":3,"readName":"ATM","alpha":1},{"x":1216,"y":768,"height":128,"width":64,"framex":256,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42015","itemid":"475","data":{"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"filingcabinet","maxPay":null,"dismantle":false,"job":"done","standDefault":true},"name":"filingcabinet","direction":3,"alpha":1},{"x":1280,"y":768,"height":128,"width":64,"framex":256,"framey":704,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42018","itemid":"476","data":{"buildFurni":false,"buildFunction":"watertank","maxPay":null},"name":"watertank","direction":3,"readName":"Toilet","alpha":1},{"x":1408,"y":768,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42025","itemid":"479","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75,"maxPay":null},"name":"power","direction":3,"readName":"Big power","alpha":1},{"x":1024,"y":1152,"height":128,"width":64,"framex":512,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42088","itemid":"507","data":{"canBeTaken":true,"buildFurni":false,"standArea4":true,"buildFunction":"atm","maxPay":null,"anim":"card"},"name":"atm","direction":3,"readName":"ATM","alpha":1},{"x":1088,"y":1152,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42102","itemid":"513","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":0,"readName":"Door","alpha":1},{"x":1152,"y":832,"height":64,"width":64,"framex":256,"framey":832,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42038","itemid":"485","data":{"buildFurni":false,"buildFunction":"plants2","maxPay":null},"name":"plants2","direction":0,"readName":"Toilet","alpha":1},{"x":576,"y":1280,"height":64,"width":64,"framex":384,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42036","itemid":"484","data":{"buildFurni":false,"buildFunction":"bin","maxPay":null},"name":"bin","direction":2,"alpha":1},{"x":640,"y":1344,"height":64,"width":64,"framex":128,"framey":1216,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42100","itemid":"512","data":{"buildFurni":false,"wallBuild":true,"buildFunction":"neonstrip","color":"red","maxPay":null},"name":"redneonstrip","direction":2,"readName":"Red neon strip","alpha":1},{"x":1152,"y":896,"height":64,"width":64,"framex":256,"framey":1344,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42044","itemid":"488","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"dismantle":false,"job":"done"},"name":"officechair","direction":0,"readName":"Couch","alpha":1},{"x":960,"y":1216,"height":64,"width":64,"framex":448,"framey":832,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42076","itemid":"502","data":{"buildFurni":false,"buildFunction":"plants1","maxPay":null},"name":"plants1","direction":3,"readName":"Plants","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42096","itemid":"510","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1408,"y":896,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42071","itemid":"500","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75,"maxPay":null},"name":"power","direction":3,"readName":"Big power","alpha":1},{"x":1152,"y":960,"height":64,"width":128,"framex":320,"framey":256,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42048","itemid":"490","data":{"buildFurni":false,"maxPay":null},"name":"officedesk","direction":1,"alpha":1},{"x":1280,"y":1152,"height":128,"width":64,"framex":0,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42104","itemid":"514","data":{"buildFurni":false,"elecUnits":20,"standArea4":true,"pay":25,"anim":"snack","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Snack machine","alpha":1},{"x":960,"y":1344,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42118","itemid":"520","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":0,"readName":"Door","alpha":1},{"x":1536,"y":832,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42050","itemid":"491","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75,"maxPay":null},"name":"power","direction":3,"readName":"Big power","alpha":1},{"x":1152,"y":1280,"height":64,"width":64,"framex":384,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42126","itemid":"524","data":{"buildFurni":false,"buildFunction":"bin","maxPay":null},"name":"bin","direction":2,"alpha":1},{"x":1152,"y":1344,"height":64,"width":64,"framex":128,"framey":1216,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42132","itemid":"527","data":{"buildFurni":false,"wallBuild":true,"buildFunction":"neonstrip","color":"red","maxPay":null},"name":"redneonstrip","direction":2,"readName":"Red neon strip","alpha":1},{"x":1408,"y":1024,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42091","itemid":"508","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75,"maxPay":null},"name":"power","direction":3,"readName":"Big power","alpha":1},{"x":1664,"y":768,"height":128,"width":64,"framex":256,"framey":704,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42040","itemid":"486","data":{"buildFurni":false,"buildFunction":"watertank","maxPay":null},"name":"watertank","direction":3,"readName":"Water tank","alpha":1},{"x":1472,"y":1152,"height":128,"width":64,"framex":512,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42138","itemid":"530","data":{"canBeTaken":true,"buildFurni":false,"standArea4":true,"buildFunction":"atm","maxPay":null,"anim":"card"},"name":"atm","direction":3,"readName":"ATM","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42098","itemid":"511","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1216,"y":1408,"height":128,"width":64,"framex":512,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42148","itemid":"533","data":{"buildFurni":false,"elecUnits":25,"standArea4":true,"pay":25,"anim":"drink","buildFunction":"arcademachine","doNow":true,"defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Fizz soda yummy","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42114","itemid":"518","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1664,"y":768,"height":128,"width":64,"framex":256,"framey":704,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42055","itemid":"493","data":{"buildFurni":false,"buildFunction":"watertank","maxPay":null},"name":"watertank","direction":3,"readName":"Water tank","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42120","itemid":"521","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42122","itemid":"522","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1536,"y":960,"height":128,"width":128,"framex":1216,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42083","itemid":"505","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"power","powerUnits":75,"maxPay":null},"name":"power","direction":3,"readName":"Big power","alpha":1},{"x":1536,"y":1088,"height":64,"width":64,"framex":448,"framey":448,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42109","itemid":"516","data":{"powerUnits":30,"buildFurni":false,"buildFunction":"power","maxPay":null},"name":"power","direction":3,"alpha":1},{"x":1280,"y":1408,"height":128,"width":64,"framex":256,"framey":1792,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42157","itemid":"537","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":50,"defaultPay":50,"maxPay":62.5,"earnings":2800},"name":"arcade","direction":3,"alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42124","itemid":"523","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42128","itemid":"525","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1536,"y":1152,"height":128,"width":64,"framex":256,"framey":0,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42145","itemid":"532","data":{"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","tutNumber":4,"maxPay":null},"name":"change","direction":3,"readName":"Change Machine","alpha":1},{"x":1664,"y":1152,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42178","itemid":"544","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":0,"readName":"Door","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42130","itemid":"526","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1856,"y":896,"height":128,"width":128,"framex":1344,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42080","itemid":"504","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":220,"defaultPay":220,"maxPay":275,"earnings":4620},"name":"arcade","direction":2,"readName":"Table soccer","alpha":1},{"x":1792,"y":1088,"height":64,"width":64,"framex":64,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42116","itemid":"519","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":1,"readName":"Couch","alpha":1},{"x":256,"y":1472,"height":256,"width":128,"framex":1600,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":false,"id":"object-42134","itemid":"528","data":{"maxPay":null},"name":null,"alpha":0.25},{"x":1728,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42180","itemid":"545","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":94},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":1792,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42185","itemid":"547","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":50},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":2048,"y":896,"height":128,"width":128,"framex":1344,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42111","itemid":"517","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":220,"defaultPay":220,"maxPay":275,"earnings":11880},"name":"arcade","direction":2,"readName":"Table soccer","alpha":1},{"x":1856,"y":1088,"height":64,"width":64,"framex":192,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42136","itemid":"529","data":{"buildFurni":false,"maxPay":null},"name":"smalltable","direction":3,"readName":"Small table","alpha":1},{"x":576,"y":1472,"height":128,"width":128,"framex":1216,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42141","itemid":"531","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":150,"defaultPay":150,"maxPay":187.5,"earnings":3600},"name":"arcade","direction":3,"readName":"Table tennis","alpha":1},{"x":576,"y":1664,"height":128,"width":128,"framex":1216,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42161","itemid":"538","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":150,"defaultPay":150,"maxPay":187.5,"earnings":2850},"name":"arcade","direction":3,"readName":"Table tennis","alpha":1},{"x":960,"y":1472,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42151","itemid":"534","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":0,"readName":"Door","alpha":1},{"x":896,"y":1600,"height":64,"width":64,"framex":64,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42153","itemid":"535","data":{"buildFurni":false,"buildFunction":"toilet","maxPay":null},"name":"toilet","direction":1,"readName":"Toilet","alpha":1},{"x":2368,"y":768,"height":128,"width":64,"framex":0,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42210","itemid":"558","data":{"buildFurni":false,"elecUnits":25,"standArea4":true,"pay":25,"anim":"drink","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Soda machine","alpha":1},{"x":1088,"y":1536,"height":64,"width":64,"framex":448,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42155","itemid":"536","data":{"buildFurni":false,"buildFunction":"bin","maxPay":null},"name":"bin","direction":3,"alpha":1},{"x":2240,"y":896,"height":128,"width":128,"framex":1344,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42321","itemid":"608","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":180,"defaultPay":180,"maxPay":225,"earnings":6480},"name":"arcade","direction":2,"readName":"Airhockey","alpha":1},{"x":1344,"y":1408,"height":128,"width":64,"framex":512,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42165","itemid":"539","data":{"buildFurni":false,"elecUnits":25,"standArea4":true,"pay":25,"anim":"drink","buildFunction":"arcademachine","doNow":true,"defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Munch machine","alpha":1},{"x":896,"y":1664,"height":64,"width":64,"framex":64,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42168","itemid":"540","data":{"buildFurni":false,"buildFunction":"toilet","maxPay":null},"name":"toilet","direction":1,"readName":"Toilet","alpha":1},{"x":1088,"y":1600,"height":64,"width":64,"framex":448,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42183","itemid":"546","data":{"buildFurni":false,"buildFunction":"sink","maxPay":null,"anim":"wash","face":"same"},"name":"sink","direction":3,"readName":"Toilet","alpha":1},{"x":1664,"y":1408,"height":128,"width":64,"framex":0,"framey":896,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42196","itemid":"552","data":{"buildFurni":false,"elecUnits":5,"standArea3":true,"pay":25,"buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"happy","earnings":1950},"name":"pinball","direction":3,"readName":"Fireball","alpha":1},{"x":1088,"y":1664,"height":64,"width":64,"framex":448,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42190","itemid":"549","data":{"buildFurni":false,"buildFunction":"sink","maxPay":null,"anim":"wash","face":"same"},"name":"sink","direction":3,"readName":"Toilet","alpha":1},{"x":896,"y":1728,"height":64,"width":64,"framex":64,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42174","itemid":"542","data":{"buildFurni":false,"buildFunction":"toilet","maxPay":null},"name":"toilet","direction":1,"readName":"Toilet","alpha":1},{"x":896,"y":1792,"height":64,"width":64,"framex":64,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42188","itemid":"548","data":{"buildFurni":false,"buildFunction":"toilet","maxPay":null},"name":"toilet","direction":1,"readName":"Toilet","alpha":1},{"x":1088,"y":1728,"height":64,"width":64,"framex":448,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42192","itemid":"550","data":{"buildFurni":false,"buildFunction":"sink","maxPay":null,"anim":"wash","face":"same"},"name":"sink","direction":3,"readName":"Toilet","alpha":1},{"x":1856,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42215","itemid":"560","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":58},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":576,"y":1856,"height":128,"width":128,"framex":1216,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42170","itemid":"541","data":{"big":true,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":150,"defaultPay":150,"maxPay":187.5,"earnings":4500},"name":"arcade","direction":3,"readName":"Table tennis","alpha":1},{"x":1728,"y":1408,"height":128,"width":64,"framex":0,"framey":896,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42199","itemid":"553","data":{"buildFurni":false,"elecUnits":5,"standArea3":true,"pay":25,"buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"happy","earnings":1550},"name":"pinball","direction":3,"readName":"Fireball","alpha":1},{"x":1920,"y":1088,"height":64,"width":64,"framex":192,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42176","itemid":"543","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":3,"readName":"Couch","alpha":1},{"x":1088,"y":1792,"height":64,"width":64,"framex":448,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42194","itemid":"551","data":{"buildFurni":false,"buildFunction":"sink","maxPay":null,"anim":"wash","face":"same"},"name":"sink","direction":3,"readName":"Toilet","alpha":1},{"x":1280,"y":1984,"height":64,"width":64,"framex":0,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42202","itemid":"554","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Couch","alpha":1},{"x":2176,"y":1152,"height":64,"width":64,"framex":128,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42413","itemid":"650","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":2,"readName":"Door","alpha":1},{"x":1408,"y":1792,"height":64,"width":64,"framex":192,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42206","itemid":"556","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":3,"readName":"Door","alpha":1},{"x":1920,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42270","itemid":"585","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":18},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":1792,"y":1408,"height":128,"width":64,"framex":0,"framey":1024,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42255","itemid":"579","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":2250},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1344,"y":1984,"height":64,"width":64,"framex":0,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42208","itemid":"557","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Couch","alpha":1},{"x":1856,"y":1408,"height":128,"width":64,"framex":0,"framey":1024,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42264","itemid":"583","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":2000},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1984,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42297","itemid":"598","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":19},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":2048,"y":1216,"height":128,"width":64,"framex":0,"framey":768,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42308","itemid":"603","data":{"buildFurni":false,"elecUnits":2,"standArea3":true,"pay":1,"buildFunction":"arcademachine","tutNumber":8,"defaultPay":1,"maxPay":1.25,"runAnim":"happy","earnings":13},"name":"pinball","direction":3,"readName":"Sun Wars","alpha":1},{"x":1280,"y":2048,"height":64,"width":128,"framex":64,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42204","itemid":"555","data":{"buildFurni":false,"maxPay":null},"name":"coffeetable","direction":0,"readName":"Coffee table","alpha":1},{"x":1920,"y":1408,"height":128,"width":64,"framex":256,"framey":960,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42324","itemid":"609","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":100},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1600,"y":1600,"height":128,"width":64,"framex":0,"framey":1280,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42226","itemid":"565","data":{"buildFurni":false,"buildFunction":"pixellamp","maxPay":null},"name":"lamp","direction":3,"readName":"Pixel lamp","alpha":1},{"x":1664,"y":1600,"height":128,"width":64,"framex":256,"framey":1088,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42250","itemid":"577","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":2350},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1536,"y":1920,"height":64,"width":64,"framex":0,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42300","itemid":"599","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":0,"readName":"Door","alpha":1},{"x":2432,"y":768,"height":128,"width":64,"framex":0,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42340","itemid":"616","data":{"buildFurni":false,"elecUnits":20,"standArea4":true,"pay":25,"anim":"snack","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Snack machine","alpha":1},{"x":1280,"y":2112,"height":64,"width":64,"framex":128,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42230","itemid":"567","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":2,"readName":"Couch","alpha":1},{"x":1728,"y":1600,"height":128,"width":64,"framex":256,"framey":1088,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42267","itemid":"584","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":1350},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1280,"y":2176,"height":64,"width":64,"framex":0,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42287","itemid":"593","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Couch","alpha":1},{"x":1792,"y":1600,"height":128,"width":64,"framex":256,"framey":1216,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42313","itemid":"605","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":500},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1856,"y":1600,"height":128,"width":64,"framex":256,"framey":1216,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42318","itemid":"607","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":200},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1984,"y":1408,"height":128,"width":64,"framex":256,"framey":960,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42331","itemid":"612","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":50},"name":"pinball","direction":3,"readName":"Twinkle Zone","alpha":1},{"x":1664,"y":1920,"height":128,"width":64,"framex":0,"framey":1408,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42347","itemid":"619","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":25,"defaultPay":25,"maxPay":31.25,"earnings":1000},"name":"arcade","direction":3,"readName":"Monkey Kong","alpha":1},{"x":1344,"y":2112,"height":64,"width":64,"framex":128,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42275","itemid":"587","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":2,"readName":"Couch","alpha":1},{"x":1408,"y":2048,"height":64,"width":64,"framex":256,"framey":832,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42295","itemid":"597","data":{"buildFurni":false,"buildFunction":"plants1","maxPay":null},"name":"plants1","direction":0,"readName":"Toilet","alpha":1},{"x":1728,"y":1920,"height":128,"width":64,"framex":0,"framey":1408,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42427","itemid":"656","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":25,"defaultPay":25,"maxPay":31.25,"earnings":1300},"name":"arcade","direction":3,"readName":"Monkey Kong","alpha":1},{"x":1856,"y":1856,"height":64,"width":64,"framex":704,"framey":0,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42371","itemid":"629","data":{"buildFurni":false,"anim":"chatter","maxPay":null},"name":"chair","direction":3,"readName":"Stool","alpha":1},{"x":1792,"y":1920,"height":128,"width":64,"framex":0,"framey":1536,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42437","itemid":"659","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":50,"defaultPay":50,"maxPay":62.5,"earnings":2000},"name":"arcade","direction":3,"readName":"Pacboy","alpha":1},{"x":1344,"y":2176,"height":64,"width":64,"framex":0,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42355","itemid":"622","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Couch","alpha":1},{"x":1280,"y":2240,"height":64,"width":128,"framex":64,"framey":320,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42357","itemid":"623","data":{"buildFurni":false,"maxPay":null},"name":"coffeetable","direction":0,"readName":"Coffee table","alpha":1},{"x":1920,"y":1600,"height":128,"width":64,"framex":256,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42359","itemid":"624","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":5700},"name":"arcade","direction":3,"readName":"Army","alpha":1},{"x":1984,"y":1600,"height":128,"width":64,"framex":256,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42433","itemid":"658","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":4300},"name":"arcade","direction":3,"readName":"Army","alpha":1},{"x":1408,"y":2240,"height":64,"width":64,"framex":256,"framey":832,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42401","itemid":"644","data":{"buildFurni":false,"buildFunction":"plants1","maxPay":null},"name":"plants1","direction":0,"readName":"Toilet","alpha":1},{"x":1920,"y":1856,"height":64,"width":64,"framex":512,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42391","itemid":"639","data":{"buildFurni":false,"maxPay":null},"name":"smalltable","direction":0,"readName":"Small table","alpha":1},{"x":1856,"y":1920,"height":128,"width":64,"framex":0,"framey":1536,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42464","itemid":"669","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":50,"defaultPay":50,"maxPay":62.5,"earnings":1050},"name":"arcade","direction":3,"readName":"Pacboy","alpha":1},{"x":2048,"y":1600,"height":128,"width":64,"framex":256,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42447","itemid":"663","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":4300},"name":"arcade","direction":3,"readName":"Army","alpha":1},{"x":1280,"y":2304,"height":64,"width":64,"framex":128,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42363","itemid":"625","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":2,"readName":"Couch","alpha":1},{"x":1664,"y":2176,"height":128,"width":64,"framex":256,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42419","itemid":"653","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":4300},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":1920,"y":1920,"height":128,"width":64,"framex":256,"framey":1408,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42478","itemid":"675","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":2000},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":1344,"y":2304,"height":64,"width":64,"framex":128,"framey":192,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42587","itemid":"725","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":2,"readName":"Couch","alpha":1},{"x":1984,"y":1856,"height":64,"width":64,"framex":704,"framey":0,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42484","itemid":"677","data":{"buildFurni":false,"anim":"chatter","maxPay":null},"name":"chair","direction":3,"readName":"Stool","alpha":1},{"x":2112,"y":1344,"height":64,"width":64,"framex":64,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42311","itemid":"604","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":1,"readName":"Door","alpha":1},{"x":1728,"y":2176,"height":128,"width":64,"framex":256,"framey":1664,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42453","itemid":"665","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":2400},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":1984,"y":1920,"height":128,"width":64,"framex":256,"framey":1408,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42522","itemid":"695","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":900},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":1856,"y":2176,"height":128,"width":64,"framex":0,"framey":1280,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42486","itemid":"678","data":{"buildFurni":false,"buildFunction":"pixellamp","maxPay":null},"name":"lamp","direction":3,"readName":"Pixel lamp","alpha":1},{"x":1792,"y":2240,"height":64,"width":64,"framex":448,"framey":384,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42472","itemid":"672","data":{"buildFurni":false,"buildFunction":"bin","maxPay":null},"name":"bin","direction":3,"alpha":1},{"x":2112,"y":1536,"height":64,"width":64,"framex":64,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42470","itemid":"671","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":1,"readName":"Door","alpha":1},{"x":2304,"y":1280,"height":128,"width":128,"framex":1216,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42457","itemid":"666","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":120,"defaultPay":120,"maxPay":150,"earnings":2880},"name":"arcade","direction":0,"readName":"Pool table","alpha":1},{"x":2304,"y":1472,"height":128,"width":128,"framex":1216,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42490","itemid":"680","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":120,"defaultPay":120,"maxPay":150,"earnings":1680},"name":"arcade","direction":0,"readName":"Pool table","alpha":1},{"x":2048,"y":1920,"height":128,"width":64,"framex":256,"framey":1536,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42567","itemid":"716","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":700},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":2368,"y":1088,"height":64,"width":128,"framex":320,"framey":1024,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42719","itemid":"790","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":50},"name":"pinball","direction":0,"readName":"Jupiter","alpha":1},{"x":1920,"y":2176,"height":128,"width":64,"framex":0,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42558","itemid":"712","data":{"buildFurni":false,"elecUnits":20,"standArea4":true,"pay":25,"anim":"snack","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Snack machine","alpha":1},{"x":2112,"y":1856,"height":64,"width":64,"framex":64,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42534","itemid":"700","data":{"buildDoor":false,"wallBuild":true,"isDoor":true,"maxPay":null},"name":"door","direction":1,"readName":"Door","alpha":1},{"x":1984,"y":2176,"height":128,"width":64,"framex":0,"framey":640,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42726","itemid":"793","data":{"buildFurni":false,"elecUnits":20,"standArea4":true,"pay":25,"anim":"snack","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Snack machine","alpha":1},{"x":2112,"y":1920,"height":128,"width":64,"framex":256,"framey":1536,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42593","itemid":"728","data":{"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":100,"defaultPay":100,"maxPay":125,"earnings":300},"name":"arcade","direction":3,"readName":"Froggy","alpha":1},{"x":2240,"y":1984,"height":64,"width":64,"framex":0,"framey":0,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42711","itemid":"786","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Chair","alpha":1},{"x":2304,"y":1664,"height":128,"width":128,"framex":1216,"framey":64,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42507","itemid":"688","data":{"big":true,"canBeTaken":false,"buildFurni":false,"standArea4":true,"buildFunction":"arcademachine","pay":120,"defaultPay":120,"maxPay":150,"earnings":1440},"name":"arcade","direction":0,"readName":"Pool table","alpha":1},{"x":2048,"y":2176,"height":128,"width":64,"framex":0,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42843","itemid":"851","data":{"buildFurni":false,"elecUnits":25,"standArea4":true,"pay":25,"anim":"drink","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Soda machine","alpha":1},{"x":2112,"y":2176,"height":128,"width":64,"framex":0,"framey":512,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42874","itemid":"866","data":{"buildFurni":false,"elecUnits":25,"standArea4":true,"pay":25,"anim":"drink","buildFunction":"arcademachine","defaultPay":25,"maxPay":31.25,"runAnim":"snack"},"name":"food","direction":3,"readName":"Soda machine","alpha":1},{"x":2240,"y":2048,"height":64,"width":64,"framex":192,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42891","itemid":"874","data":{"buildFurni":false,"maxPay":null},"name":"smalltable","direction":3,"readName":"Small table","alpha":1},{"x":2240,"y":2112,"height":64,"width":64,"framex":0,"framey":0,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-42935","itemid":"896","data":{"buildFurni":false,"anim":"chatter","maxPay":null,"runAnim":"chatter"},"name":"seat","direction":0,"readName":"Chair","alpha":1},{"x":2240,"y":2176,"height":64,"width":64,"framex":192,"framey":128,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-43057","itemid":"957","data":{"buildFurni":false,"maxPay":null},"name":"smalltable","direction":3,"readName":"Small table","alpha":1},{"x":2368,"y":1856,"height":64,"width":128,"framex":320,"framey":1024,"tileSetName":"arcadebuilder/png/furni.png","built":true,"id":"object-43303","itemid":"1080","data":{"buildFurni":false,"elecUnits":7,"standArea3":true,"pay":50,"buildFunction":"arcademachine","defaultPay":50,"maxPay":62.5,"runAnim":"happy","earnings":50},"name":"pinball","direction":0,"readName":"Jupiter","alpha":1}],"settings":false,"cash":1000171264,"isOpen":true}',!1)})}),game.render.hideLoad(),game.hasPower=!0,game.happiness=70},this.bitNumber=0,this.bitMax=0,this.loadLoop=function(){this.debug("Bits: "+this.bitNumber),this.bitNumber<this.bitMax?(5==game.rand(0,7)&&(oneP=this.bitMax/100,p=Math.round(this.bitNumber/oneP),game.render.loadingText("Loading: ("+p+"%) "+this.randomLoadQuotes[game.rand(0,this.randomLoadQuotes.length)])),bootStrap[this.bitNumber](),this.bitNumber++):(this.loading=!1,this.bitsReady())},this.loading=!0,this.loadBits=function(){!function e(){!0===game.loading&&(game.loadLoop(),window.requestAnimationFrame(e))}(),this.debug("Loading Bits")},this.startUI=function(){this.debug("Starting"),document.getElementById("viewport").style.display="block",document.getElementById("loader").style.display="none",function e(){game.renderWorld(),!1===game.isLangLoaded&&window.requestAnimationFrame(e)}(),this.debug("Started")},this.start=function(){this.newGame(),this.debug("Starting"),document.getElementById("viewport").style.display="block",document.getElementById("loader").style.display="none",createjs.Ticker.setFPS(60),createjs.Ticker.addEventListener("tick",game.renderWorld),this.debug("Started")}}function Stats(a){this.cash=100,this.time=21600,this.hr=0,this.gameTime=21600,this.timers={},this.start=function(e){this.timers[e]=performance.now()},this.end=function(e){this.timers[e]=performance.now()-this.timers[e]},this.maxJobs=function(){return 2*createjs.Ticker.getMeasuredFPS()},this.measure=function(){return!(createjs.Ticker.getMeasuredFPS()<10)},this.timeFromSeconds=function(e){return hr=moment.duration(e,"seconds").hours()+"",mn=moment.duration(e,"seconds").minutes()+"",sec=moment.duration(e,"seconds").seconds()+"",1==hr.length&&(hr="0"+hr),1==mn.length&&(mn="0"+mn),1==sec.length&&(sec="0"+sec),3600<e?hr+":"+mn+":"+sec:mn+":"+sec},this.tick=function(e){this.time+=24*e,this.gameTime+=1*a.speed,a.world.currentHour=moment.duration(this.gameTime,"seconds").hours()},this.makeTime=function(e){return hr=moment.duration(e,"seconds").hours()+"",mn=moment.duration(e,"seconds").minutes()+"",sec=moment.duration(e,"seconds").seconds()+"",tim="am",1==hr.length&&(hr="0"+hr),12<=1*hr&&(tim="pm"),1==mn.length&&(mn="0"+mn),1==sec.length&&(sec="0"+sec),hr+":"+mn+" "+tim},this.init=function(){a.debug("Stats loading"),a.debug("Stats loaded")}}function Camera(a){a.debug("Camera loading"),this.offsetX=0,this.offsetY=0,this.newOffsetX=0,this.newOffsetY=0,this.scrollAmount=100,this.zoom=1,this.scale=1,this.originX=0,this.originY=0,this.lerp=.1,this.scale=1,this.keyMap={},this.newScale=0,this.keydownEvent=function(e){a.camera.keyMap[e.keyCode]="keydown"==e.type},this.overLeft=!1,this.overUp=!1,this.overDown=!1,this.overRight=!1,this.left=void 0,this.right=void 0,this.up=void 0,this.down=void 0,this.oldPosX=0,this.oldPosY=0,this.originX=0,this.originY=0,this.rDown=!1,this.mouseUp=function(e){a.render.viewport.pause=!1},this.rightClick=function(e){e.preventDefault(),3==e.which?(a.camera.rDown=!a.camera.rDown,e.preventDefault(),a.camera.rDown?(a.camera.originX=a.render.viewport.left,a.camera.originY=a.render.viewport.top):a.camera.originX===a.render.viewport.left&&a.camera.originY===a.render.viewport.top&&a.tools.setActiveTool("select")):a.camera.rDown=!1},this.updateScales=function(){},this.updateFocus=function(){a.stage.tabIndex=0,a.stage.focus()},this.init=function(){document.addEventListener("contextmenu",a.camera.rightClick),document.addEventListener("mousedown",a.camera.rightClick),document.addEventListener("mouseup",a.camera.mouseUp),document.addEventListener("keyup",function(e){a.camera.overRight=!1,a.camera.overLeft=!1,a.camera.overUp=!1,a.camera.overDown=!1,a.camera.keydownEvent(e)}),document.addEventListener("keydown",function(e){a.camera.keydownEvent(e),a.camera.keyMap[27]&&a.ui.escMenu(),a.camera.keyMap[16]&&a.camera.keyMap[187],a.camera.keyMap[82]&&(3<=a.tools.direction?a.tools.direction=0:a.tools.direction++)})},this.tick=function(){}}function Render(u){u.debug("Renderer loading"),this.tilesets={},this.cache=PIXI.utils.TextureCache,this.resources=PIXI.loader.resources,this.sprite=PIXI.Sprite,this.isFullscreen=!1,this.textStyles={},this.lastWidth=0,this.checkScreen=function(){0<$("body").scrollTop()?$("body").scrollTop(0):0<$("html").scrollTop()&&$("html").scrollTop(0)},this.createAnimRender=function(e,a,t,i,n,r){var o=new WorldSprite(0,0,u.render.newTexture(a,t,i,n,r));return o.name=e,o},this.render=function(e){this.checkScreen(),!0===u.render.loadingBlack.fadeOut&&(u.render.loadingBlack.alpha-=.25*e,u.render.loadingBlack.alpha<.01&&(u.render.loadingBlack.visible=!1,u.render.loadingBlack.fadeOut=!1)),this.updateLighting(),u.render.draw.render(u.render.allStages),5==u.rand(0,10)&&(u.calcFPS=Math.round(1/u.delta)),this.fpsCounter.visible=!1,this.fpsCounter.text="FPS: "+u.calcFPS+" AI: "+u.ai.life.length+" Objects: "+u.world.objects.length},u.standArea=function(){return u.render.window(16,16,32,32,769812)},this.fullscreen=function(){if(this.isFullscreen)this.isFullscreen=!1,document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.exitFullscreen();else{this.isFullscreen=!0;var e=document.getElementById("body");e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen()}setTimeout(function(){u.render.redraw()},1e3)},document.onfullscreenchange=function(e){setTimeout(function(){u.render.redraw()},1e3)},this.rezoom=function(){u.debug("rezoom");var e=window.innerWidth,a=window.innerHeight;u.render.draw.view.style.width=e+"px",u.render.draw.view.style.height=a+"px",RENDER_WIDTH=e,RENDER_HEIGHT=a,u.ui._VIEWPORT_RIGHT=RENDER_WIDTH,u.ui._VIEWPORT_BOTTOM=RENDER_HEIGHT,void 0!==u.ui&&void 0!==u.ui.updateAll&&u.ui.updateAll(),void 0!==u.showTutorial&&u.showTutorial(),document.scrollTo=0,u.render.viewport.resize()},this.redraw=function(){u.debug("resize")},this.countWorldChildren=function(){var e=0;for(l in u.render.world.children)r=u.render.world.children[l],e+=r.children.length;return e},this.fallback=function(){window.location.href="?fallback=true&canvasMode=true"},this.whichRenderer=function(){return this.draw instanceof PIXI.CanvasRenderer?"canvas":"webgl"},this.init=function(){PIXI.tilemap.Constant.boundCountPerBuffer=1,PIXI.tilemap.Constant.maxTextures=16,u.debug("Render init"),"true"==u.urlVar("canvasMode")?this.draw=new PIXI.CanvasRenderer(window.innerWidth,window.innerHeight,{resolution:1,view:document.getElementById("gamestage")}):this.draw=PIXI.autoDetectRenderer(window.innerWidth,window.innerHeight,{resolution:1,view:document.getElementById("gamestage")}),PIXI.settings.SCALE_MODE=PIXI.SCALE_MODES.LINEAR,this.draw.roundPixels=!0,this.draw.view.addEventListener("webglcontextlost",function(e){e.preventDefault(),this.fallback()},!1),window.addEventListener("resize",function(){u.render.draw.resize(window.innerWidth,window.innerHeight),u.render.rezoom()}),document.addEventListener("fullscreenchange",function(e){u.render.redraw(),setTimeout(function(){u.render.redraw()},1e3)}),this.allStages=new PIXI.display.Stage,this.allStages.group.enableSort=!0,this.baseStage=new PIXI.Container,this.allStages.addChild(this.baseStage),this.background=new PIXI.Container,this.filter=new PIXI.filters.ColorMatrixFilter,this.filter.matrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.uiLayer=new PIXI.Container(3,!1),this.world=new PIXI.Container,this.world.getBounds=function(){return{x:0,y:0,width:u.mapDimension*u.tileSize,height:u.mapDimension*u.tileSize}},this.world.interactive=!0,this.viewport=new Viewport.Viewport({screenWidth:window.innerWidth,screenHeight:window.innerHeight,interaction:this.draw.plugins.interaction}),this.pauseViewport=function(){u.render.viewport.plugins.pause("drag"),u.render.viewport.plugins.pause("pinch"),u.render.viewport.plugins.pause("wheel")},this.resumeViewport=function(){u.render.viewport.plugins.resume("drag"),u.render.viewport.plugins.resume("pinch"),u.render.viewport.plugins.resume("wheel")},this.viewport.addChild(this.world),this.viewport.on("drag-end",function(){}),this.viewport.drag({mouseButtons:"all",clampWheel:!0}).wheel().pinch({noDrag:!0,percent:5}).decelerate().clampZoom({minWidth:500,minHeight:500,maxWidth:1e4,maxHeight:1e4}),this.baseStage.addChild(this.viewport),this.aboveLife=new PIXI.Container,this.aboveLifeLayer=new PIXI.Container,this.objectLayer=new PIXI.Container,this.lifeGroup=new PIXI.display.Group(0,!0),this.lifeLayerSorted=new PIXI.display.Layer(this.lifeGroup),this.lifeLayerSorted.group.on("sort",function(e){e.zOrder=-e.y}),this.lifeLayerSorted.group.enableSort=!0,this.lifeLayer=new PIXI.Container,this.underLifeLayer=new PIXI.Container,this.shadowLayer=new PIXI.Container,this.bloomLayer=new PIXI.Container;var e=new PIXI.filters.AdvancedBloomFilter({threshold:.1,bloomScale:1.5,brightness:1.1,blur:8,quality:4});this.bloomLayer.filters=[e],this.behindGameGUI=new PIXI.Container,this.gameGUI=new PIXI.Container,this.tipsLayer=new PIXI.Container,this.notifications=new PIXI.Container,this.aboveAll=new PIXI.Container,this.override=new PIXI.Container,this.cursor=new PIXI.Container,this.world.pivot.set(0,0),this.baseStage.pivot.set(0,0),this.aboveLife.pivot.set(0,0),this.aboveLifeLayer.pivot.set(0,0),this.objectLayer.pivot.set(0,0),this.lifeLayer.pivot.set(0,0),this.underLifeLayer.pivot.set(0,0),this.shadowLayer.pivot.set(0,0),this.aboveAll.pivot.set(0,0),this.notifications.pivot.set(0,0),this.gameGUI.pivot.set(0,0),this.bloomLayer.pivot.set(0,0),this.tipsLayer.pivot.set(0,0),this.behindGameGUI.pivot.set(0,0),this.override.pivot.set(0,0),this.cursor.pivot.set(0,0),this.loadingInfo=this.text("Loading: Renderer Init",1,this.uiLayer),this.loadingInfo.x=RENDER_WIDTH/2,this.loadingInfo.y=RENDER_HEIGHT/2,this.loadingInfo.anchor.set(.5),this.world.addChild(this.background),this.world.addChild(this.underLifeLayer),this.world.addChild(this.shadowLayer),this.world.addChild(this.objectLayer),this.world.addChild(this.bloomLayer),this.world.addChild(this.lifeLayer),this.world.addChild(this.lifeLayerSorted),this.world.addChild(this.aboveLife),this.loadingBlack=this.window(0,0,RENDER_WIDTH,RENDER_HEIGHT,0,1),this.override.addChild(this.loadingBlack),this.betweenAboveAll=new PIXI.Container,this.cursor.addChild(this.betweenAboveAll),this.cursor.addChild(this.loadingInfo),this.allStages.addChild(this.behindGameGUI),this.allStages.addChild(this.gameGUI),this.allStages.addChild(this.tipsLayer),this.allStages.addChild(this.notifications),this.allStages.addChild(this.aboveAll),this.allStages.addChild(this.override),this.allStages.addChild(this.cursor),u.render.draw.render(this.allStages),u.render.newTileset("loadscreen",u.folder+"png/loadbg.png",function(){u.render.newTileset("light",u.folder+"png/light.png",function(){u.render.newTileset("rain",u.folder+"png/rain.png",function(){u.render.newTileset("background",u.folder+"png/tileset.png",function(){u.render.newTileset("gui",u.folder+"png/gui.png",function(){u.render.newTileset("furni",u.folder+"png/furni.png",function(){u.render.newTileset("skins",u.folder+"png/life.png",function(){var e=new PIXI.loaders.Loader;e.add("atlas",u.folder+"atlas.json"),e.load(function(e,a){u.render.tilemapTexture=a.atlas.textures,u.render.tilemap=new PIXI.tilemap.CompositeRectTileLayer(0,[a.atlas_image.texture]),u.render.background.addChild(u.render.tilemap),u.render.allImagesLoaded()})})})})})})})}),this.fpsCounter=this.text("Fps: 0","time",this.uiLayer),this.fpsCounter.x=10,this.fpsCounter.y=10},this.allImagesLoaded=function(){u.render.lights=new PIXI.Container,u.render.lights.interactive=!1,u.render.daylight=new PIXI.Graphics,u.render.daylight.beginFill(5526612),u.render.daylight.drawRect(0,0,u.mapDimension*u.tileSize,u.mapDimension*u.tileSize),u.render.daylight.blendMode=PIXI.BLEND_MODES.ADD,u.render.lights.addChild(u.render.daylight),u.render.lightTexture=new PIXI.RenderTexture.create(3620,3260);var e=new PIXI.Sprite(u.render.lightTexture);u.render.draw.render(u.render.lights,u.render.lightTexture),u.render.viewport.mask=e,u.renderReady()},this.loadQuick=function(e){u.render.loadingInfo.visible=!0,u.render.loadingBlack.alpha=1,u.render.loadingBlack.visible=!0,this.loadingText(e)},this.hideLoad=function(){u.ui.updateAll(),u.render.loadingInfo.visible=!1,u.render.loadingBlack.alpha=0,u.render.loadingBlack.fadeOut=!0},this.loadingComplete=function(){u.render.loadingInfo.visible=!1},this.updateLighting=function(){u.render.lights.x=u.render.viewport.x,u.render.lights.y=u.render.viewport.y,u.render.lights.scale.x=u.render.viewport.scale.x,u.render.lights.scale.y=u.render.viewport.scale.y,u.render.draw.render(u.render.lights,u.render.lightTexture)},this.text=function(e,a,t){var i=new PIXI.TextStyle({fontFamily:"Handlee",fontSize:22,fill:"#ffffff",strokeThickness:0});"object"==typeof a?i=new PIXI.TextStyle(a):void 0!==u.render.textStyles[a]&&(i=new PIXI.TextStyle(u.render.textStyles[a]));var n=new WorldText(e,i);return n.resolution=2,n.x=-10,n.y=-10,null==(n.displayGroup=t)?this.baseStage.addChild(n):void 0!==t.addChild?t.addChild(n):this.aboveAll.addChild(n),n},this.getTextStyle=function(e){return u.render.textStyles[e]||!1},this.gameSquare=function(e,a,t,i,n,r,o,d,s){void 0===n&&(n=13421772),void 0===s&&(s=!1),void 0===r&&(r=.2),borderWidth=void 0===o?(o=2697513,0):1;var m=new WorldGraphic;return m.beginFill(n,r),m.lineStyle(borderWidth,o),m.drawRect(e,a,t,i),m.displayGroup=u.render.uiLayer,m.interactive=!0,void 0===d?this.baseStage.addChild(m):d.addChild(m),m},u.tickers.push(function(){var e;if(void 0!==u.world.index.ticker)for(e in u.world.index.ticker){item=u.world.index.ticker[e];try{u.render.ticker(item)}catch(e){}}if(void 0!==u.world.index.stickto)for(e in u.world.index.stickto)if(item=u.world.index.stickto[e],null!=item&&null!=item&&0!=item.alpha&&null!=item.stickToObject)try{item.x=item.stickToObject.x+item.offsetX,item.y=item.stickToObject.y+item.offsetY}catch(e){item.destroy()}if(void 0!==u.world.index.center)for(e in u.world.index.center)item=u.world.index.center[e],u.render.doSticky(item)}),this.ticker=function(e){e.tickerFunc()},this.doSticky=function(e){"center"===e.stickTo&&(e.x=u.ui._VIEWPORT_RIGHT/2-e.width/2+e.offsetX,e.y=u.ui._VIEWPORT_BOTTOM/2-e.height/2+e.offsetY),"top"===e.stickTo&&(e.x=u.ui._VIEWPORT_RIGHT/2-e.width/2+e.offsetX),"right"===e.stickTo&&(e.x=u.ui._VIEWPORT_RIGHT+e.offsetX),"bottom"===e.stickTo&&(e.y=u.ui._VIEWPORT_BOTTOM+e.offsetY),"left"===e.stickTo&&(e.y=u.ui._VIEWPORT_BOTTOM/2-e.height/2+e.offsetY),"bottomleft"===e.stickTo&&(e.x=0+e.offsetX,e.y=u.ui._VIEWPORT_BOTTOM+e.offsetY),"bottomright"===e.stickTo&&(e.x=u.ui._VIEWPORT_RIGHT+e.offsetX,e.y=u.ui._VIEWPORT_BOTTOM+e.offsetY),"topright"===e.stickTo&&(e.x=u.ui._VIEWPORT_RIGHT+e.offsetX,e.y=0+e.offsetY),"topleft"===e.stickTo&&(e.x=0+e.offsetX,e.y=0+e.offsetY)},this.statsBackPane=function(e,a){var t=u.render.window(0,40,u.ui._VIEWPORT_RIGHT,u.ui._VIEWPORT_BOTTOM,_SETTINGS.ColorStyles.WindowBack,1,void 0,e,!0);return t.isInteractive(),t},this.backPane=function(e){var a=u.render.window(0,0,u.ui._VIEWPORT_RIGHT,u.ui._VIEWPORT_BOTTOM,_SETTINGS.ColorStyles.WindowBack,1,void 0,e,!0);return a.isInteractive(),a},this.simpleWindow=function(e,a,t,i,n){void 0===n&&(n=_SETTINGS.ColorStyles.WindowBack);var r=new WorldGraphic;return r.beginFill(13421772,1),r.lineStyle(0,13421772),r.drawRect(0,0,t,i),r.interactive=!0,r.on("pointerdown",function(){u.ui.clicked=!0}),r.x=e,r.y=a,r},this.window=function(e,a,t,i,n,r,o,d,s,m){void 0===n&&(n=_SETTINGS.ColorStyles.WindowBack),void 0===s&&(s=!1),void 0===m&&(m=!1),void 0===r&&(r=1),borderWidth=void 0===o?(o=2697513,0):1,2==o&&(borderWidth=3,o=65280);var l=new WorldGraphic;return l.beginFill(n,r),l.lineStyle(borderWidth,o),l.drawRect(0,0,t,i),l.interactive=!0,l.on("pointerdown",function(){u.ui.clicked=!0}),s&&l.isFullscreen(),m&&l.isCenter(),l.x=e,l.y=a,void 0===d?this.baseStage.addChild(l):d.addChild(l),l},this.loadingText=function(e){return u.debug(e),u.render.loadingInfo.text="Loading plot... \n\n\n"+e,u.render.draw.render(u.render.allStages),u.render.draw.render(u.render.allStages),!0},this.newTileset=function(a,t,i){if(u.render.tilesets[a]==t)return i(),!0;u.render.loadingText("Loading tileset: "+a),PIXI.loader.add(t).load(function(e){u.render.loadingText("Loaded tileset: "+a+"..."),u.render.tilesets[a]=t,i()})},this.tiles={},this.shadows={},this.drawTile=function(e,a,t,i,n,r){return e<1||a<1||(texture=u.render.tilemapTexture,u.render.tilemap.addFrame(texture[e+","+a],u.atGridPos(n),u.atGridPos(r))),!1},this.drawShadow=function(e,a,t,i,n,r){return this.drawTile(1,1,t,i,n,r),!1},this.textureCache={},this.newTexture=function(e,a,t,i,n){if(e=e.replace("arcadebuilder",u.gameName),void 0!==this.textureCache[e+"-"+a+"-"+t+"-"+i+"-"+n])return this.textureCache[e+"-"+a+"-"+t+"-"+i+"-"+n];var r=this.cache[e].clone(),o=new PIXI.Rectangle(a,t,i,n);return r.frame=o,r.tileSetName=e,this.textureCache[e+"-"+a+"-"+t+"-"+i+"-"+n]=r}}function Grid(o){o.debug("Grid loading"),reGrid=function(){for(o.blockMatrix=[],o.shadowMatrix=[],o.drawMatrix=[],i=0;i<o.mapDimension;i++){var e=[],a=[],t=[],n=[];for(j=0;j<o.mapDimension;j++)e.push([o.rand(1,2),o.rand(1,2)]),n.push([-1,-1]),a.push(!1),t.push(1);o.blockMatrix.push(a),o.oppositeBlockMatrix.push(t),o.shadowMatrix.push(n),o.drawMatrix.push(e)}},this.getTileType=function(e,a){return data={},tile=o.drawMatrix[e][a],data.across=tile[0],data.down=tile[1],14<data.across&&data.across<17&&2<data.down&&data.down<14?"stone":0<data.across&&data.across<3&&0<data.down&&data.down<3?"grass":1==data.across&&10===data.down?"cement tile":void 0},reGrid(),this.reGrid=reGrid,this.renderCounter=0,this.needRedraw=!0,this.noDrawCounter=0,this.render=function(){this.needRedraw||2500<this.noDrawCounter?(this.drawWalls(),this.renderCounter++,this.noDrawCounter=0):this.noDrawCounter++},this.drawn=!1,this.drawCounter=0,this.drawWallIndex=0,this.drawWalls=function(){if(!1===this.needRedraw)return!1;if(this.drawCounter++,!(this.drawWallIndex<=o.mapDimension))return this.drawWallIndex=0,this.stillDrawing=!1,this.drawn=!0,this.needRedraw=!1;if(this.stillDrawing=!0,this.drawn=!1,0===this.drawWallIndex&&(this.drawCounter=0,o.render.tilemap.clear()),!1===this.drawn){this.drawn=!0,this.drawCounter++,max=o.mapDimension;for(var e=this.drawWallIndex;e<=this.drawWallIndex+max;e++)if(null!=o.drawMatrix[e])for(var a=0;a<o.drawMatrix[e].length;a++)o.drawMatrix[e][a]=this.checkResolve(e,a),o.render.drawTile(o.drawMatrix[e][a][0],o.drawMatrix[e][a][1],o.tileSize,o.tileSize,e,a),o.shadowMatrix[e][a]=this.checkShadow(e,a),o.render.drawTile(o.shadowMatrix[e][a][0],o.shadowMatrix[e][a][1],o.tileSize,o.tileSize,e,a);this.drawWallIndex=this.drawWallIndex+max}},this.check=function(e,a){return e<o.mapDimension&&a<o.mapDimension&&0<e&&0<a&&void 0!==o.drawMatrix[e]&&void 0!==o.drawMatrix[e][a]&&!(o.drawMatrix[e][a][0]<3||o.drawMatrix[e][a][0]<3)},this.checkWire=function(e,a){return!1},this.checkShadow=function(e,a){var t=this.check(e+1,a),i=this.check(e-1,a),n=this.check(e,a-1),r=this.check(e,a+1),o=this.check(e-1,a-1),d=this.check(e+1,a-1),s=this.check(e-1,a+1),m=this.check(e+1,a+1);return!1===this.check(e,a)?!(o&&d&&m)||n||r||i||t||s?!(o&&d&&s)||i||n||r||t||m?!(m&&o&&m)||d||n||i||t||r?!(s&&d&&m)||n||r||i||t||o?t&&i?[11,12]:n&&r?[11,11]:o&&d&&s&&m?[11,12]:t&&n&&d?[13,11]:i&&n&&o?[12,11]:i&&r&&s?[12,12]:t&&r&&m?[13,12]:i&&s&&m&&!r&&!n&&!t?[12,12]:t&&s&&m&&!r&&!n&&!i?[13,12]:i&&o&&!n&&!r&&!t&&d?[12,11]:n&&!r&&d&&m&&!i&&!t?[13,11]:r&&!n&&s&&o&&!t&&!i?[12,12]:r&&!n&&!i&&!t&&d&&m?[13,12]:t&&!n&&!i&&!r&&d&&o?[13,11]:n&&!r&&!i&&s&&o&&!t?[12,11]:o&&d&&!n?[14,9]:s&&m&&!r?[14,8]:d&&m&&!t?[14,10]:o&&s&&!i?[15,10]:r&&t?[13,12]:n&&i?[12,11]:n&&t?[13,11]:r&&i?[12,12]:t?[12,10]:i?[13,10]:n?[11,10]:r?[11,9]:o?[13,9]:d?[12,9]:s?[13,8]:m?[12,8]:[0,0]:[13,12]:[12,12]:[12,11]:[13,11]:[0,0]},this.checkWireResolve=function(e,a){xAdd=8,void 0!==o.world.powerGrid&&void 0!==o.world.powerGrid[e+"-"+a]&&o.world.powerGrid[e+"-"+a][0]&&(xAdd=4),yAdd=12;var t=this.checkWire(e+1,a),i=this.checkWire(e-1,a),n=this.checkWire(e,a-1),r=this.checkWire(e,a+1);if(this.checkWire(e,a)){if(!1===t&&!1===i&&!1===n&&!1===r)return o.drawMatrix[e][a];if(t&&i&&n&&r)return[6+xAdd,4+yAdd];if(n&&r&&t)return[6+xAdd,5+yAdd];if(n&&r&&i)return[6+xAdd,6+yAdd];if(i&&n&&t)return[5+xAdd,6+yAdd];if(i&&r&&t)return[5+xAdd,5+yAdd];if(t&&i)return[4+xAdd,2+yAdd];if(n&&r)return[3+xAdd,3+yAdd];if(t&&n)return[3+xAdd,4+yAdd];if(t&&r)return[3+xAdd,2+yAdd];if(i&&n)return[5+xAdd,4+yAdd];if(i&&r)return[5+xAdd,2+yAdd];if(t)return[4+xAdd,5+yAdd];if(i)return[3+xAdd,5+yAdd];if(n)return[3+xAdd,6+yAdd];if(r)return[4+xAdd,6+yAdd]}return o.drawMatrix[e][a]},this.checkPowerWireResolve=function(e,a){xAdd=4,yAdd=12;var t=this.checkWire(e+1,a),i=this.checkWire(e-1,a),n=this.checkWire(e,a-1),r=this.checkWire(e,a+1);if(this.checkWire(e,a)){if(!1===t&&!1===i&&!1===n&&!1===r)return o.drawMatrix[e][a];if(t&&i&&n&&r)return[6+xAdd,4+yAdd];if(n&&r&&t)return[6+xAdd,5+yAdd];if(n&&r&&i)return[6+xAdd,6+yAdd];if(i&&n&&t)return[5+xAdd,6+yAdd];if(i&&r&&t)return[5+xAdd,5+yAdd];if(t&&i)return[4+xAdd,2+yAdd];if(n&&r)return[3+xAdd,3+yAdd];if(t&&n)return[3+xAdd,4+yAdd];if(t&&r)return[3+xAdd,2+yAdd];if(i&&n)return[5+xAdd,4+yAdd];if(i&&r)return[5+xAdd,2+yAdd];if(t)return[4+xAdd,5+yAdd];if(i)return[3+xAdd,5+yAdd];if(n)return[3+xAdd,6+yAdd];if(r)return[4+xAdd,6+yAdd]}return o.drawMatrix[e][a]},this.checkResolve=function(e,a){var t=this.check(e+1,a),i=this.check(e-1,a),n=this.check(e,a-1),r=this.check(e,a+1);if(this.check(e,a)){if(!1===t&&!1===i&&!1===n&&!1===r)return o.drawMatrix[e][a];if(t&&i&&n&&r)return[6,4];if(n&&r&&t)return[6,5];if(n&&r&&i)return[6,6];if(i&&n&&t)return[5,6];if(i&&r&&t)return[5,5];if(t&&i)return[4,2];if(n&&r)return[3,3];if(t&&n)return[3,4];if(t&&r)return[3,2];if(i&&n)return[5,4];if(i&&r)return[5,2];if(t)return[4,5];if(i)return[3,5];if(n)return[3,6];if(r)return[4,6]}return o.drawMatrix[e][a]},this.updateDrawTile=function(e,a){o.drawMatrix[e][a]=[4,2],o.ai.updateGrid(e,a,!1),o.render.drawTile(4,2,o.tileSize,o.tileSize,e,a),this.drawn=!1},this.calcedRooms=[],this.setCalcedRoom=function(e,a){this.calcedRooms.push([a,e])},this.showedRooms=[],this.calcAllRooms=function(){this.calcedRooms=[];for(var e=0;e<o.world.objects.length;e++)!0===o.world.objects[e].data.isDoor&&this.calcRooms(o.world.objects[e])},this.showRooms=function(){for(var e=0;e<this.calcedRooms.length;e++){room=this.calcedRooms[e],path=room[1];var a=new PIXI.Graphics;a.beginFill(255,.5),a.lineStyle(4,16767232,1),a.moveTo(o.atGridPos(path[0][0])+32,o.atGridPos(path[0][1])+32);for(var t=0;t<path.length;t++)a.lineTo(o.atGridPos(path[t][0])+32,o.atGridPos(path[t][1])+32);a.endFill(),this.showedRooms.push(a),o.render.world.addChild(a)}},this.hideRooms=function(){for(var e=0;e<this.showedRooms.length;e++)this.showedRooms[e].destroy();this.showedRooms=[]},this.calcRooms=function(e){},this.updateTile=function(e,a){o.drawMatrix[e][a]=[4,2],o.ai.updateGrid(e,a,!1),o.render.drawTile(4,2,o.tileSize,o.tileSize,e,a),this.drawn=!1,this.needRedraw=!0},this.floorTile=function(e,a,t,i){o.drawMatrix[e][a]=[t,i],o.ai.updateGrid(e,a,!0),o.render.drawTile(t,i,o.tileSize,o.tileSize,e,a),this.drawn=!1,this.needRedraw=!0},this.removeWall=function(e,a){o.drawMatrix[e][a]=[1,1],o.ai.updateGrid(e,a,!0),o.render.drawTile(1,1,o.tileSize,o.tileSize,e,a),this.drawn=!1,this.needRedraw=!0}}function Tool(e){this.name=e}function Tools(d){d.debug("Tools loading"),this.isMouseDown=!1,this.mouseDownX=0,this.direction=3,this.mouseDownY=0,this.mouseUpX=0,this.mouseUpY=0,this.activeTool="",this.toolFunctions={},this.activeMenu="",this.menuButtons=[],this.menuWindows=[],this.collisionCheckId=0,this.fullsweep=!1,this.lastsweep=!0,this.addTool=function(e){d.debug("Adding tool: "+e.name),this.tools.push(e)},this.bottomMenuOpen=function(){return 0<d.tools.menuButtons.length},this.refreshMenus=function(){d.ui.hideItemInfo(),d.tools.setActiveTool(d.tools.activeMenu)},this.closeMenus=function(){if(0<d.tools.menuButtons.length)for(var e=0;e<d.tools.menuButtons.length;e++)d.tools.menuButtons[e].destroy();if(0<d.tools.menuWindows.length)for(var a=0;a<d.tools.menuWindows.length;a++)d.tools.menuWindows[a].destroy();d.tools.menuWindows=[],d.tools.menuButtons=[],d.ui.hideItemInfo()},this.tools=[],this.activeToolIndex=-1,this.activeTool=!1,this.tick=function(){if(!1!==this.activeTool&&this.inBounds(this.mouseX,this.mouseY)&&void 0!==this.activeTool.onMouseMove)try{this.activeTool.onMouseMove(this.mouseX,this.mouseY)}catch(e){}},this.setStaffTool=function(e){var a=new Tool(e.name);a.data=e,a.createFurni=!0,a.canCommit=!0,a.onMouseDown=function(e,a){if(!d.spend(this.data.cost))return d.pooraf({data:{pay:this.data.cost},x:e,y:a}),0;d.ouching({data:{pay:this.data.cost},x:e,y:a}),life=d.ai.createLife(e,a,this.data.across,this.data.down),life.data=d.clone(this.data.data),life.data.across=this.data.across,life.data.down=this.data.down,life.data.job=this.data.name},a.onMouseMove=function(e,a){var t=this.data.down,i=0*d.tileSize,n=(t-1)*d.tileSize;e=d.atGridPos(d.gridPos(e)),a=d.atGridPos(d.gridPos(a));var r=d.tileSize,o=d.tileSize;!0===this.createFurni?(this.standArea={},this.standArea2={},this.standArea3={},this.standArea4={},this.furni=new WorldObject(e,a,d.render.newTexture(d.render.tilesets.skins,i,n,r,o)),this.furni.alpha=.5,d.render.objectLayer.addChild(this.furni),this.createFurni=!1):this.furni.texture=d.render.newTexture(d.render.tilesets.skins,i,n,r,o),this.furni.x=e,this.furni.y=a},a.onMouseUp=function(e,a){},a.deactivate=function(){void 0!==this.furni&&void 0!==this.furni.destroy&&this.furni.destroy(),this.createFurni=!0},this.activeTool=a},this.setActiveTool=function(e){d.cursorUnHide(),-1!=this.activeToolIndex&&d.tools.deactivate();for(var a=0;a<this.tools.length;a++){if(d.debug("Is "+this.tools[a].name+" === "+e),this.tools[a].name==e){this.activeToolIndex=a,this.activeTool=this.tools[a],void 0!==this.tools[a].activated&&this.tools[a].activated();break}this.activeToolIndex=-1,d.debug("Cant find tool: "+e)}},this.deactivate=function(e){void 0!==this.activeTool&&this.activeTool.deactivate(e)},this.mouseDown=function(e,a){this.inBounds(e,a)&&(this.mouseDownX=e,this.mouseDownY=a,!(this.isMouseDown=!0)!==this.activeTool&&void 0!==this.activeTool.onMouseDown&&this.activeTool.onMouseDown(e,a))},this.mouseX=0,this.mouseY=0,this.mouseMove=function(e,a){this.mouseX=e,this.mouseY=a},this.inBounds=function(e,a){return 0<e&&0<a&&e<d.mapDimension*d.tileSize&&a<d.mapDimension*d.tileSize},this.mouseUp=function(e,a){this.inBounds(e,a)&&(this.isMouseDown=!1,(d.quickRender=!1)!==this.activeTool&&void 0!==this.activeTool.onMouseUp&&this.activeTool.onMouseUp(e,a))},this.init=function(){"tablet"===d.clientMode?d.tickers.push(function(){!1!==d.tools.activeTool.moverTool&&void 0!==d.tools.activeTool.moverTool?(!0!==d.tools.activeTool.moverTool.isFloor?(d.tools.activeTool.moverTool.x=d.tools.activeTool.furni.x-10,d.tools.activeTool.moverTool.y=d.tools.activeTool.furni.y-10,d.tools.activeTool.moverTool.width=d.tools.activeTool.furni.width+20,d.tools.activeTool.moverTool.height=d.tools.activeTool.furni.height+20,d.tools.activeTool.moverTool.tickBtn.x=d.tools.activeTool.furni.x+d.tools.activeTool.furni.width+15,d.tools.activeTool.moverTool.tickBtn.y=d.tools.activeTool.furni.y-32+64,d.tools.activeTool.moverTool.cancelBtn.x=d.tools.activeTool.furni.x-32-10-20,d.tools.activeTool.moverTool.cancelBtn.y=d.tools.activeTool.furni.y-32+64,!1!==d.tools.activeTool.moverTool.rotateBtn&&(d.tools.activeTool.moverTool.rotateBtn.x=d.tools.activeTool.furni.x+d.tools.activeTool.furni.width/2-24,d.tools.activeTool.moverTool.rotateBtn.y=d.tools.activeTool.furni.y-d.tools.activeTool.furni.height/2-32)):(d.tools.activeTool.moverTool.x=d.atGridPos(d.gridPos(d.tools.activeTool.x)),d.tools.activeTool.moverTool.y=d.atGridPos(d.gridPos(d.tools.activeTool.y)),d.tools.activeTool.moverTool2.x=d.atGridPos(d.gridPos(d.tools.activeTool.moverTool.x+d.tools.activeTool.moverTool2.newX+64)),d.tools.activeTool.moverTool2.y=d.atGridPos(d.gridPos(d.tools.activeTool.moverTool.y+d.tools.activeTool.moverTool2.newY+64)),d.tools.activeTool.moverTool.tickBtn.x=d.tools.activeTool.moverTool.x-64-20,d.tools.activeTool.moverTool.tickBtn.y=d.tools.activeTool.moverTool.y,d.tools.activeTool.moverTool.cancelBtn.x=d.tools.activeTool.moverTool2.x+64+20,d.tools.activeTool.moverTool.cancelBtn.y=d.tools.activeTool.moverTool2.y),d.ui.stageMove(d.tools.activeTool.moverTool.newX,d.tools.activeTool.moverTool.newY)):d.ui.stageMove()}):(d.render.draw.plugins.interaction.on("mousemove",function(e){d.ui.mouseMove(e)}),d.render.draw.plugins.interaction.on("mousedown",function(e){d.ui.mouseDown(e)}),d.render.draw.plugins.interaction.on("mouseup",function(e){d.ui.mouseUp(e)})),d.debug("Tools loaded")}}function UI(n){(this.garbageBin=void 0)===this.garbageBin&&(this.garbageBin=document.createElement("div"),this.garbageBin.style.display="none",document.body.appendChild(this.garbageBin)),this.discardElement=function(e){this.garbageBin.appendChild(e),this.garbageBin.innerHTML=""},n.debug("UI loading"),this.mouseDownX=0,this.mouseDownY=0,this.clicked=!1,this._PADDING_SMALL=10,this._PADDING_MEDIUM=25,this._PADDING_LARGE=50,this._VIEWPORT_BOTTOM=n.render.draw.height,this._VIEWPORT_RIGHT=n.render.draw.width,this._MAX_VIEWPORT_WIDTH=960,this._MAX_VIEWPORT_HEIGHT=480,this.init=function(){this.cache={"/view_item.php":"view_item.php?v=1","/game_frame_top.php":"game_frame_top.php?v=1"}},this.render=function(e){},this.tick=function(){},this.mousePos=function(e,a,t){return{x:Math.floor(a),y:Math.floor(t)}},this.stageMousePos=function(e,a,t){var i=n.camera.scale;return{x:Math.floor(a-n.camera.offsetX)/i,y:Math.floor(t-n.camera.offsetY)/i}},this.mouseDown=function(e){var a=n.ui.mousePos(n.stageUI,e.data.global.x,e.data.global.y);a=n.render.viewport.toWorld(e.data.global.x,e.data.global.y),n.ui.mouseDownX=a.x,n.ui.mouseDownY=a.y,!1===n.ui.clicked&&n.tools.mouseDown(a.x,a.y),n.ui.clicked=!1},this.stageClick=function(e,a){n.tools.mouseDown(e,a),n.tools.mouseUp(e,a)},this.stageMove=function(e,a){void 0===e&&(e=0),void 0===a&&(a=0),n.ui.pinnedTool&&(e=n.render.viewport.left+n.render.viewport.worldScreenWidth/2+e,a=n.render.viewport.top+n.render.viewport.worldScreenHeight/2+a),n.tools.mouseMove(e,a)},this.mouseMove=function(e){n.ui.clicked=!1;var a=n.ui.mousePos(n.stageUI,e.data.global.x,e.data.global.y);a=n.render.viewport.toWorld(e.data.global.x,e.data.global.y),n.mouseX=a.x,n.mouseY=a.y,n.tools.mouseMove(a.x,a.y)},this.mouseUp=function(e){if(!1===n.ui.clicked){var a=n.ui.mousePos(n.stageUI,e.data.global.x,e.data.global.y);a=n.render.viewport.toWorld(e.data.global.x,e.data.global.y),n.tools.mouseUp(a.x,a.y)}n.ui.clicked=!1},this.purge=function(e){var a,t,i,n=e.attributes;if(n)for(a=n.length-1;0<=a;a-=1)"function"==typeof e[i=n[a].name]&&(e[i]=null);if(n=e.childNodes)for(t=n.length,a=0;a<t;a+=1)purge(e.childNodes[a])},this.rebindHover=function(e){$(e).unbind("hover"),$(e).hover(function(){n.OverGameUI=!0},function(){n.OverGameUI=!1})},this.rebindUI=function(e){$(e).draggable({cancel:".ui-window .ui-window-container"}),$("div, p").disableSelection();var t=$(".ui-window");t.click(function(){var e=$(this),a=0;t.each(function(){var e=parseInt($(this).css("z-index"),10);e=isNaN(e)?0:e,a=Math.max(a,e)}),e.css("z-index",a+1)}),$(".ui-window-top-bar h4").click(function(){max=0,parent=$(this).parent().parent(),$(".ui-window").each(function(){var e=parseInt($(this).css("z-index"),10);e=isNaN(e)?0:e,max=Math.max(max,e)}),parent.css("z-index",max+1)}),$(e).find(".x").click(function(){$(this).parent().parent().parent().css("display","none"),frame=$(this).parent().parent().parent().find("iframe")[0],frame.contentWindow.location.reload(),setTimeout(function(){frame.remove()},1e3),$(this).find(".ui-draggable").draggable("destroy"),$(this).off(),$(this).parent().parent().parent().find("*").unbind(),n.ui.purge($(this).parent().parent().parent()[0]),$(this).parent().parent().parent().remove()}),$(e).find(".x-hide").click(function(){$(this).parent().parent().parent().css("display","none")})},this.resizeFrameFromChild=function(e){var a=$(this).parent().find("#"+e);a&&(a.height="",a.height=a.contentWindow.document.body.scrollHeight+"px")},this.iframeLoaded=function(e){var a=e;a&&(a.height="",a.height=a.contentWindow.document.body.scrollHeight+"px")},this.test=function(e){el=$("#ui-window").clone(!0),el.css("display","block"),el.removeAttr("id"),void 0!==this.cache[e]&&(e=this.cache[e]),iframe=el.find("iframe"),iframe.attr("src",e),$(body).append(el),this.rebindUI(el),this.rebindHover(el)},this.transparent=function(e,a){null==document.getElementById(e)&&(el=$("#ui-window-transparent").clone(!0),el.css("display","block"),el.attr("id",e),void 0!==this.cache[a]&&(a=this.cache[a]),iframe=el.find("iframe"),iframe.attr("src",a),$("#overall").append(el),this.rebindUI(el))},this.showInfoWindow=function(){el=$("#view_item"),el.css("display","block")},$("#close-game-log").click(function(){n.ui.hideGameLog()}),this.furniWindow=function(){uiFrame=$("#furni-window"),uiFrame.css("display","block")},this.infoWindow=function(e,a){el=$("#ui-window-container"),void 0!==this.cache[a]&&(a=this.cache[a]),iframe=el.find("iframe"),iframe.attr("src",a),el.attr("id",e),$("#overall").append(el),this.rebindUI(el),this.rebindHover(el)},this.topWindow=function(e){el=$("#ui-window-info"),el.css("display","block"),void 0!==this.cache[e]&&(e=this.cache[e]),iframe=el.find("iframe"),iframe.attr("src",e),$(body).append(el),this.rebindHover(el)}}function World(d){this.currentHour=0,this.lastHour=0,this.objects=[],this.index={},this.destroyTrash=function(){this.destroyAllInIndex("trash")},this.destroyAllInIndex=function(e){for(var a in d.world.index[e])d.world.markRemoveObject(d.world.index[e][a])},this.indexCount=function(e){return null==d.world.index[e]?0:d.propCount(d.world.index[e])},this.addObject=function(e){this.objects.push(e),this.addToIndex("xyObjects",{id:d.gridPos(e.x)+"-"+d.gridPos(e.y),object:e}),!1!==e.built&&this.addToIndex(e.name,e)},this.addToIndex=function(e,a){d.debug("Adding "+a.name+" to index: "+e),void 0===this.index[e]&&(this.index[e]={}),void 0===(this.index[e][a.id]=a).indexes&&(a.indexes=[]),a.indexes.push(e)},this.sortIndex=0,this.sortWorldItems=function(){if(this.sortIndex>=d.world.objects.length)return this.sortIndex=0,!1;for(maxCount=1,i=0;i<maxCount;i++)if(item1=d.world.objects[this.sortIndex],item2=d.world.objects[this.sortIndex+1],void 0!==item1&&void 0!==item2&&(void 0!==item1.longTick&&item1.longTick(),(item2.x<item1.x||item2.y<item1.y)&&d.arrayMove(d.world.objects,this.sortIndex+1,this.sortIndex)),this.sortIndex++,this.sortIndex>=d.world.objects.length)return this.sortIndex=0,!1},this.sortWorldItemsNow=function(){for(maxCount=d.world.objects.length,i=0;i<maxCount;i++)item1=d.world.objects[this.sortIndex],item2=d.world.objects[this.sortIndex+1],void 0!==item1&&void 0!==item2&&(item2.x<item1.x||item2.y<item1.y)&&d.arrayMove(d.world.objects,this.sortIndex+1,this.sortIndex)},this.removeRemnants=function(e){if(void 0!==e.standArea&&this.tryDestroy(e.standArea),void 0!==e.standArea2&&this.tryDestroy(e.standArea2),void 0!==e.standArea3&&this.tryDestroy(e.standArea3),void 0!==e.standArea4&&this.tryDestroy(e.standArea4),void 0!==e.animRender)if(Array.isArray(e.animRender))for(var a=0;a<e.animRender.length;a++)this.tryDestroy(e.animRender[a]);else this.tryDestroy(e.animRender)},this.objectStillGood=function(e){return void 0!==e&&!e.markedForDestroy&&void 0!==e.position&&void 0!==e.x},this.tryDestroy=function(e){if(void 0===e.destroy)return!1;try{e.destroy()}catch(e){}return!0},this.emptyIndex=function(){this.index.xyObjects={}},this.finalDestroy=function(e){this.removeObject(e.id),this.removeFromAllIndexes(e,!1),this.removeRemnants(e),this.tryDestroy(e)},this.newFurniFromObject=function(e,a,t){var i=new WorldObject(a,t,d.render.newTexture(d.render.tilesets.furni,64*(e.across-1),64*(e.down-1),64,64));return i.name=e.name,i.readName=e.readName,i.height=e.height,i.width=e.width,i.data=d.clone(e.data),d.render.objectLayer.addChild(i),d.world.addObject(i),i},this.furniFromObject=function(e){var a=new WorldObject(e.x,e.y,d.render.newTexture(e.tileSetName,e.framex,e.framey,e.width,e.height));a.name=e.name,a.readName=e.readName,a.built=e.built,a.height=e.height,a.width=e.width,a.data=d.clone(e.data),a.alpha=e.alpha,d.render.objectLayer.addChild(a),d.world.addObject(a),void 0!==d.onBuildFunctions[a.data.buildFunction]&&d.onBuildFunctions[a.data.buildFunction](a)},this.quickObject=function(e,a,t,i,n,r,o){return sx=(e-1)*d.tileSize,sy=(a-1)*d.tileSize,void 0===o&&(o=d.render.tilesets.furni),object=new WorldObject(t,i,d.render.newTexture(o,sx,sy,n,r)),object.width=n,object.height=r,object},this.removeObject=function(e){for(var a=0;a<this.objects.length;a++)if(this.objects[a].id==e){this.objects.splice(a,1);break}},this.removeFromAllIndexes=function(e,a){if(void 0===a&&(a=!1),void 0!==e.indexes){if(0===e.indexes.length)return 1;for(var t=0;t<e.indexes.length;t++)this.removeFromIndex(e.indexes[t],e,a)}},this.isInIndex=function(e,a){return void 0!==this.index[e]&&void 0!==this.index[e][a.id]},this.removeFromIndex=function(e,a,t){void 0===t&&(t=!0),void 0!==this.index[e]&&void 0!==this.index[e][a.id]&&(t?this.index[e][a.id].destroy():this.index[e][a.id]="",delete this.index[e][a.id])},this.rooms=[],this.init=function(){this.currentTime=d.stats.time,d.debug("Loading world"),this.timeFunctions=[];for(var e=0;e<=23;e++)this.timeFunctions.push([]);d.debug(this.timeFunctions),d.debug("Loaded world"),d.deSpawn=new WorldObject(65,65)},this.raining=!1,this.startRain=function(){this.raining=!0,emitterContainer=new PIXI.Container,emitterContainer.displayGroup=d.render.lifeLayer,d.render.baseStage.addChild(emitterContainer),this.rain=new PIXI.particles.Emitter(emitterContainer,[d.render.cache[d.render.tilesets.rain].clone()],{alpha:{start:.5,end:.5},scale:{start:1,end:1},color:{start:"ffffff",end:"ffffff"},speed:{start:1,end:500},startRotation:{min:65,max:65},rotationSpeed:{min:0,max:0},lifetime:{min:5,max:5},blendMode:"normal",frequency:1,emitterLifetime:0,maxParticles:1e3,pos:{x:0,y:0},addAtBack:!1,spawnType:"rect",spawnRect:{x:0,y:0,w:1280,h:720}})},this.rainTick=function(){!0===d.world.raining&&this.rain.update(1)},this.distance=function(e,a,t,i){return t=t||0,i=i||0,Math.sqrt((t-e)*(t-e)+(i-a)*(i-a))},this.tick=function(){this.sortWorldItems(),this.lastHour!=this.currentHour&&(d.debug("New hour"),!0===d.started&&d.debug("Saving game"),this.lastHour=this.currentHour,this.runTimeFunctions(this.currentHour)),this.lastHour=this.currentHour},this.runTimeFunctions=function(e){for(var a=0;a<this.timeFunctions[e].length;a++)this.timeFunctions[e][a].run()},this.addTimeFunction=function(e,a,t){this.timeFunctions[e].push({time:e,name:a.id,data:a,run:t})},this.removeTimeFunction=function(e,a){for(var t=0;t<this.timeFunctions[e].length;t++)if(this.timeFunctions[e][t].name==a.id){this.timeFunctions[e].splice(t,1);break}},this.render=function(){for(var e in d.world.index.destroy)e=d.world.index.destroy[e],this.finalDestroy(e);this.rainTick(),this.tick()},this.markRemoveObject=function(e){e.built=!1,e.taken=!0,e.data={},e.markedForDestroy=!0,this.addToIndex("destroy",e)},this.rCollision=function(e,a){return void 0!==e.collisionWidth?rect1={x:e.x,y:e.y,width:e.collisionWidth,height:e.collisionHeight}:rect1=e,void 0!==a.collisionWidth?rect2={x:a.x,y:a.y,width:a.collisionWidth,height:a.collisionHeight}:rect2=a,rect1.x<rect2.x+rect2.width&&rect1.x+rect1.width>rect2.x&&rect1.y<rect2.y+rect2.height&&rect1.height+rect1.y>rect2.y}}function GameAudio(){this.lastFile="coinspin.mp3",this.playing=_SETTINGS.playAudio,this.init=function(){this.player=document.getElementById("audio"),this.bitMax=_AUDIO.length,!1===this.playing&&Howler.mute(!0)},this.loadAudio=function(e){this.bitsReady=e,this.loadBits()},this.sounds={},this.toggleAudio=function(){this.playing?this.mute():this.unMute()},this.mute=function(){this.playing=!1,Howler.mute(!0)},this.unMute=function(){this.playing=!0,Howler.mute(!1)},this.loadAudioFile=function(e,a,t,i){audio=i?new Howl({src:[game.folder+"audio/"+a],loop:!0,volume:t}):new Howl({src:[game.folder+"audio/"+a],volume:t}),audio.playOnce=function(){this.abEnded=!1,this.play()},audio.playMany=function(){this.abEnded=!1,this.play()},audio.abEnded=!1,audio.on("end",function(){this.abEnded=!0}),audio.isEnded=function(){return this.abEnded},audio.once("load",function(){game.audio.loadedFiles++,game.audio.loadedFiles===_AUDIO.length&&void 0!==game.audio.bitsReady&&(game.audio.bitsReady(),game.audio.bitsReady=void 0)}),this.sounds[e]=audio},this.loadedFiles=0,this.bitNumber=0,this.bitMax=0,this.loadLoop=function(){game.debug("Audio Bits: "+this.bitNumber),this.bitNumber<this.bitMax?(audioFile=_AUDIO[this.bitNumber],name=audioFile[0],file=audioFile[1],volume=audioFile[2],loop=audioFile[3]||!1,game.render.loadingText("Loading audio: "+name),game.audio.loadAudioFile(name,file,volume,loop),game.audio.bitNumber++):game.audio.loading=!1},this.loading=!0,this.loadBits=function(){!function e(){!0===game.audio.loading&&(game.audio.loadLoop(),window.requestAnimationFrame(e))}(),game.debug("Loading Audio Bits")}}function Saves(u){this.generateScreenshot=function(e){},this.loadCallback=void 0,this.unload=function(e){this.loadCallback=e;for(var a=0;a<u.tempObjects.length;a++)u.tempObjects[a].destroy();for(a=0;a<u.flashingLights.length;a++)u.flashingLights[a].destroy();for(a=0;a<u.rotatingLights.length;a++)u.rotatingLights[a].destroy();u.flashingLights=[],u.rotatingLights=[],u.ai.destroyAllLife();for(var t=0;t<u.world.objects.length;t++)try{u.world.markRemoveObject(u.world.objects[t])}catch(e){}u.world.render(),u.world.objects=[],u.ai.life=[],u.world.emptyIndex(),void 0!==u.saves.loadCallback&&(wait=u.saves.loadCallback())},this.save=function(){this.saveReady()},this.remoteLoad=function(){u.wmapi.plot.load(u.plotid,function(e){u.saves.load(e)})},this.remoteSave=function(e,a,t){u.wmapi.plot.save(u.plotid,e)},this.saveReady=function(){saveFile=this.createSaveFile(),u.saves.setItem(u.alias.get("saveFile"),saveFile)},this.getItem=function(e){return localStorage.getItem(u.alias.get("savePrefix")+"-"+e)||!1},this.setItem=function(e,a){return localStorage.setItem(u.alias.get("savePrefix")+"-"+e,a)},this.createSaveFile=function(){u.settings.mapDimension=u.mapDimension;var e={drawMatrix:u.drawMatrix,life:u.ai.life,objects:u.world.objects,settings:u.settings,cash:u.cash,isOpen:u.isOpen};return JSON.stringify(e)},this.saveGame=function(){this.save()},this.doSlowLoad=!1,this.slowLoad=function(e){this.doSlowLoad=e||function(){},u.render.loadQuick("Loading Data"),setTimeout(function(){u.saves.doSlowLoad(),setTimeout(u.render.hideLoad,500)},500)},this.load=function(e,a){for(var t in void 0===a&&(a=!0),"string"==typeof e&&(u.debug(e),e=JSON.parse(e)),(u.saveFile=e).items=e.objects,u.saveItems=e.items,!1!==e.settings&&void 0!==e.settings&&"false"!==e.settings&&(u.settings=u.clone(e.settings)),"string"==typeof u.saveFile.savefile&&(e=u.saveFile.savefile,e=JSON.parse(e)),(u.saveFile=e).items=e.objects,u.saveItems=e.items,u.debug("SETTINGS: "+e.settings),!1!==e.settings&&void 0!==e.settings&&"false"!==e.settings&&(u.settings=u.clone(e.settings)),void 0!==u.settings.mapDimension&&(u.mapDimension=u.settings.mapDimension,u.grid.reGrid()),null!=e.settings.level&&(u.showTut=!1,u.pickLevel(e.settings.level,!1)),!1!==e.settings&&void 0!==e.settings&&(u.settings=u.clone(e.settings)),void 0!==e.cash&&(u.cash=e.cash),null==u.settings.counters&&(u.settings.counters={}),u.settings.counters)counter=u.clone(u.settings.counters[t]),!1===counter.completed&&(upgrade=u.upgradeTemplates[t],delete u.settings.counters[t],u.counters.addCounter(upgrade.name,counter.timeLeft,upgrade.runFunction,upgrade,counter.type));for(var i=0;i<e.life.length;i++){var n=e.life[i];hasSkin=!1,across=n.data.across,down=n.data.down,female=!1,"janitor"==n.job&&(hasSkin=!0,across=0,down=0,female=!0),"manager"==n.job&&(hasSkin=!0,across=0,down=1,female=!0),"researcher"==n.job&&(hasSkin=!0,across=1,down=1),"builder"==n.job&&(hasSkin=!0,across=1,down=0),void 0!==n.data.patient&&!1===hasSkin?eLife=u.ai.createLife(n.x,n.y,n.data.body.across,n.data.body.down,!0,n.data.patient.female,n.data.body.hat,n.data.body.head,n.data.patient.rawName):eLife=u.ai.createLife(n.x,n.y,across,down,!0,female),eLife.data=u.clone(n.data),eLife.giveJob(eLife.data.job)}void 0!==e.isOpen&&(u.isOpen=e.isOpen),void 0!==e.vars&&void 0!==e.vars.drawMatrix&&(e.drawMatrix=e.vars.drawMatrix),u.drawMatrix=e.drawMatrix;for(var r=[],o=0;o<u.drawMatrix.length;o++){xMatrix=[];for(var d=0;d<u.drawMatrix[o].length;d++)3<=u.drawMatrix[d][o][0]?xMatrix.push(1):xMatrix.push(0);r.push(xMatrix)}for(i=0;i<u.ai.maxWorkers;i++)u.ai.pathFinders[i].postMessage(["creategrid",r]);for(var s in u.grid.needRedraw=!0,u.grid.drawn=!1,u.grid.drawWalls(),u.render.render(),e.objects){var m=e.objects[s];if(void 0!==m.across&&(m.framex=64*(m.across-1),m.framey=64*(m.down-1)),5==m.blocks&&(m.height=2*u.tileSize,m.width=2*u.tileSize),void 0!==m.x){var l=new WorldObject(m.x,m.y,u.render.newTexture(m.tileSetName,m.framex,m.framey,m.width,m.height));l.name=m.name,l.codename=m.codename,l.readName=m.readName,l.cost=m.cost,l.built=m.built,l.height=m.height,l.width=m.width,l.data=u.clone(m.data),l.alpha=1,l.x=m.x,l.y=m.y,l.itemid=s,l.direction=m.direction,u.render.objectLayer.addChild(l),u.world.addObject(l),!1===l.built?l.alpha=.25:(void 0!==l.data?void 0!==u.onBuildFunctions[l.data.buildFunction]?u.onBuildFunctions[l.data.buildFunction](l):void 0!==u.onBuildFunctions[l.name]?u.onBuildFunctions[l.name](l):void 0!==u.onBuildFunctions[l.codename]&&u.onBuildFunctions[l.codename](l):l.data={},u.world.defaultBuildFunction(l)),u.clearLog()}}u.render.viewport.resize(window.innerWidth,window.innerHeight,64*u.mapDimension,64*u.mapDimension),u.render.viewport.moveCorner(0,0),u.grid.needRedraw=!0,u.grid.drawn=!1,u.grid.drawWalls(),u.render.viewport.resize(window.innerWidth,window.innerHeight,64*u.mapDimension,64*u.mapDimension),u.ai.pathFinders[1].postMessage(["getgrid"])},this.loadGame=function(){u.saves.slowLoad(function(){u.saves.unload(function(){saveFile=u.saves.getItem(u.alias.get("saveFile")),u.saves.load(saveFile,!1)})})}}bootStrap.push(tool);tool=function(){game.tutStep=-1,game.endTutorial=function(){game.ui.closeTutorial(),0<game.tutStep&&game.defaultUnlocks()},game.showTutorial=function(){null!=game.ui.tuts&&(void 0===game.ui.tuts[game.tutStep]?(game.debug("Can't find tut step: "+game.tutStep),game.endTutorial()):game.ui.tuts[game.tutStep]())},game.nextTutorial=function(){game.tutStep++,game.showTutorial()},game.tut=function(e){return game.tutStep===e&&(game.nextTutorial(),!0)},game.completedTutorial=function(){text="You have completed the tutorial, you can now move on to the full game!",game.ui.notification(text,function(){game.ui.challengeMenu()})}};bootStrap.push(tool);var extend=function(){game.ai.createInteractionsIndex()};bootStrap.push(extend);extend=function(){game.ai.statuses.calc=function(e){Number.isInteger(e.calcTime)&&e.calcTime<Math.floor(Date.now()/1e3)-1&&(e.status="wait")},game.ai.statuses.arrived=function(e){e.status="wait"},game.ai.statuses.destroy=function(e){e.status="destroying",void 0!==e.tween&&e.tween.stop(),game.ai.removeLife(e.id)},game.ai.statuses.running=function(e){e.walkAlongPath()},game.ai.statuses.stationaryanim=function(e){}};bootStrap.push(extend),bootStrap.push(function(){game.checkMissionComplete=function(e){return!(!game.checkMission(e)||(void 0!==game.missions[e]?(mission=game.clone(game.missions[e]),delete game.missions[e]):mission={pay:0},game.settings.locked["challenge_"+e]=!1))},game.checkMission=function(e){return safetyReturn=!0,void 0===game.missions[e]?(game.debug("Can't check if "+e+" is complete, its undefined"),safetyReturn):void 0===game.missions[e].checkMission?(game.debug("Can't check if "+e+" is complete, its undefined, there is no checkMission function"),safetyReturn):(isComplete=game.missions[e].checkMission(),game.debug(e+" is complete: "+isComplete),isComplete)},game.pickLevel=function(e,a){if(game.resetStats(),game.needs=["pinball"],game.endTutorial(),levelLoad=e,game.debug("New level: "+e),void 0===a&&(a=!0),void 0===game.challenges[e])return game.debug("Cant find level:"+e),!1;e=game.challenges[e],game.missions={};for(var t=0;t<e.challenges.length;t++)void 0!==game.allMissions[e.challenges[t]]?(void 0!==game.settings.locked["challenge_"+e.challenges[t]]&&!0!==a||(game.settings.locked["challenge_"+e.challenges[t]]=!0),!0===game.settings.locked["challenge_"+e.challenges[t]]&&(game.allMissions[e.challenges[t]].name=e.challenges[t],game.missions[e.challenges[t]]=game.clone(game.allMissions[e.challenges[t]]))):game.debug("Can't find mission: "+e.challenges[t]);return void 0!==e.load&&a&&game.saves.slowLoad(function(){game.saves.unload(function(){e.load(a)})}),game.settings.level=levelLoad,game.ui.updateAll(),!0}});tool=function(){game.globalInventory=game.clone({items:{},addItem:function(e,a){void 0===a&&(a=1),void 0===this.items[e]&&(this.items[e]=0),this.items[e]+=a},removeItem:function(e,a){void 0===a&&(a=1),void 0===this.items[e]&&(this.items[e]=0),this.items[e]-=a},getItem:function(e){return void 0!==this.items[e]&&this.items[e]},getItems:function(){return this.items}})};bootStrap.push(tool),bootStrap.push(function(){game.counters={},game.settings.counters={},game.counters.destroy=function(e){id=e.id,game.settings.counters[id]="",delete game.settings.counters[id]},game.counters.addTimeLeft=function(e){return 0===e.timeLeft&&!1===e.completed?(e.completed=!0,void 0!==e.type&&delete game.research.researchTCounters[e.type],e.onComplete(e.passObj),game.ui.updateAll(),!0):e.completed?(game.counters.destroy(e),!0):(difference=e.start+e.timeLeft-game.timestamp(),game.play&&(e.timeLeft=e.timeLeft-(e.timeLeft-difference)*game.speed),e.start=game.timestamp(),e.timeLeft=e.timeLeft<0?0:e.timeLeft,void(e.timeString=game.stats.timeFromSeconds(e.timeLeft)))},game.counters.addPercentLeft=function(e){e.percentLeft=Math.floor(e.timeLeft/(e.len/100)),e.percentDone=100-e.percentLeft},game.counters.init=function(){void 0===game.settings.counters&&(game.settings.counters={})},game.counters.init(),game.counters.getCounter=function(e){return counter=game.settings.counters[e],null==counter?{id:e,len:0,start:0,end:0}:(game.counters.addTimeLeft(counter),game.counters.addPercentLeft(counter),game.settings.counters[counter.id]=counter,game.settings.counters[counter.id])},game.counters.getResearchTime=function(e){return(e=game.research.getResearch(e)).timeLeft},game.counters.addCounter=function(e,a,t,i,n){start=game.timestamp(),end=start+a,counter={id:e,len:a,timeLeft:a,start:start,end:end,onComplete:t,passObj:i,completed:!1,type:n},game.settings.counters[counter.id]=counter},game.research={},game.research.researchTCounters={},game.research.startResearch=function(e,a){void 0===e.time&&(e.time=500),void 0!==a&&null==game.research.researchTCounters[a]&&(game.research.researchTCounters[a]=!0,game.counters.addCounter(e.name,e.time,e.runFunction,e,a))},game.research.getResearch=function(e){return game.counters.getCounter(e.name)},game.tickers.push(function(){if(!game.settings)return!1;if(!game.settings.counters)return!1;for(var e in game.settings.counters)e=game.counters.getCounter(e)}),game.store||(game.store={}),storeStub={when:function(e){return this.item=this.items[e],this},refresh:function(){for(var e in this.items=game.store.items,this.items)e=this.items[e],add=this.get(e.name),e.owned=add.owned,e.cost=add.cost,e.owned&&e.owns(e)},approved:function(e){return this},owned:function(){return this},refunded:function(){return this},unverified:function(){return this},error:function(){return this},order:function(e){return this.items[e].owned=!0,this.items[e].complete(this.items[e]),this},register:function(){return this},get:function(e){return{cost:1.5,owned:game.saves.getItem(e)}}},"custom"==_SETTINGS.store&&(window.store=storeStub),game.store.purchase=function(e){return!!game.hasStore&&!!e&&void store.order(e)},game.store.isLocked=function(e){return game.saves.getItem(e.name)},game.store.failedPurchase=function(e){game.ui.notification("Failed to purchase")},game.store.setup=function(){if(game.hasStore=!0,window.store)for(var e in store.error(function(e){}),game.upgrades.paystore=[],game.store.items)item=game.store.items[e],item.consumable?(store.register({id:item.name,type:store.CONSUMABLE}),product=store.get(item.name),item.cost=product.cost,item.owned=product.owned,store.refresh(),store.when(item.name).approved(function(e){item.complete(e),e.finish()}).refunded(function(e){item.refund(),e.finish()}).unverified(game.store.failedPurchase).error(game.store.failedPurchase)):(store.register({id:item.name,type:store.NON_CONSUMABLE}),store.refresh(),store.when(item.name).approved(function(e){item.complete(e),e.finish()}).owned(function(e){item.owned(e),e.finish()}).refunded(item.refund).unverified(game.store.failedPurchase).error(game.store.failedPurchase)),store.refresh();else game.hasStore=!1},game.store||(game.store={}),game.store.items={adsEnabled:{name:"adsEnabled",displayName:"Disable Ads",desc:"Disable ads on the gameforever\n- Never see an advert again",price:1.99,w:64,h:64,down:4,across:28,consumable:!1,complete:function(e){game.saves.setItem(e.name,"true"),_SETTINGS.adsEnabled=!1,game.ui.showPayStore(game.store.items)},owns:function(e){_SETTINGS.adsEnabled=!1,game.saves.setItem(e.name,"true")},refund:function(e){_SETTINGS.adsEnabled=!0,game.saves.setItem(e.name,"false")}},timeTools:{name:"timeTools",displayName:"Speed up time",desc:"Full time control tools\n- You can now control the speed of the game\n- Research, customers and staff will be twice as fast",price:1.49,w:64,h:64,down:4,across:29,consumable:!1,complete:function(e){game.saves.setItem(e.name,"true"),_SETTINGS.timeToolsEnabled=!0,game.ui.showPayStore(game.store.items)},owns:function(e){_SETTINGS.timeToolsEnabled=!0,game.saves.setItem(e.name,"true")},refund:function(e){_SETTINGS.timeToolsEnabled=!1,game.saves.setItem(e.name,"false")}},extraChallenges:{name:"extraChallenges",displayName:"Bigger maps and missions",desc:"Take on the next business challenge\n- 2 Sandbox maps\n- Over 4000 tiles to build on!\n- New Super hard challenge\n- With over 20 new missions!",price:.99,w:64,h:64,down:4,across:30,consumable:!1,complete:function(e){game.saves.setItem(e.name,"true"),_SETTINGS.extraChallenges=!0,game.ui.showPayStore(game.store.items)},owns:function(e){_SETTINGS.extraChallenges=!0,game.saves.setItem(e.name,"true")},refund:function(e){_SETTINGS.extraChallenges=!1,game.saves.setItem(e.name,"false")}},fullGame:{name:"fullGame",displayName:"Full Game",desc:"Show the developer some love!\n- Get everything above!\n- All ads are disabled\n- Unlocks speed controls\n- 2 extra challenge modes\n- 20 Extra missions\n- Extra big map sizes\n- Remove premium store icon",price:3.99,w:128,h:128,down:2,across:28,consumable:!1,complete:function(e){for(var a in game.saves.setItem(e.name,"true"),_SETTINGS.fullGame=!0,game.store.items)(a=game.store.items[a]).name!=e.name&&a.complete(a);game.ui.showPayStore(game.store.items)},owns:function(e){for(var a in _SETTINGS.fullGame=!0,game.store.items)(a=game.store.items[a]).name!=e.name&&a.owns(a);game.saves.setItem(e.name,"true")},refund:function(e){for(var a in _SETTINGS.fullGame=!1,game.store.items)(a=game.store.items[a]).name!=e.name&&a.refund(a);game.saves.setItem(e.name,"false")}}},game.store.setup(),game.adNetwork={},game.p1=!1,game.adNetwork.loadVideo=function(e){if(!0===game.p1)return!1;game.p1=!0,game.ui.videoWindow=game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,3092790,1),setTimeout(function(){game.ui.videoWindow.destroy(),"function"==typeof game.ads.rewardCallback&&game.ads.rewardCallback()},5e3)},game.ads={},game.ads.loadVideo=function(e){game.ads.rewardCallback=e,game.adNetwork.loadVideo()},game.ads.loadRewardVideo=function(e){game.ads.rewardCallback=e,game.adNetwork.loadVideo()},game.ads.video=function(){if(!1===_SETTINGS.adsEnabled)return!1;game.ads.loadVideo(function(){})},game.ads.setupGD=function(){game.adNetwork.loadVideo=function(e){game.ads.rewardCallback=e,"undefined"!=typeof gdsdk&&"undefined"!==gdsdk.showAd&&gdsdk.showAd()},gdsdk.preloadAd("rewarded").then(function(){game.ads.rewardCallback}).catch(function(){})},"undefined"!=typeof gdsdk&&void 0!==gdsdk&&"gd"==_SETTINGS.adFormat&&game.ads.setupGD()}),bootStrap.push(function(){game.randomEvent={},game.activeEvent=!1,game.randomEvent.newEvent=function(){if(!game.isOpen)return!1;event=game.randomItem(game.randomEvent.events),game.activeEvent=event,game.ui.aOrBWide(event.flavour,function(){game.activeEvent.opt1(),setTimeout(function(){game.ui.notification(game.activeEvent.result1),game.activeEvent=!1},2e3)},function(){game.activeEvent.opt2(),setTimeout(function(){game.ui.notification(game.activeEvent.result2),game.activeEvent=!1},2e3)},event.opt1Text,event.opt2Text,!0)}}),bootStrap.push(function(){game.randomEvent.events={},game.randomEvent.events.rnd={flavour:"A customers birthday is coming up! We should send them a gift!",opt1Text:"Send $5,000 party voucher",opt1:function(){game.spend(5e3,"cash",!0);var e=game.rand(1,4);randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,randomer.data.holding="balloon"+e,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,randomer.data.holding="balloon"+e,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+e,randomer.data.cash=100},opt2Text:"Send $1,000 party voucher",opt2:function(){game.spend(1e3,"cash",!0),r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,randomer.data.holding="balloon"+r,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+r,randomer.data.cash=100,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.holding="balloon"+r,randomer.data.cash=100,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,randomer.data.holding="balloon"+r},result1:"A large party has just arrived at the arcade!",result2:"A small party has arrived at the arcade!"},game.randomEvent.events.rnd2={flavour:"A streamer has asked if you want to sponsor their next game stream.",opt1Text:"Sponsor for $5,000",opt1:function(){game.spend(5e3,"cash",!0);var e=game.rand(1,4);randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,randomer.data.holding="balloon"+e,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,e=game.rand(1,4),randomer=game.makeRandomer(!0)},opt2Text:"Sponsor for $1,000",opt2:function(){game.spend(1e3,"cash",!0),r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100,r=game.rand(1,4),randomer=game.makeRandomer(!0),randomer.data.cash=100},result1:"A lot of guests have just showed up at the arcade!",result2:"A few more guests have just arrived at the arcade!"}});tool=function(){game.selector=new PIXI.Graphics,game.selector.beginFill(65280,0),game.selector.lineStyle(2,16777215),game.selector.drawRect(0,0,game.tileSize,game.tileSize),game.render.lifeLayer.addChild(game.selector),game.selector.visible=!1;var e=new Tool("select");e.selectedLife=function(e){e.selected=!0,game.ui.addUI("selected-life",e,function(e){var a=e.x+16,t=e.y-16,i=0;game.ui.panel1(a,t,100,100),i+=20,game.ui.text1(e.name,a+10,t+i),i+=20,game.ui.text1("Age: "+e.age,a+10,t+i)},function(){},function(){},function(){},e.x,e.y,64,64)},e.onMouseDown=function(e){if("tablet"==game.clientMode)return!1;game.mouseDown=!0,this.mouseDownX=e.clientX,this.mouseDownY=e.clientY,gridX=game.gridPos(game.mouseX),gridY=game.gridPos(game.mouseY),tileType=game.grid.getTileType(gridX,gridY),show={},show.name="Tile: "+tileType,game.selector.x=game.atGridPos(gridX),game.selector.y=game.atGridPos(gridY),game.selector.visible=!0,game.ui.showItemInfo(show)},e.onMouseMove=function(e){game.cursorUnHide()},e.onMouseUp=function(e){game.mouseDown=!1},e.deactivate=function(e){game.selector.visible=!1},game.tools.addTool(e),game.tools.setActiveTool("select")};bootStrap.push(tool);tool=function(){var a=new Tool("markroom");a.rectangle=!1,a.mouseDown=!1,a.hoverBricks=[],a.wallHolder=function(e,a){var t=0*game.tileSize,i=6*game.tileSize,n=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.background,t,i,64,64));n.data.buildWall=!0,n.x=e,n.y=a,game.render.world.addChild(n),this.hoverBricks.push(n)},a.onMouseDown=function(e){a.mouseDown=!0,this.rectangle=new PIXI.Graphics,game.render.world.addChild(this.rectangle),this.startX=0,this.startY=0,this.endX=0,this.endY=0},a.rooms=[],a.onMouseMove=function(e,a){var t={x:e,y:a};if(!0===this.mouseDown)startX=game.atGridPos(game.gridPos(game.tools.mouseDownX)),startY=game.atGridPos(game.gridPos(game.tools.mouseDownY)),endX=game.atGridPos(game.gridPos(t.x)),endY=game.atGridPos(game.gridPos(t.y)),!1!==this.rectangle&&(this.rectangle.destroy(),this.rectangle=!1),this.rectangle=new PIXI.Graphics,this.rectangle.beginFill(16777215),this.rectangle.alpha=.2,this.rectangle.id=game.randID(),this.rectangle.drawRect(startX,startY,endX-startX,endY-startY),game.render.world.addChild(this.rectangle),game.world.removeObject(this.rectangle.id);else{for(var i=0;i<this.hoverBricks.length;i++)this.hoverBricks[i].destroy();startX=game.atGridPos(game.gridPos(game.tools.mouseDownX)),startY=game.atGridPos(game.gridPos(game.tools.mouseDownY)),endX=game.atGridPos(game.gridPos(t.x)),endY=game.atGridPos(game.gridPos(t.y)),this.wallHolder(endX,endY)}},a.onMouseUp=function(e,a){if(!0===this.mouseDown){!1!==this.rectangle&&(this.rectangle.destroy(),this.rectangle=!1),this.mouseDown=!1;var t={x:e,y:a};startX=game.atGridPos(game.gridPos(game.tools.mouseDownX)),startY=game.atGridPos(game.gridPos(game.tools.mouseDownY)),endX=game.atGridPos(game.gridPos(t.x)),endY=game.atGridPos(game.gridPos(t.y)),this.startX=startX,this.startY=startY,this.endX=endX,this.endY=endY,room=new PIXI.Graphics,this.rooms.push(room),room.beginFill(16777215),room.tint=2728872,room.alpha=1,room.id=game.randID(),room.drawRect(startX,startY,endX-startX,endY-startY),game.render.world.addChild(room)}},a.activated=function(){},a.deactivate=function(){for(var e=0;e<this.hoverBricks.length;e++)this.hoverBricks[e].destroy();!1!==this.rectangle&&(this.rectangle.destroy(),this.rectangle=!1),game.ui.markroomActive=!1;for(var a=0;a<this.rooms.length;a++)void 0!==this.rooms[a].destroy&&(this.rooms[a].visible=!1),game.world.removeObject(this.rooms[a].id);this.rooms=[]},game.tools.addTool(a)};bootStrap.push(tool);var textStyles=function(){grayText="#9b9fa5",game.render.textStyles["win-title"]={fontFamily:"Bungee",fontSize:24,fill:"#38b64d",stroke:"#1a5524",strokeThickness:4},game.render.textStyles["win-text"]={fontFamily:"Bungee",fontSize:20,fill:"#38b64d",wordWrap:!0,strokeThickness:0,wordWrapWidth:260,stroke:"#1a5524"},game.render.textStyles.time={fontFamily:"Aldrich",fontSize:24,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0},game.render.textStyles["sign-closed"]={fontFamily:"Bungee",fontSize:16,fill:"#bf4e50",strokeThickness:0},game.render.textStyles["sign-open"]={fontFamily:"Bungee",fontSize:16,fill:"#38b64d",strokeThickness:0},game.render.textStyles["happy-peeps"]={fontFamily:"Bungee",fontSize:16,fill:"#FFFFFF",strokeThickness:0,align:"left"},game.render.textStyles["menu-title-red"]={fontFamily:"Bungee",fontSize:42,fill:"#FFFFFF",padding:10,stroke:"#5c5c5c",strokeThickness:4},game.render.textStyles["menu-title-red-shadow"]={fontFamily:"Bungee",fontSize:50,fill:"#000000",padding:10,fontWeight:"bold",stroke:"#CCCCCC",strokeThickness:2},game.render.textStyles["menu-title"]={fontFamily:"Aldrich",fontSize:28,fill:"#FFFFFF",fontWeight:"bold",stroke:"#3797b5",strokeThickness:4},game.render.textStyles["standard-title"]={fontFamily:"Aldrich",fontSize:18,fill:"#FFFFFF",fontWeight:"bold",stroke:"#23272a",strokeThickness:4},game.render.textStyles["button-text-green"]={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",fontWeight:"bold",stroke:"#3797b5",strokeThickness:4},game.render.textStyles.standard={fontFamily:"Aldrich",fontSize:12,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0},game.render.textStyles.small={fontFamily:"Aldrich",fontSize:10,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0},game.render.textStyles.whiteotext={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0,wordWrap:!0,wordWrapWidth:260},game.render.textStyles["info-tagline"]={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",strokeThickness:0},game.render.textStyles["small-item-title"]={fontFamily:"Aldrich",fontSize:10,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0,wordWrap:!0,wordWrapWidth:50,align:"center"},game.render.textStyles["small-pawn-title"]={fontFamily:"Aldrich",fontSize:16,fill:"#FFFFFF",strokeThickness:0,wordWrap:!0,wordWrapWidth:100,align:"center"},game.render.textStyles["small-item-title-disabled"]={fontFamily:"Aldrich",fontSize:10,fill:grayText,fontWeight:"bold",strokeThickness:0,wordWrap:!0,wordWrapWidth:50,align:"center"},game.render.textStyles["smallish-bold"]={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",fontWeight:"bold",strokeThickness:0},game.render.textStyles.smallish={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",fontWeight:"normal",stroke:"#23272a",strokeThickness:4},game.render.textStyles["smallish-center"]={fontFamily:"Aldrich",fontSize:14,fill:"#FFFFFF",fontWeight:"normal",stroke:"#23272a",strokeThickness:4,align:"center"},game.render.textStyles.itemtitle={fontFamily:"Aldrich",fontSize:20,fill:"#00f6dd",strokeThickness:0},game.render.textStyles.cash={fontFamily:"Aldrich",fontSize:22,fill:"#2cd633",stroke:"#1a5524",strokeThickness:3},game.render.textStyles.hudcash={fontFamily:"Bungee",fontSize:22,fill:"#FFFFFF",strokeThickness:0,align:"left"},game.render.textStyles["med-cash"]={fontFamily:"Aldrich",fontSize:18,fill:"#2cd633",stroke:"#1a5524",strokeThickness:4},game.render.textStyles.smallcash={fontFamily:"Aldrich",fontSize:14,fill:"#2cd633",fontWeight:"bold",stroke:"#1a5524",strokeThickness:2},game.render.textStyles.smallpower={fontFamily:"Aldrich",fontSize:14,fill:"#ffee33",fontWeight:"bold",stroke:"#ccbb00",strokeThickness:2},game.render.textStyles.redcash={fontFamily:"Aldrich",fontSize:22,fill:"#732323",strokeThickness:0},game.render.textStyles.helptext={fontFamily:"Aldrich",fontSize:14,fill:"#000000",wordWrap:!0,wordWrapWidth:260,strokeThickness:0},game.render.textStyles.whitedesc={fontFamily:"Aldrich",fontSize:14,fill:"#ffffff",wordWrap:!0,wordWrapWidth:260,strokeThickness:0},game.render.textStyles.longerwhitedesc={fontFamily:"Aldrich",fontSize:14,fill:"#ffffff",wordWrap:!0,wordWrapWidth:600,strokeThickness:0}};bootStrap.push(textStyles),bootStrap.push(function(){game.ui.escMenuContents=[],$("#btnResume").click(function(){game.ui.closeEscMenu()}),$("#btnSave").click(function(){game.ui.closeEscMenu(),game.saves.saveGame(),game.ui.notification("Game saved!")}),$("#btnMute").click(function(){game.audio.toggleAudio(),game.audio.playing?$(this).html("Mute Audio"):$(this).html("Unmute Audio")}),$("#btnSettings").click(function(){game.ui.settingsMenu()}),$("#btnChallenges").click(function(){game.ui.closeEscMenu(),game.ui.yesno("Are you sure you wish to exit without saving?",function(){game.ui.challengeMenu(!0)},function(){},!0)}),$("#btnFullscreen").click(function(){game.render.fullscreen()}),$("#btnExit").click(function(){location.reload()}),$("#btnHelp").click(function(){game.ui.closeEscMenu(),game.ui.toggleHelp()}),game.ui.closeEscMenu=function(){$("#esc-menu").toggle()},game.ui.escMenu=function(){$("#esc-menu").toggle()}}),bootStrap.push(function(){$("[data-lang='*']"),game.ui.closeSettingsMenu=function(){$("#settings-menu").toggle(),game.ui.updateSettingsView()},game.ui.settingsMenu=function(){game.ui.updateSettingsView(),$("#settings-menu").toggle()},$("#btnExitSettings").click(game.ui.closeSettingsMenu),$("#clearLocal").click(function(){game.ui.closeSettingsMenu(),game.ui.closeEscMenu(),yes=function(){localStorage.clear(),game.reload()},no=function(){},game.ui.aOrB("Are you sure you want to delete all data?",yes,no,"yes","no",!0)}),game.ui.updateSettings=function(){!0===$("#aa1").prop("checked")?localStorage.setItem("ab-setting-antialias",!0):localStorage.setItem("ab-setting-antialias",!1),!0===$("#cs1").prop("checked")?localStorage.setItem("ab-setting-cs",!0):localStorage.setItem("ab-setting-cs",!1),!0===$("#as1").prop("checked")?localStorage.setItem("ab-setting-as",!0):localStorage.setItem("ab-setting-as",!1),game.ui.updateSettingsView()},game.ui.updateSettingsView=function(){null===localStorage.getItem("ab-setting-antialias")&&localStorage.setItem("ab-setting-antialias",!0),abSettingAntiAlias=localStorage.getItem("ab-setting-antialias"),"true"==abSettingAntiAlias?(document.getElementById("aa1").checked=!0,document.getElementById("aa2").checked=!1):(document.getElementById("aa1").checked=!1,document.getElementById("aa2").checked=!0),game.ui.refreshSettings(),null===localStorage.getItem("ab-setting-cs")&&localStorage.setItem("ab-setting-cs",!0),abSettingAntiAlias=localStorage.getItem("ab-setting-cs"),"true"==abSettingAntiAlias?(document.getElementById("cs1").checked=!0,document.getElementById("cs2").checked=!1):(document.getElementById("cs1").checked=!1,document.getElementById("cs2").checked=!0),game.ui.refreshSettings(),null===localStorage.getItem("ab-setting-as")&&localStorage.setItem("ab-setting-as",!0),abSettingAntiAlias=localStorage.getItem("ab-setting-as"),"true"==abSettingAntiAlias?(document.getElementById("as1").checked=!0,document.getElementById("as2").checked=!1):(document.getElementById("as1").checked=!1,document.getElementById("as2").checked=!0),game.ui.refreshSettings()},game.ui.refreshSettings=function(){$("input[type='radio']").checkboxradio("refresh")},$("input[type='radio']").checkboxradio(),$("input[type='radio']").on("change",game.ui.updateSettings),game.ui.updateSettingsView()}),bootStrap.push(function(){game.ui.widget={},game.ui.widget.percentBar=function(e,a,t,i){return pBar=game.render.gameSquare(0,0,e,a,3553599,1,2303786,t),pBar.filler=game.render.gameSquare(0,0,e-2*i,a-2*i,7509978,1,6719937,t),pBar.filler.width=0,pBar.filler.stickTo(pBar,i,i),pBar.setBar=function(e){p1=e*((this.width-1)/100),this.val=e,this.filler.width=p1},pBar}}),bootStrap.push(function(){game.ui.helpShowing=!1,game.ui.toggleHelp=function(e){!0!==e?$("#help-tut-only").hide():$("#help-tut-only").show(),game.ui.helpShowing?(game.render.resumeViewport(),$("#help-guide").hide(),game.ui.helpShowing=!1):(game.render.pauseViewport(),$("#help-guide").show(),game.ui.helpShowing=!0)},$("#btnExitHelp").click(game.ui.toggleHelp)}),bootStrap.push(function(){game.ee.on("hudupdate",function(){game.ui.updateAll(),setTimeout(function(){game.ui.hideItemInfo(),game.ui.watchObjectStop()},100)}),game.ui.refreshLocks=function(){0<game.ui.availablePatientsMenuContents.length&&game.ui.availablePatientsMenu(),0<game.ui.upgradeMenuContents.length&&game.ui.showUpgradeMenu(game.ui.upgradeOptions)},game.ui.updateAll=function(){if(game.ee.emit("updateall"),game.ui.hideItemInfo(),game.ui.watchObjectStop(),game.ui.mainUI(),!0!==game.started&&game.ui.hideMainUI(),game.tools.refreshMenus(),game.ui.hideItemInfo(),game.ui.hideAlmanac(),game.ui.refreshLocks(),1<game.ui.challengeMenuContents.length&&game.ui.challengeMenu(game.ui.canClose),0<game.ui.missionsMenuContents.length&&game.ui.missionsMenu(),void 0!==game.world.index.fullscreen)for(var e in game.world.index.fullscreen)try{item=game.world.index.fullscreen[e],item.height=game.ui._VIEWPORT_BOTTOM,item.width=game.ui._VIEWPORT_RIGHT}catch(e){}}});tool=function(){game.ui.largeLabel=function(e,a,t){return labelKV=game.render.text(t,"smallish-bold"),labelKV.x=e,labelKV.y=a,labelKV},game.ui.labelValue=function(e,a,t,i){return labelKV=game.render.text(t+": "+i,"smallish"),labelKV.x=e,labelKV.y=a,labelKV},game.ui.closeButton=function(e,a,t,i){sx=1344,sy=320;var n=new WorldSprite(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64));return void 0!==t&&(n.closeFunction=t),n.width=64,n.height=64,n.isInteractive(),n.displayGroup=game.render.uiLayer,void 0===i?game.render.baseStage.addChild(n):i.addChild(n),game.attachCursorEvents(n),n.on("pointerdown",function(){game.ui.clicked=!0,game.audio.sounds.blonk.playOnce(),game.ads.video(),void 0!==this.closeFunction&&this.closeFunction(),this.destroy()}),n},game.ui.greenButton=function(e,a,t,i,n,r){sw=100,sh=64,sx=1088;var o=!(sy=384);return(o=new WorldSprite(a,t,game.render.newTexture(game.render.tilesets.gui,sx,sy,sw,sh))).isInteractive(),void 0!==i&&(o.clickFunction=i,i=!1),o.width=sw,o.height=sh,game.attachCursorEvents(o),o.on("pointerdown",function(){game.audio.sounds.blonk.playOnce(),game.ads.video(),void 0!==this.clickFunction&&this.clickFunction(n)}),o.on("pointerover",function(){game.audio.sounds.tack.playOnce(),this.filters=[new PIXI.filters.OutlineFilter(2,13421772)]}),o.on("pointerout",function(){this.filters=null}),o.displayGroup=game.render.uiLayer,null==r?game.render.baseStage.addChild(o):r.addChild(o),unlockText=game.render.text(e,"button-text-green"),unlockText.x=o.x+o.width/2+2.5,unlockText.y=o.y+unlockText.height/2+5,unlockText.anchor.set(.5),unlockText.displayGroup=game.render.uiLayer,null==r?game.render.baseStage.addChild(unlockText):r.addChild(unlockText),[o,unlockText]},game.ui.bigArrow=function(e,a,t){return sx=23*game.tileSize,sy=4*game.tileSize,staticImage=new WorldSprite(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e,staticImage.y=a,staticImage.width=64,staticImage.anchor.set(.5),staticImage.height=64,staticImage.rotation=t*(Math.PI/180),game.attachCursorEvents(staticImage),staticImage},game.ui.staticIcon=function(e,a){return sx=(e-1)*game.tileSize,sy=(a-1)*game.tileSize,staticImage=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=x,staticImage.y=y,staticImage.width=64,staticImage.height=64,staticImage},game.ui.uiIcon=function(e,a){return sx=(e-1)*game.tileSize,sy=(a-1)*game.tileSize,staticImage=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=x,staticImage.y=y,staticImage.width=64,staticImage.height=64,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage},game.ui.upArrow=function(){return sx=19*game.tileSize,sy=5*game.tileSize,arrow=new WorldSprite(-10,-10,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),arrow.width=32,arrow.height=32,arrow.interactive=!0,game.attachCursorEvents(arrow),arrow},game.ui.downArrow=function(){return sx=20*game.tileSize,sy=5*game.tileSize,arrow=new WorldSprite(-10,-10,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),arrow.width=32,arrow.height=32,arrow.interactive=!0,game.attachCursorEvents(arrow),arrow},game.ui.smallLeftArrow=function(){return sx=20*game.tileSize,sy=6*game.tileSize,arrow=new WorldSprite(-10,-10,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),arrow.interactive=!0,game.attachCursorEvents(arrow),arrow},game.ui.smallRightArrow=function(){return sx=21*game.tileSize,sy=6*game.tileSize,arrow=new WorldSprite(-10,-10,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),arrow.interactive=!0,game.attachCursorEvents(arrow),arrow}};bootStrap.push(tool),bootStrap.push(function(){game.ui.almanacContents=[],game.ui.hideAlmanac=function(){for(var e=0;e<game.ui.almanacContents.length;e++)game.ui.almanacContents[e].destroy(),game.ui.almanacContents[e]=void 0;game.ui.almanacContents=[]},game.ui.canIncreaseMarketing=function(e){return!(game.ui.calcBudget()+e>game.settings.marketing.maxBudget)},game.ui.canDecreaseMarketing=function(e){return!(game.ui.calcBudget()+e>game.settings.marketing.maxBudget)},game.ui.calcBudget=function(){return 10*game.settings.marketing.custBudget+5*game.settings.marketing.decreaseRuffians+15*game.settings.marketing.increasePros},game.ui.showAlmanac=function(){game.ui.hideAlmanac(),game.ui.hideItemInfo(),void 0===game.settings.marketing&&(game.settings.marketing={},game.settings.marketing.custBudget=0,game.settings.marketing.increasePros=0,game.settings.marketing.decreaseRuffians=0,game.settings.marketing.maxBudget=250);var e=100;sx=0,sy=0,windowW=game.ui._MAX_VIEWPORT_WIDTH,windowH=game.ui._MAX_VIEWPORT_HEIGHT,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=30,x=windowX,e=windowY,0===game.ui.almanacContents.length&&(game.ui.almanacContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),game.ui.almanacContents.push(game.render.window(25,25,game.ui._VIEWPORT_RIGHT-50,game.ui._VIEWPORT_BOTTOM-50,0,.5))),windowTitle=game.render.text("Data","menu-title-red"),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=windowYTop,game.ui.almanacContents.push(windowTitle),game.render.baseStage.addChild(windowTitle),e=100,x=64,maxBudget=game.settings.marketing.maxBudget,windowText=game.render.text("Max Budget: $"+maxBudget,"standard-title"),windowText.x=x,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),e+=50,budget=game.ui.calcBudget(),windowText=game.render.text("Marketing Budget: $"+budget,"standard-title"),windowText.x=x,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),e+=50,upArrow=game.ui.upArrow(),upArrow.x=x,upArrow.y=e-25,game.render.baseStage.addChild(upArrow),upArrow.on("pointerdown",function(){game.settings.marketing.custBudget<100&&game.ui.canIncreaseMarketing(10)&&(game.settings.marketing.custBudget++,game.ui.showAlmanac())}),downArrow=game.ui.downArrow(),downArrow.x=x,downArrow.y=e+5,game.render.baseStage.addChild(downArrow),downArrow.on("pointerdown",function(){0<game.settings.marketing.custBudget&&(game.settings.marketing.custBudget--,game.ui.showAlmanac())}),game.ui.almanacContents.push(upArrow),game.ui.almanacContents.push(downArrow),windowText=game.render.text(game.settings.marketing.custBudget+"%","standard-title"),windowText.x=x+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),windowText=game.render.text("Convince customers to bring more cash (1% = $10)","standard-title"),windowText.x=x+50+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),e+=80,upArrow=game.ui.upArrow(),upArrow.x=x,upArrow.y=e-25,game.render.baseStage.addChild(upArrow),upArrow.on("pointerdown",function(){game.settings.marketing.decreaseRuffians<100&&game.ui.canIncreaseMarketing(10)&&(game.settings.marketing.decreaseRuffians++,game.ui.showAlmanac())}),downArrow=game.ui.downArrow(),downArrow.x=x,downArrow.y=e+5,game.render.baseStage.addChild(downArrow),downArrow.on("pointerdown",function(){0<game.settings.marketing.decreaseRuffians&&(game.settings.marketing.decreaseRuffians--,game.ui.showAlmanac())}),game.ui.almanacContents.push(upArrow),game.ui.almanacContents.push(downArrow),windowText=game.render.text(game.settings.marketing.decreaseRuffians+"%","standard-title"),windowText.x=x+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),windowText=game.render.text("Attract friendlier customers (1% = $5)","standard-title"),windowText.x=x+50+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),e+=80,upArrow=game.ui.upArrow(),upArrow.x=x,upArrow.y=e-25,game.render.baseStage.addChild(upArrow),upArrow.on("pointerdown",function(){game.settings.marketing.increasePros<100&&game.ui.canIncreaseMarketing(10)&&(game.settings.marketing.increasePros++,game.ui.showAlmanac())}),downArrow=game.ui.downArrow(),downArrow.x=x,downArrow.y=e+5,game.render.baseStage.addChild(downArrow),downArrow.on("pointerdown",function(){0<game.settings.marketing.increasePros&&(game.settings.marketing.increasePros--,game.ui.showAlmanac())}),game.ui.almanacContents.push(upArrow),game.ui.almanacContents.push(downArrow),windowText=game.render.text(game.settings.marketing.increasePros+"%","standard-title"),windowText.x=x+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),windowText=game.render.text("Attract experienced customers (1% = $15)","standard-title"),windowText.x=x+50+50,windowText.y=e,game.ui.almanacContents.push(windowText),game.render.baseStage.addChild(windowText),closeFunction=function(){game.ui.clicked=!0,game.ui.hideAlmanac()},game.ui.almanacContents.push(game.ui.closeButton(game.ui._VIEWPORT_RIGHT-70,30,closeFunction))}});tool=function(){game.ui.notificationContents=[],game.ui.notificationColor="red",game.ui.delayedNotification=function(e,a,t){setTimeout(function(){game.ui.notification(e,a,t)},100)},game.ui.notification=function(e,a,t){!0!==t&&game.ee.emit("hudupdate"),game.track.event("Notification",e),sx=0,"red"==game.ui.notificationColor?(sy=1344,game.ui.notificationColor="blue"):(sy=1536,game.ui.notificationColor="red");var i=game.ui._VIEWPORT_RIGHT/2-224,n=game.ui._VIEWPORT_BOTTOM/2-96;return windowX=i,windowY=n,0===game.ui.notificationContents.length?(game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8,void 0,game.render.notifications)),this.r=new WorldObject(i,n,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.notifications.addChild(this.r),game.ui.notificationContents.push(this.r),upgradeName=game.render.text(e,"helptext"),upgradeName.x=150+i,upgradeName.y=60+n,game.ui.notificationContents.push(upgradeName),game.render.notifications.addChild(upgradeName)):this.r.visible=!0,closeFunction=function(){game.play=!0,game.tut(21);for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[],void 0!==a&&a()},game.ui.notificationContents.push(game.ui.closeButton(windowX+448-25,windowY,closeFunction,game.render.notifications)),game.render.render(),game.play=!1,this.r},game.ui.confirmSpend=function(e,a,t){return spendText=0<0+a?"Are you sure you wish to spend ${price}".replace("{price}",a):"Are you sure you wish to proceed?".replace("{price}",a),game.ui.yesno(spendText,e,function(){},!1,t)},game.ui.yesno=function(e,a,t,i,n){return game.ui.aOrB(e,a,t,_LANG.YES,_LANG.NO,i,n)},game.ui.changeStage=function(){game.ee.emit("hudupdate");for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[],oui=function(){game.started=!1,game.ui.clicked=!0,game.ui.closeTutorial(),game.ui.hideItemInfo(),game.ui.challengeMenu()},nom=function(){},game.ui.yesno(_LANG.SWITCH_STAGES,oui,nom,!0)},game.ui.winStage=function(e){game.ee.emit("hudupdate");for(var a=0;a<game.ui.notificationContents.length;a++)game.ui.notificationContents[a].destroy(),game.ui.notificationContents[a]=void 0;game.ui.notificationContents=[],game.ui.closeTutorial(),game.ui.hideItemInfo(),game.settings.locked.sandbox=!1,game.settings.locked.normal=!1,game.settings.locked.super_normal=!1,game.settings.locked.easy=!1,game.track.event("Win Stage",e),sx=0,sy=1728,game.ui.notificationColor="blue";var t=game.ui._VIEWPORT_RIGHT/2-224,i=game.ui._VIEWPORT_BOTTOM/2-96;windowX=t,windowY=i,0===game.ui.notificationContents.length?(game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),this.r=new WorldObject(t,i,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.ui.notificationContents.push(this.r),innerText=game.render.text(_LANG.CHALLENGE_COMPLETE,"win-title"),innerText.x=224+t,innerText.y=32+i,innerText.anchor.set(.5),game.ui.notificationContents.push(innerText),game.render.baseStage.addChild(innerText),innerText=game.render.text(e,"win-text"),innerText.x=224+t,innerText.y=32+i+32+32,innerText.anchor.set(.5),game.ui.notificationContents.push(innerText),game.render.baseStage.addChild(innerText),closeFunction=function(){game.play=!0;for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[]},closeFunctionYes=function(){game.ui.challengeMenu(!0);for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[]},goButton=game.ui.greenButton(_LANG.CONTINUE,this.r.x+this.r.width-100,15+this.r.y+this.r.height,closeFunctionYes,level),game.ui.notificationContents.push(goButton[0]),game.ui.notificationContents.push(goButton[1]),goButton=game.ui.greenButton(_LANG.KEEP_PLAYING,this.r.x,15+this.r.y+this.r.height,closeFunction,level),game.ui.notificationContents.push(goButton[0]),game.ui.notificationContents.push(goButton[1])):this.r.visible=!0},game.ui.earntCash=function(e,a){game.tut(11),game.ee.emit("hudupdate"),game.audio.sounds.win.playOnce();for(var t=0;t<game.ui.notificationContents.length;t++)game.ui.notificationContents[t].destroy(),game.ui.notificationContents[t]=void 0;game.ui.notificationContents=[],game.ui.hideItemInfo(),game.track.event("Earnt Cash",e),sx=0,sy=1728,game.ui.notificationColor="blue";var i=game.ui._VIEWPORT_RIGHT/2-224,n=game.ui._VIEWPORT_BOTTOM/2-96;windowX=i,windowY=n,0===game.ui.notificationContents.length?(game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8,void 0,game.render.notifications)),this.r=new WorldObject(i,n,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.notifications.addChild(this.r),game.ui.notificationContents.push(this.r),innerText=game.render.text(_LANG.TASK_COMPLETE,"win-title"),innerText.x=224+i,innerText.y=32+n,innerText.anchor.set(.5),game.ui.notificationContents.push(innerText),game.render.notifications.addChild(innerText),innerText=game.render.text(_LANG.CASH_REWARD+"$"+a,"cash"),innerText.x=224+i,innerText.y=32+n+32+32,innerText.anchor.set(.5),game.ui.notificationContents.push(innerText),game.render.notifications.addChild(innerText),closeFunctionYes=function(){game.ui.clicked=!0,game.play=!0;for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[]},goButton=game.ui.greenButton(_LANG.CONTINUE,this.r.x+this.r.width-100,15+this.r.y+this.r.height,closeFunctionYes,void 0,game.render.notifications),game.ui.notificationContents.push(goButton[0]),game.ui.notificationContents.push(goButton[1])):this.r.visible=!0,game.render.render(),game.play=!1},game.ui.aOrB=function(e,a,t,i,n,r,o){!0!==o&&game.ee.emit("hudupdate"),game.track.event("a or b",e),sx=0,"red"==game.ui.notificationColor?(sy=1344,game.ui.notificationColor="blue"):(sy=1344,game.ui.notificationColor="red");var d=game.ui._VIEWPORT_RIGHT/2-224,s=game.ui._VIEWPORT_BOTTOM/2-96;windowX=d,windowY=s,0===game.ui.notificationContents.length?(game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),this.r=new WorldObject(d,s,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.notifications.addChild(this.r),game.ui.notificationContents.push(this.r),upgradeName=game.render.text(e,"helptext"),upgradeName.x=150+d,upgradeName.y=60+s,game.ui.notificationContents.push(upgradeName),game.render.notifications.addChild(upgradeName)):this.r.visible=!0,closeFunction=function(e){game.play=!0;for(var a=0;a<game.ui.notificationContents.length;a++)game.ui.notificationContents[a].destroy(),game.ui.notificationContents[a]=void 0;game.ui.notificationContents=[],void 0!==e&&e()},!(closeFunctionYes=function(e){game.play=!0;for(var a=0;a<game.ui.notificationContents.length;a++)game.ui.notificationContents[a].destroy(),game.ui.notificationContents[a]=void 0;game.ui.notificationContents=[],void 0!==e&&e()})!==r&&game.ui.notificationContents.push(game.ui.closeButton(windowX+448-25,windowY,closeFunction)),goButton=game.ui.greenButton(i,this.r.x+this.r.width-100,15+this.r.y+this.r.height,closeFunctionYes,a,game.render.notifications),game.ui.notificationContents.push(goButton[0]),game.ui.notificationContents.push(goButton[1]),goButton2=game.ui.greenButton(n,this.r.x,15+this.r.y+this.r.height,closeFunction,t,game.render.notifications),t=a=!1,game.ui.notificationContents.push(goButton2[0]),game.ui.notificationContents.push(goButton2[1]),game.render.render(),game.play=!1},game.ui.aOrBWide=function(e,a,t,i,n,r){game.ee.emit("hudupdate"),game.track.event("a or b wide",e),game.pause(),sx=0,"red"==game.ui.notificationColor?(sy=1344,game.ui.notificationColor="blue"):(sy=1344,game.ui.notificationColor="red");var o=game.ui._VIEWPORT_RIGHT/2-224,d=game.ui._VIEWPORT_BOTTOM/2-96;if(windowX=o,windowY=d,0===game.ui.notificationContents.length){var s=game.render.window(windowX-20,windowY+192,468,75,0,.8);game.ui.notificationContents.push(s);var m=game.render.text(i,"whiteotext");m.x=s.x+10,m.y=s.y+10,game.ui.notificationContents.push(m),game.render.notifications.addChild(m);var l=game.render.window(windowX-20,windowY+192+75+10,468,75,0,.8);game.ui.notificationContents.push(l);var u=game.render.text(n,"whiteotext");u.x=l.x+10,u.y=l.y+10,game.ui.notificationContents.push(u),game.render.notifications.addChild(u),game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),this.r=new WorldObject(o,d,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.notifications.addChild(this.r),game.ui.notificationContents.push(this.r),upgradeName=game.render.text(e,"helptext"),upgradeName.x=150+o,upgradeName.y=60+d,game.ui.notificationContents.push(upgradeName),game.render.notifications.addChild(upgradeName)}else this.r.visible=!0;closeFunction=function(e){game.play=!0,game.unpause();for(var a=0;a<game.ui.notificationContents.length;a++)game.ui.notificationContents[a].destroy(),game.ui.notificationContents[a]=void 0;game.ui.notificationContents=[],void 0!==e&&e()},!(closeFunctionYes=function(e){game.play=!0,game.unpause();for(var a=0;a<game.ui.notificationContents.length;a++)game.ui.notificationContents[a].destroy(),game.ui.notificationContents[a]=void 0;game.ui.notificationContents=[],void 0!==e&&e()})!==r&&game.ui.notificationContents.push(game.ui.closeButton(windowX+448-25,windowY,closeFunction)),goButton=game.ui.greenButton("Select",this.r.x+this.r.width-100-10,15+this.r.y+this.r.height+7,closeFunctionYes,a,game.render.notifications),game.ui.notificationContents.push(goButton[0]),game.ui.notificationContents.push(goButton[1]),goButton2=game.ui.greenButton("Select",this.r.x+this.r.width-100-10,15+this.r.y+this.r.height+75+10+7,closeFunction,t,game.render.notifications),t=a=!1,game.ui.notificationContents.push(goButton2[0]),game.ui.notificationContents.push(goButton2[1]),game.render.render(),game.play=!1},game.ui.largeNotification=function(e,a){game.ee.emit("hudupdate"),sx=512,sy=320,game.ui.notificationColor="blue";var t=game.ui._VIEWPORT_RIGHT/2-224,i=game.ui._VIEWPORT_BOTTOM/2-192;windowX=t,windowY=i,0===game.ui.notificationContents.length?(game.ui.notificationContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),this.r=new WorldObject(t,i,game.render.newTexture(game.render.tilesets.gui,sx,sy,448,384)),this.r.width=448,this.r.height=384,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.ui.notificationContents.push(this.r),upgradeName=game.render.text(e,"helptext"),upgradeName.x=150+t,upgradeName.y=60+i,game.ui.notificationContents.push(upgradeName),game.render.baseStage.addChild(upgradeName)):this.r.visible=!0,closeFunction=function(){game.play=!0;for(var e=0;e<game.ui.notificationContents.length;e++)game.ui.notificationContents[e].destroy(),game.ui.notificationContents[e]=void 0;game.ui.notificationContents=[],void 0!==a&&a()},game.ui.notificationContents.push(game.ui.closeButton(windowX+448-25,windowY,closeFunction)),game.render.render(),game.play=!1}};bootStrap.push(tool);tool=function(){var e,a;game.ui.pinnedTool=!1,game.ui.bottomPage=1,game.ui.resetPage=!1,e=function(e){if(this.name!==game.ui.activeToolName&&(game.ui.bottomPage=1),game.ui.activeToolName=this.name,game.tools.deactivate(e),void 0!==this.tutNumbers)for(var a=0;a<this.tutNumbers.length&&!game.tut(this.tutNumbers[a]);a++);var t,i,n,r,o,d,s,m,l=[3,4,5,6,7,8].includes(game.tutStep);if(m=function(){game.ui.clicked=!0,game.ui.showItemInfo(this.tool),menu=this.tool.submenu,menuData=game.world.objectTemplates[menu],!0!==game.settings.locked[menu]?(game.tools.activeMenu=menu,game.ui.clicked=!0,game.tools.setActiveTool(menu)):(game.ui.clicked=!0,game.ui.notification(_LANG.MUST_UNLOCK_TOOL))},t=function(){game.ui.clicked=!0,game.ui.showItemInfo(this.tool),game.tools.setFurniTool(this.tool)},i=function(){game.ui.clicked=!0,game.tools.setStaffTool(this.tool),game.ui.showItemInfo(this.tool)},n=function(){game.ui.clicked=!0,game.ui.showItemInfo(this.tool),game.tools.setSquaringTool(this.tool)},r=function(){game.ui.clicked=!0,game.ui.showItemInfo(this.tool),game.tools.setSquaringTool(this.tool)},o=function(){game.ui.clicked=!0,game.ui.showItemInfo(this.tool),game.tools.setActiveTool(this.tool.name)},d=function(){(game.ui.clicked=!0)===game.settings.locked.upgrades?game.ui.notification("You must unlock this item first"):(game.ui.upgradesPage=1,"machines"==game.ui.activeToolName||"tables"==game.ui.activeToolName?game.ui.showUpgradeMenu(game.upgradeUIOptions.suppliers):game.ui.showUpgradeMenu(game.upgradeUIOptions.research))},s=function(){game.ui.showItemInfo(this.tool)},game.ui.reShowItemInfo(),"planning"==this.name)return game.tools.setActiveTool("markroom"),!1;0<game.tools.menuButtons.length&&game.tools.closeMenus();var u=0,g=0;!0===this.rotate&&(u=game.ui._VIEWPORT_BOTTOM<600?350:270,g=game.ui._VIEWPORT_BOTTOM-260,sx=17*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(u,g,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=u+46,staticImage.y=g,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),staticImage.readName=_LANG.ROTATE,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,3<=game.tools.direction?game.tools.direction=0:game.tools.direction++}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),game.tools.menuButtons.push(staticImage)),"tablet"==game.clientMode&&(u=game.ui._VIEWPORT_BOTTOM<600?350:270,g=game.ui._VIEWPORT_BOTTOM-260,!0===game.ui.pinnedTool?sx=24*game.tileSize:sx=23*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(u,g,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.clickFunction=function(){game.ui.pinnedTool=!game.ui.pinnedTool,sy=3*game.tileSize,void 0!==game.tools.activeTool.moverTool&&(game.ui.pinnedTool?(game.tools.activeTool.moverTool2,game.tools.activeTool.moverTool.newX=0,game.tools.activeTool.moverTool.newY=0,u=game.atGridPos(game.gridPos(game.render.viewport.left+game.render.viewport.worldScreenWidth/2)),g=game.atGridPos(game.gridPos(game.render.viewport.top+game.render.viewport.worldScreenHeight/2))):(game.ui.tempUnpin=!1,void 0!==game.tools.activeTool.moverTool2?(game.tools.activeTool.moverTool.newX=game.tools.activeTool.moverTool.x,game.tools.activeTool.moverTool.newY=game.tools.activeTool.moverTool.y):void 0!==game.tools.activeTool.furni&&(game.tools.activeTool.moverTool.newX=game.atGridPos(game.gridPos(game.tools.activeTool.furni.x)),game.tools.activeTool.moverTool.newY=game.atGridPos(game.gridPos(game.tools.activeTool.furni.y))))),game.ui.pinnedTool?sx=24*game.tileSize:sx=23*game.tileSize,this.texture=game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)},game.ui.pinningTool=staticImage,game.ui.pinningTool.reset=function(){game.ui.pinningTool.clickFunction()},staticImage.x=u+46+64+10,staticImage.y=g,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),staticImage.readName=_LANG.ROTATE,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",staticImage.clickFunction),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),game.tools.menuButtons.push(staticImage)),u=game.ui._PADDING_SMALL,g=game.ui._VIEWPORT_BOTTOM-64-game.ui._PADDING_SMALL-game.ui._PADDING_SMALL;closeX=600,closeY=g-100-32,this.window=game.render.window(u,g-100-10,600,100,4079166,.99);var c=this.toolContents;game.debug("Boostrap tools UI"),u+=game.ui._PADDING_SMALL+game.ui._PADDING_SMALL+game.ui._PADDING_SMALL,g=g-100+game.ui._PADDING_SMALL;var h=7*game.ui.bottomPage,p=7*game.ui.bottomPage-7;h>c.length&&(h=c.length),1<game.ui.bottomPage&&!1===l?alpha=1:alpha=0,sx=19*game.tileSize,sy=5*game.tileSize,upArrow=new WorldObject(u,g,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),upArrow.alpha=alpha,upArrow.width=32,upArrow.height=32,upArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(upArrow),upArrow.tool=this,upArrow.x=10,upArrow.y=game.ui._VIEWPORT_BOTTOM-167,upArrow.interactive=!0,game.attachCursorEvents(upArrow),game.tools.menuButtons.push(upArrow),upArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(upArrow),alpha&&upArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.bottomPage--,this.tool.activated(game.ui.bottomPage)}),7+p<c.length&&!1===l?alpha=1:alpha=0,sx=20*game.tileSize,sy=5*game.tileSize,downArrow=new WorldObject(u,g,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),downArrow.alpha=alpha,downArrow.width=32,downArrow.height=32,downArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(downArrow),downArrow.tool=this,downArrow.x=10,downArrow.y=game.ui._VIEWPORT_BOTTOM-130,downArrow.interactive=!0,game.attachCursorEvents(downArrow),game.tools.menuButtons.push(downArrow),downArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(downArrow),1==alpha&&downArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.bottomPage++,game.tools.activeTool.name!==this.tool.name&&game.tools.activeTool.deactivate(),game.tools.setActiveTool(this.tool.name)}),u+=15;for(var f=64,b=64,w=p;w<h;w++){switch(c[w].blocks){case 1:b=f=64,sx=(c[w].across-1)*f,sy=(c[w].down-1)*game.lifeTileSize;break;case 2:f=64,b=128,sx=(c[w].across-1)*f,sy=(c[w].down-1)*game.lifeTileSize;break;case 3:b=f=192,sx=64*(c[w].across-1),sy=64*(c[w].down-1);break;case 4:f=64,b=128,sx=(c[w].across-1)*f,sy=(c[w].down-1)*game.lifeTileSize;break;case 5:b=f=128,sx=64*(c[w].across-1),sy=(c[w].down-1)*game.lifeTileSize;break;case 6:f=384,b=320,sx=64*(c[w].across-1),sy=(c[w].down-1)*game.lifeTileSize}switch(containerWindow=game.render.window(u-7.5,g+7.5,64,64),this.name){case"furni":furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.furni,sx,sy,f,b));break;case"walls":"floor"==c[w].codename?furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.background,sx,sy,f,b)):furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.furni,sx,sy,f,b));break;case"floors":furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.background,sx,sy,f,b));break;case"staff":sx=c[w].across*f,furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.skins,sx,sy,f,b)),furniView.x+=0;break;default:furniView=new WorldObject(u,g+15,game.render.newTexture(game.render.tilesets.furni,sx,sy,f,b))}switch(c[w].blocks){case 1:furniView.width=48,furniView.height=48;break;case 2:furniView.width=32,furniView.height=48,furniView.x+=8;break;case 3:furniView.width=48,furniView.height=48;break;case 4:furniView.width=32,furniView.height=48,furniView.x+=8;break;case 5:furniView.x-=8}var y;if(furniView.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(containerWindow),furniView.tool=c[w],furniView.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(furniView),furniView.interactive=!0,game.attachCursorEvents(furniView),furniView.on("pointerover",s),game.isLocked(c[w].codename))furniView.alpha=.5,y=game.render.text(c[w].readName,"small-item-title-disabled",game.render.baseStage),furniView.on("pointerdown",d);else if(y=game.render.text(c[w].readName,"small-item-title",game.render.baseStage),void 0!==c[w].submenu)furniView.on("pointerdown",m);else switch(this.name){case"furni":furniView.on("pointerdown",t);break;case"staff":furniView.on("pointerdown",i);break;case"floors":furniView.on("pointerdown",n);break;case"walls":furniView.on("pointerdown",r);break;case"planning":furniView.on("pointerdown",o);break;default:furniView.on("pointerdown",t)}y.x=u+24,y.y=g-2.5,y.anchor.set(.5,.5),game.tools.menuButtons.push(y),game.tools.menuButtons.push(furniView),game.tools.menuButtons.push(containerWindow),u+=80}game.tools.menuWindows.push(this.window),!1===l&&game.tools.menuButtons.push(game.ui.closeButton(closeX,closeY,function(){game.tools.setActiveTool("select"),game.tools.closeMenus()})),game.ui.showItemInfo(this)},a=function(e){!0===game.ui.resetPage&&(game.ui.bottomPage=1),"planning"==this.name&&game.grid.hideRooms()};for(var t=game.ui.data.menus,i=0;i<t.length;i++){var n=t[i].name,r=t[i].tools,o=new Tool(n);o.hoverBricks=[],o.toolContents=r,o.window={},o.buttons=[],o.readName=t[i].readName,o.tutNumbers=t[i].tutNumbers,o.description=t[i].description,o.rotate=t[i].rotate||!1,o.activated=e,o.deactivate=a,game.tools.addTool(o)}};bootStrap.push(tool),bootStrap.push(function(){game.ui.toggleExtra=!1,game.ui.mainUIComponents=[],game.ui.hideMainUI=function(){if(0!==game.ui.mainUIComponents.length){for(var e=0;e<game.ui.mainUIComponents.length;e++)game.ui.mainUIComponents[e].alpha=0,game.ui.mainUIComponents[e].destroy();game.ui.mainUIComponents=[]}},game.ui.showMainUI=function(){if(0!==game.ui.mainUIComponents.length){for(var e=0;e<game.ui.mainUIComponents.length;e++)game.ui.mainUIComponents[e].alpha=1;game.ui.mainUIComponents=[]}},game.ui.mainUI=function(){game.ui.hideMainUI(),game.ui.mainUIComponents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,40,_SETTINGS.ColorStyles.TopBar,1,void 0,game.render.baseStage,!1,!1));var e=5,a=50;sx=19*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainUIComponents.push(staticImage),staticImage.readName="Menu",staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),game.ui.escMenu()}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),sx=23*game.tileSize,sy=8*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=game.ui._VIEWPORT_RIGHT-120,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.GAMELOG,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),game.ui.showGameLog()}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),sx=30*game.tileSize,game.play?sy=2*game.tileSize:sy=3*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=game.ui._VIEWPORT_RIGHT-230,staticImage.y=game.ui._VIEWPORT_BOTTOM-50,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasJobs=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.UPGRADES,staticImage.interactive=!0,game.attachCursorEvents(staticImage),1===game.speed&&(staticImage.tint=65280),staticImage.on("pointerdown",function(){(game.ui.clicked=!0)===game.settings.locked.upgrades?game.ui.notification("You have not unlocked speed controls yet"):(1==game.speed&&game.play?(game.play=!1,createjs.Ticker.paused=!0):(game.play=!0,createjs.Ticker.paused=!1),game.speed=1,game.ui.mainUI())}),sx=31*game.tileSize,sy=2*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=game.ui._VIEWPORT_RIGHT-180,staticImage.y=game.ui._VIEWPORT_BOTTOM-50,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasJobs=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.UPGRADES,staticImage.interactive=!0,game.attachCursorEvents(staticImage),2===game.speed&&(staticImage.tint=65280),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.upgrades?game.ui.notification("You have not unlocked speed controls yet"):(game.speed=2,game.ui.mainUI())}),_SETTINGS.hidePremium||(sx=32*game.tileSize,sy=2*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,96,64)),staticImage.x=game.ui._VIEWPORT_RIGHT-110,staticImage.y=game.ui._VIEWPORT_BOTTOM-50,staticImage.width=96,staticImage.height=64,3===game.speed&&(staticImage.tint=65280),!1===_SETTINGS.timeToolsEnabled&&(staticImage.alpha=.2),staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasJobs=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.UPGRADES,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.upgrades||!1===_SETTINGS.timeToolsEnabled?game.ui.notification("You must unlock this speed from the premium store!"):(game.speed=3,game.ui.mainUI())})),sx=19*game.tileSize,sy=4*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e+80,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasJobs=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.UPGRADES,staticImage.interactive=!0,game.attachCursorEvents(staticImage),!0===game.settings.locked.jobs&&(staticImage.alpha=.5),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.jobs?game.ui.notification("You have not unlocked upgrades yet"):(game.ui.upgradesPage=1,game.ui.showUpgradeMenu(game.upgradeUIOptions.jobs))}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),sx=18*game.tileSize,sy=4*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e+80+80,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasResearch=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=game.upgradeUIOptions.research.title,staticImage.interactive=!0,game.attachCursorEvents(staticImage),!0===game.settings.locked.research&&(staticImage.alpha=.5),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.research?game.ui.notification("You have not unlocked research yet"):(game.tut(16),game.ui.upgradesPage=1,game.ui.showUpgradeMenu(game.upgradeUIOptions.research))}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),sx=18*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e+80+80+80,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasSuppliers=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=game.upgradeUIOptions.suppliers.title,staticImage.interactive=!0,game.attachCursorEvents(staticImage),!0===game.settings.locked.suppliers&&(staticImage.alpha=.5),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.suppliers?game.ui.notification("You have not unlocked upgrades yet"):(game.ui.upgradesPage=1,game.ui.showUpgradeMenu(game.upgradeUIOptions.suppliers),game.tut(19))}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),_SETTINGS.paystoreEnabled&&!_SETTINGS.hidePremium&&(sx=29*game.tileSize,sy=2*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e+80+80+80+80,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.extrasSuppliers=staticImage,game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.UPGRADES,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),game.ui.payStorePage=1,game.ui.showPayStore(game.store.items)}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)})),a+=74,sx=21*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e,staticImage.y=a,missionsY=staticImage.y,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),!0===game.settings.locked.missions&&(staticImage.alpha=.5),game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.MISSIONS,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.missions?game.ui.notification("You have not unlocked missions yet"):(game.ui.missionsMenu(),game.tut(10),game.tut(25))}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),a+=74,sx=20*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=e,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),!0===game.settings.locked.hire_staff&&(staticImage.alpha=.5),game.ui.mainUIComponents.push(staticImage),staticImage.readName=_LANG.STAFF,staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.ui.showItemInfo(this),!0===game.settings.locked.hire_staff?game.ui.notification("You have not unlocked hiring staff yet"):game.ui.availablePatientsMenu()}),staticImage.on("pointerover",function(){game.ui.showItemInfo(this)});var t,i,n=game.ui.data.menus;game.debug("Boostrap tools UI"),t=function(){!0!==game.settings.locked[this.toolName]?(game.tools.activeMenu=this.toolName,game.ui.clicked=!0,game.tools.setActiveTool(this.toolName)):(game.ui.clicked=!0,game.ui.notification(_LANG.MUST_UNLOCK_TOOL))},e=game.ui._PADDING_SMALL-5,a=game.ui._VIEWPORT_BOTTOM-64-game.ui._PADDING_SMALL,i=function(){game.ui.showItemInfo(this)};for(var r=0;r<n.length;r++)menu=n[r],!0!==menu.submenu&&(sx=(menu.across-1)*game.tileSize,sy=(menu.down-1)*game.tileSize,genToolButton=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),genToolButton.x=e,genToolButton.y=a,genToolButton.interactive=!0,game.attachCursorEvents(genToolButton),genToolButton.toolName=menu.name,genToolButton.readName=menu.readName,!0===game.settings.locked[genToolButton.toolName]&&(genToolButton.alpha=.5),genToolButton.on("pointerdown",t),genToolButton.on("pointerover",i),genToolButton.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(genToolButton),game.ui.mainUIComponents.push(genToolButton),e+=70);e=10,a=8,game.ui.cash=game.render.text("0","hudcash",game.render.baseStage),game.ui.cash.x=e,game.ui.cash.y=a,game.ui.cash.interactive=!0,game.attachCursorEvents(game.ui.cash),game.ui.cash.readName=_LANG.CASH,game.ui.cash.on("pointerover",function(){game.ui.showItemInfo(this)}),game.ui.cash.on("pointerup",function(){game.ui.showItemInfo(this)}),e=game.ui._VIEWPORT_RIGHT-50,a=52,sx=26*game.tileSize,sy=6*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,40,40)),staticImage.x=e,staticImage.y=a,staticImage.width=40,staticImage.height=40,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainUIComponents.push(staticImage),staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked||(game.ui.clicked=!0,game.render.viewport.zoom(-500,!0))}),staticImage.readName=_LANG.ZOOMIN,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),a+=45,sx=25*game.tileSize,sy=6*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,40,40)),staticImage.x=e,staticImage.y=a,staticImage.width=40,staticImage.height=40,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainUIComponents.push(staticImage),staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked||(game.ui.clicked=!0,game.render.viewport.zoom(500,!0))}),staticImage.readName=_LANG.ZOOMOUT,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),"tablet"!==game.clientMode&&(a+=37,sx=15*game.tileSize,sy=5*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),staticImage.x=e,staticImage.y=a,staticImage.width=32,staticImage.height=32,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainUIComponents.push(staticImage),staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,game.render.fullscreen(),game.tut(1)}),game.ui.fullScreenButton=staticImage,staticImage.readName=_LANG.FULLSCREEN,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)})),!1===game.settings.locked.missions&&(a=missionsY+42,e=70,sx=31*game.tileSize,sy=5*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),staticImage.x=e-32,staticImage.y=a,staticImage.width=32,staticImage.height=32,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.missionCountText=game.render.text("0","small"),game.ui.missionCountText.x=staticImage.x+17,game.ui.missionCountText.y=staticImage.y+15,game.ui.missionCountText.anchor.set(.5),game.ui.mainUIComponents.push(game.ui.missionCountText),game.render.baseStage.addChild(game.ui.missionCountText),game.ui.mainUIComponents.push(staticImage)),a=-10,sx=17*game.tileSize,sy=0*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,128,64)),staticImage.readName=_LANG.LEAVERSHAPPY,staticImage.interactive=!0,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),staticImage.on("pointerdown",function(){game.ui.showItemInfo(this)}),staticImage.width=128,staticImage.height=64,staticImage.x=214,staticImage.y=a,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.happyPeeps=game.render.text("0","happy-peeps"),game.ui.happyPeeps.x=staticImage.x+45,game.ui.happyPeeps.y=staticImage.y+22,game.render.baseStage.addChild(game.ui.happyPeeps),game.ui.mainUIComponents.push(staticImage),game.ui.mainUIComponents.push(game.ui.happyPeeps),a=-10,sx=19*game.tileSize,sy=0*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.readName=_LANG.MAX_PEEPS,staticImage.interactive=!0,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),staticImage.on("pointerdown",function(){game.ui.showItemInfo(this)}),staticImage.width=64,staticImage.height=64,staticImage.x=314,staticImage.y=a,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.maxPeeps=game.render.text("0","happy-peeps"),game.ui.maxPeeps.x=staticImage.x+50,game.ui.maxPeeps.y=game.ui.happyPeeps.y,game.render.baseStage.addChild(game.ui.maxPeeps),game.ui.mainUIComponents.push(staticImage),game.ui.mainUIComponents.push(game.ui.maxPeeps),a=-10,sx=22*game.tileSize,sy=0*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.readName="Power",staticImage.interactive=!0,staticImage.on("pointerover",function(){game.ui.showItemInfo(this)}),staticImage.on("pointerdown",function(){game.ui.showItemInfo(this)}),staticImage.width=64,staticImage.height=64,staticImage.x=414,staticImage.y=a-2.5,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.elecImage=staticImage,game.ui.elecUnits=game.render.text("000000","happy-peeps"),game.ui.elecUnits.x=staticImage.x+40,game.ui.elecUnits.y=game.ui.happyPeeps.y,game.render.baseStage.addChild(game.ui.elecUnits),game.ui.mainUIComponents.push(staticImage),game.ui.mainUIComponents.push(game.ui.elecUnits),this.timeText=game.render.text(game.stats.makeTime(this.gameTime),"time",game.render.uiLayer),this.timeText.x=e-40,this.timeText.anchor.set(.5,.5),this.timeText.y=40,this.timeText.alpha=0,game.ui.mainUIComponents.push(this.timeText),game.ui.mainUIComponents.push(game.ui.cash),maxPeeps=game.propCount(game.world.index.pinball)+game.propCount(game.world.index.arcade),game.ui.cash.text=" "+game.cash,game.ui.happyPeeps.text=game.settings.happyPeeps+"%",game.ui.maxPeeps.text=""+maxPeeps,game.ui.timeText.text=game.stats.makeTime(game.stats.gameTime),game.ui.updateHud()},game.ui.updateHud=function(){void 0!==game.settings.level&&void 0!==game.ui.cash&&(maxPeeps=game.maxCustomers,void 0===game.world.index.customer?customerCount=0:customerCount=game.propCount(game.world.index.customer),game.ui.cash.text="$"+game.fCash(game.cash),game.ui.happyPeeps.text=Math.round(game.settings.happyPeeps)+"%",game.ui.maxPeeps.text=customerCount+"/"+maxPeeps,game.ui.timeText.text=game.stats.makeTime(game.stats.gameTime),game.ui.elecUnits.text=game.elecUsed+"/"+game.elecUnits,(game.elecUsed>game.elecUnits||!1===game.hasPower)&&(game.ui.elecImage.tint=16711680,game.hasPower?(game.hasPower=!1,game.ui.notification("The power has turned off due to overload!\n\nAdd more power and turn it back on in manager tasks quickly!")):game.hasPower=!1),5<game.propCount(game.missions)?missionCount=5:missionCount=game.propCount(game.missions),void 0!==game.ui.missionCountText&&(game.ui.missionCountText.text=missionCount))},game.tickers.push(game.ui.updateHud)}),bootStrap.push(function(){game.ui.showItemInfoItems=[],game.ui.hideItemInfo=function(){for(var e=0;e<game.ui.showItemInfoItems.length;e++)game.ui.showItemInfoItems[e].destroy();game.ui.showItemInfoItems=[]},game.ui.itemShowing={},game.ui.reShowItemInfo=function(){game.ui.showItemInfo(game.ui.itemShowing)},game.ui.showItemInfo=function(e){var a,t;game.ui.watchObjectStop(),game.ui.hideItemInfo(),game.ui.itemShowing=e,a=game.ui._VIEWPORT_BOTTOM<600?85:10,t=game.tools.bottomMenuOpen()?game.ui._VIEWPORT_BOTTOM-300:game.ui._VIEWPORT_BOTTOM-200,game.ui.showInfoWindow=game.render.window(a,t,300,100,3618615,1,void 0,game.render.behindGameGUI),game.debug("Boostrap tools UI"),a+=game.ui._PADDING_SMALL,t+=game.ui._PADDING_SMALL,b=0,blocks=[],blocks.push(game.render.text(e.readName,"itemtitle",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,void 0!==e.cost&&0!==e.cost&&(a+=blocks[b].width+10,b++,blocks.push(game.render.text("$"+e.cost,"cash",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,a-=blocks[b-1].width+10),b++,t+=25,null!==e.name&&(blocks.push(game.render.text("[Type: "+e.name+"/"+e.codename+"]","smallish",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,t+=35,b++),void 0!==e.data&&void 0!==e.data.pay&&0!==e.data.pay&&(blocks.push(game.render.text("Pays: $"+e.data.pay,"smallcash",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,b++,a+=100),void 0!==e.data&&void 0!==e.data.elecUnits&&(blocks.push(game.render.text("Power: -"+e.data.elecUnits,"smallpower",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,a-=blocks[b-1].width+10,b++),void 0!==e.data&&void 0!==e.data.powerUnits&&(blocks.push(game.render.text("Power: +"+e.data.powerUnits,"smallpower",game.render.behindGameGUI)),blocks[b].x=a,blocks[b].y=t,a-=blocks[b-1].width+10,b++),game.ui.showItemInfoItems=blocks,game.ui.showItemInfoItems.push(game.ui.showInfoWindow),blocks=[]},game.ui.watchingObject=!1,game.ui.watchingBox=!1,game.ui.watcherContainer=[],game.ui.updateCounter=0,game.ui.watchObject=function(e){game.ui.showItemInfo(e),game.ui.watchObjectStop(),game.ui.watchingObject=e,game.ui.watchingBox=game.render.window(0,0,e.width,e.height,0,0,2,game.render.lifeLayer),game.ui.watchingBox.stickTo(e),staticImage=game.render.window(game.ui.showInfoWindow.x,game.ui.showInfoWindow.y-game.ui.showInfoWindow.height,game.ui.showInfoWindow.width,2*game.ui.showInfoWindow.height,3618615,1,void 0,game.render.behindGameGUI),staticImage.stickTo(game.ui.showInfoWindow,0,-game.ui.showInfoWindow.height),tagline=game.render.text("info","info-tagline",game.render.behindGameGUI),tagline.x=100,tagline.y=100,game.ui.watcherContainer.push(tagline),tagline.stickTo(staticImage,10,10),game.ui.tagline=tagline,pad=2,width=100,height=15,offsetX=10,offsetY=40,offsetIncrement=40,barY=30,sx=25*game.tileSize,sy=9*game.tileSize,game.ui.watchingCash=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),game.render.behindGameGUI.addChild(game.ui.watchingCash),game.ui.watchingCash.stickTo(staticImage,5,30),game.ui.watcherContainer.push(game.ui.watchingCash),sx=26*game.tileSize,sy=9*game.tileSize,game.ui.watchingPower=new WorldSprite(x,y+32,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),game.render.behindGameGUI.addChild(game.ui.watchingPower),game.ui.watchingPower.alpha=0,sx=27*game.tileSize,sy=7*game.tileSize,game.ui.watchingSell=new WorldSprite(x,y+32,game.render.newTexture(game.render.tilesets.gui,sx,sy,40,40)),game.render.behindGameGUI.addChild(game.ui.watchingSell),game.ui.watchingSell.alpha=0,game.ui.watchingSell.isInteractive(),game.attachCursorEvents(game.ui.watchingSell),game.ui.watchingSell.on("pointerdown",function(){game.ui.yesno("Are you sure you wish to sell this item? You will get $"+game.ui.watchingSellObject.cost/2+" in return",function(){game.gain(game.ui.watchingSellObject.cost/2),game.kaching(game.ui.watchingSellObject),game.world.markRemoveObject(game.ui.watchingSellObject)},function(){},!0)}),game.ui.watchingSell.stickTo(staticImage,staticImage.width-50,10),game.ui.watchingPower.stickTo(staticImage,5,30),game.ui.watcherContainer.push(game.ui.watchingPower),game.ui.cashText=game.render.text("$0","small",game.render.behindGameGUI),game.ui.watcherContainer.push(game.ui.cashText),game.ui.cashText.stickTo(staticImage,50,35),game.ui.percentBar1=game.ui.widget.percentBar(width,height,game.render.behindGameGUI,pad),game.ui.percentBar2=game.ui.widget.percentBar(width,height,game.render.behindGameGUI,pad),game.ui.percentBar3=game.ui.widget.percentBar(width,height,game.render.behindGameGUI,pad),game.ui.percentBar4=game.ui.widget.percentBar(width,height,game.render.behindGameGUI,pad),barOffsetX=32,barOffsetY=32,game.ui.percentBar1.stickTo(staticImage,offsetX+barOffsetX,barY+offsetY),game.ui.percentBar2.stickTo(staticImage,offsetX+barOffsetX,barY+offsetY+1*offsetIncrement),game.ui.percentBar3.stickTo(staticImage,offsetX+barOffsetX,barY+offsetY+2*offsetIncrement),game.ui.percentBar4.stickTo(staticImage,offsetX+barOffsetX,barY+offsetY+3*offsetIncrement),sx=25*game.tileSize,sy=10*game.tileSize,game.ui.percentBar1Text=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),game.render.behindGameGUI.addChild(game.ui.percentBar1Text),sx=26*game.tileSize,sy=10*game.tileSize,game.ui.percentBar2Text=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),game.render.behindGameGUI.addChild(game.ui.percentBar2Text),sx=27*game.tileSize,sy=10*game.tileSize,game.ui.percentBar3Text=new WorldSprite(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,32,32)),game.render.behindGameGUI.addChild(game.ui.percentBar3Text),game.ui.percentBar4Text=game.render.text("info","small",game.render.behindGameGUI),barOffsetY=26,game.ui.percentBar1Text.stickTo(staticImage,offsetX,offsetY+barOffsetY),game.ui.percentBar2Text.stickTo(staticImage,offsetX,offsetY+1*offsetIncrement+barOffsetY),game.ui.percentBar3Text.stickTo(staticImage,offsetX,offsetY+2*offsetIncrement+barOffsetY),game.ui.percentBar4Text.stickTo(staticImage,offsetX,offsetY+3*offsetIncrement+barOffsetY),game.ui.watcherContainer.push(game.ui.percentBar1),game.ui.watcherContainer.push(game.ui.percentBar2),game.ui.watcherContainer.push(game.ui.percentBar3),game.ui.watcherContainer.push(game.ui.percentBar4),game.ui.watcherContainer.push(game.ui.percentBar1Text),game.ui.watcherContainer.push(game.ui.percentBar2Text),game.ui.watcherContainer.push(game.ui.percentBar3Text),game.ui.watcherContainer.push(game.ui.percentBar4Text),game.ui.percentBar1.alpha=0,game.ui.percentBar2.alpha=0,game.ui.percentBar3.alpha=0,game.ui.percentBar4.alpha=0,game.ui.percentBar1Text.alpha=0,game.ui.percentBar2Text.alpha=0,game.ui.percentBar3Text.alpha=0,game.ui.percentBar4Text.alpha=0,game.ui.updateCounter=61,game.ui.updateWatchedObject()},game.ui.updateWatchedObject=function(){try{x=game.ui.watchingObject.x}catch(e){return game.ui.watchingObject=!1,game.ui.watchObjectStop(),!1}return!1!==game.ui.watchingObject&&(game.ui.updateCounter++,game.ui.watchingObject,Life,!(game.ui.updateCounter<60)&&(game.ui.updateCounter=0,object=game.ui.watchingObject,object instanceof Life&&(game.ui.watchingSell.isInteractive(!1),null==object.job||"customer"==object.job?(game.ui.tagline.text="Wants: "+object.data.need,game.ui.cashText.text="$"+object.data.cash,game.ui.percentBar1.alpha=1,game.ui.percentBar1Text.alpha=1,game.ui.percentBar2.alpha=1,game.ui.percentBar2Text.alpha=1,game.ui.percentBar3.alpha=1,game.ui.percentBar3Text.alpha=1,game.ui.percentBar1.setBar(object.data.happiness),game.ui.percentBar2.setBar(object.data.hunger),game.ui.percentBar3.setBar(object.data.toilet),game.ui.percentBar4.alpha=0,game.ui.percentBar4Text.alpha=0):(game.ui.cashText.alpha=0,game.ui.watchingCash.alpha=0,game.ui.tagline.text="Jobs Count: "+object.jobs.length+"\nX :"+object.x+" Y:"+object.y+"\nStatus: "+object.status+"\nJob: "+object.data.job)),void(object instanceof WorldObject&&(a=null==object.taken||!1===object.taken?"No":"Yes",void 0!==object.data.earnings?"\nEarnings: $"+object.data.earnings:"",void 0!==object.data.pay?pay="\nPays: $"+object.data.pay:pay="",e=void 0!==object.data.earnings?"\nEarnings: $"+object.data.earnings:"",t=void 0!==object.data.elecUnits?"\nPower Units: "+object.data.elecUnits:"",i=void 0!==object.data.powerUnits?"\nPower Units: "+object.data.powerUnits:"",void 0!==object.takenTime?takenT="\nTaken Time: "+(game.timestamp()-object.takenTime):takenT="",0<object.cost&&(game.ui.watchingSell.isInteractive(!0),game.ui.watchingSellObject=object,game.ui.watchingSell.alpha=1),game.ui.tagline.text="Staff Jobs: "+object.jobCount+"\nName: "+object.name+"/"+object.codename+"\nTaken: "+a+"\nID: "+object.id+e+pay+t+i+takenT,game.ui.watchingCash.alpha=0,game.ui.cashText.alpha=0))));var e,a,t,i},game.ui.watchObjectStop=function(){try{void 0!==game.ui.watchingBox&&void 0!==game.ui.watchingBox.destroy&&null!==game.ui.watchingBox&&0<game.ui.watchingBox.x&&(game.ui.watchingBox.destroy(),game.ui.watchingBox=!1);for(var e=0;e<game.ui.watcherContainer;e++)game.ui.watcherContainer.destroy();game.ui.watcherContainer=[],game.ui.watchingObject=!1}catch(e){}},game.tickers.push(game.ui.updateWatchedObject)});tool=function(){game.ui.upgradeMenuContents=[],game.ui.upgradesPage=1,game.ui.closeUpgradesMenu=function(){for(var e=0;e<game.ui.upgradeMenuContents.length;e++)game.ui.upgradeMenuContents[e].destroy(),game.ui.upgradeMenuContents[e]=void 0;game.ui.upgradeMenuContents=[],game.ui.upgradeMenuOpen=!1},game.ui.upgradeOptions=!1,game.ui.showUpgradeMenu=function(e){null==e&&(e=!1===game.ui.upgradeOptions?{unlocks:game.upgrades.research,goText:"Research",title:"Research",maxCols:Math.floor(game.ui._VIEWPORT_RIGHT/450)}:game.ui.upgradeOptions),game.ui.upgradeOptions=e,game.ui.closeUpgradesMenu(),game.ui.hideItemInfo();var a=100,t=1,i=1;sx=0,sy=0,game.ui.upgradeMenuOpen=!0,windowW=game.ui._VIEWPORT_RIGHT,windowH=game.ui._VIEWPORT_BOTTOM,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=windowY,x=windowX,a=windowY;var n=[17,20,19].includes(game.tutStep);if(0===game.ui.upgradeMenuContents.length){windowTitle=game.render.text(e.title,"menu-title-red"),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=windowYTop+40+10,game.ui.upgradeMenuContents.push(game.render.statsBackPane(void 0,.8)),yArrow=25,xArrow=50,this.r=new WorldObject(x,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,t,i)),this.r.width=t,this.r.height=i,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.ui.upgradeMenuContents.push(this.r),game.render.baseStage.addChild(windowTitle),game.ui.upgradeMenuContents.push(windowTitle);var r=1,o=x+25,d=windowYTop+60+40,s=420;2===e.maxCols&&(s=305),1===e.maxCols&&(pad=80,s=game.ui._VIEWPORT_RIGHT-2*pad);var m=e.maxCols,l=Math.ceil((game.ui._VIEWPORT_BOTTOM-300)/150);l<1&&(l=1),m<1&&(m=1);var u,g=game.ui._VIEWPORT_RIGHT/2-m*s/2,c=Math.floor(m*l),h=game.ui.upgradesPage*c,p=game.ui.upgradesPage*c-c;h>e.unlocks.length&&(h=e.unlocks.length),1<game.ui.upgradesPage?alpha=1:alpha=0,sx=20*game.tileSize,sy=6*game.tileSize,a=x=10,upArrow=new WorldObject(x,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),upArrow.alpha=alpha,upArrow.width=64,upArrow.height=64,upArrow.displayGroup=game.render.uiLayer,game.render.gameGUI.addChild(upArrow),upArrow.x=1,upArrow.y=game.ui._VIEWPORT_BOTTOM-65,upArrow.interactive=!0,game.attachCursorEvents(upArrow),game.ui.upgradeMenuContents.push(upArrow),upArrow.displayGroup=game.render.uiLayer,game.render.gameGUI.addChild(upArrow),1<game.ui.upgradesPage&&upArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.upgradesPage--,game.ui.closeUpgradesMenu(),game.ui.showUpgradeMenu()}),p+c<e.unlocks.length?alpha=1:alpha=0,n&&(alpha=0),sx=21*game.tileSize,sy=6*game.tileSize,downArrow=new WorldObject(x,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),downArrow.alpha=alpha,downArrow.width=64,downArrow.height=64,downArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(downArrow),downArrow.x=game.ui._VIEWPORT_RIGHT-60,downArrow.y=game.ui._VIEWPORT_BOTTOM-65,downArrow.interactive=!0,game.attachCursorEvents(downArrow),game.ui.upgradeMenuContents.push(downArrow),downArrow.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(downArrow),p+c<e.unlocks.length&&downArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.upgradesPage++,game.ui.closeUpgradesMenu(),game.ui.showUpgradeMenu()}),x+=15,i=t=64,p+c<game.propCount(game.challenges)?alpha=1:alpha=0,n&&(alpha=0),x=o+g,a=d,u=function(){if(game.ui.clicked=!0,game.cash<this.upgrade.cost)game.ui.notification(_LANG.CANT_AFFORD);else{if(game.track.event("Upgrade",this.upgrade.readName),!game.spend(this.upgrade.cost))return game.pooraf({data:{pay:this.upgrade.cost},x:this.x,y:this.y}),0;game.ui.purchaseItem=this.upgrade,game.ui.purchase=function(){void 0!==game.ui.purchaseItem.preFunction&&game.ui.purchaseItem.preFunction(),game.settings.locked["upgrade-"+game.ui.purchaseItem.name]=!1,game.research.startResearch(game.ui.purchaseItem,e.name),game.ouching({data:{pay:game.ui.purchaseItem.cost},x:game.ui.purchaseItem.x,y:game.ui.purchaseItem.y}),game.ui.updateAll(),game.ui.showUpgradeMenu()},game.ui.confirmSpend(game.ui.purchase,game.ui.purchaseItem.cost,!0)}};for(var f=p;f<h;f++){upgrade=e.unlocks[f],game.ui.upgradeMenuContents.push(game.render.window(x,a+40,64,64,0,.5)),sx=64*(upgrade.across-1),sy=64*(upgrade.down-1),tileset=upgrade.tileset?upgrade.tileset:"gui",upgrade.w=upgrade.w?upgrade.w:64,upgrade.h=upgrade.h?upgrade.h:64,upgradeIcon=new WorldObject(x,a,game.render.newTexture(game.render.tilesets[tileset],sx,sy,upgrade.w,upgrade.h)),upgradeIcon.x=x,upgradeIcon.y=a+40,64<upgrade.h?(upgradeIcon.width=32,upgradeIcon.height=64,upgradeIcon.x=upgradeIcon.x+16):(upgradeIcon.width=64,upgradeIcon.height=64),64<upgrade.w&&(upgradeIcon.width=64,upgradeIcon.x=upgradeIcon.x-16,upgradeIcon.y=upgradeIcon.y);var b=game.render.window(x-15,a+10,s-10,120,3553599,1);if(game.ui.upgradeMenuContents.push(b),upgradeIcon.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(upgradeIcon),game.ui.upgradeMenuContents.push(upgradeIcon),!1!==game.settings.locked["upgrade-"+upgrade.name]){0<upgrade.cost?upgradeCost=game.render.text("$"+upgrade.cost,"smallcash"):upgradeCost=game.render.text(_LANG.FREE,"smallish"),upgradeCost.x=x,upgradeCost.y=a+20,game.render.baseStage.addChild(upgradeCost),t=100,i=64,sx=1088,sy=384,unlockButton=new WorldObject(x,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,t,i)),2==m?(unlockButton.x=b.x+b.width-t-10,unlockButton.y=b.y+b.height-i/2-5):(unlockButton.x=b.x+b.width-t-10,unlockButton.y=b.y+10);var w=e.goText;!0===game.research.researchTCounters[e.name]?(unlockButton.alpha=0,w="In Progress"):(unlockButton.interactive=!0,game.attachCursorEvents(unlockButton)),unlockButton.width=t,unlockButton.height=i,unlockButton.upgrade=upgrade,unlockButton.on("pointerdown",u),unlockButton.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(unlockButton),unlockText=game.render.text(w,"button-text-green"),unlockText.x=unlockButton.x+unlockButton.width/2+2.5,unlockText.y=unlockButton.y+unlockText.height/2+5,unlockText.anchor.set(.5),unlockText.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(unlockText),game.ui.upgradeMenuContents.push(upgradeCost),game.ui.upgradeMenuContents.push(unlockButton),game.ui.upgradeMenuContents.push(unlockText),void 0!==upgrade.d1&&(ts=game.render.getTextStyle("smallish"),ts.wordWrap=!0,ts.wordWrapWidth=s-120,unlockedText=game.render.text(upgrade.d1,"smallish"),unlockedText.x=x+85,unlockedText.y=a+60,game.render.baseStage.addChild(unlockedText),game.ui.upgradeMenuContents.push(unlockedText))}else{var y=game.research.getResearch(upgrade);unlockedText=game.render.text(y.timeString,"smallcash"),unlockedText.tickerObj=y,unlockedText.ticker(function(){this.text=0<this.tickerObj.timeLeft?"Completing: "+this.tickerObj.percentDone+"%":"Complete"}),bar=game.ui.widget.percentBar(100,25,game.render.gameGUI,2.5),bar.x=x,bar.y=a,void 0===(bar.tickerObj=y).timeLeft?bar.setBar(100):bar.ticker(function(){this.setBar(this.tickerObj.percentDone)}),game.ui.upgradeMenuContents.push(bar),unlockedText.x=x+85,unlockedText.y=a+60,game.render.baseStage.addChild(unlockedText),game.ui.upgradeMenuContents.push(unlockedText)}upgradeName=game.render.text(upgrade.readName,"standard-title"),upgradeName.x=x+85,upgradeName.y=a+40,game.render.baseStage.addChild(upgradeName),game.ui.upgradeMenuContents.push(upgradeName),enabled=!0,void 0!==upgrade.reqCheck&&(enabled=upgrade.reqCheck()),enabled||(unlockButton.alpha=0,unlockButton.interactive=!1,unlockText.alpha=0,unlockText.interactive=!1,game.ui.upgradeMenuContents.push(game.render.window(x-15,a+10,s-10,120,3553599,.9)),upgradeName=game.render.text(upgrade.reqText,"smallish-center"),upgradeName.x=2==m?x-15+(s-10)/2-upgradeName.width/2:game.ui._VIEWPORT_RIGHT/2-upgradeName.width/2,upgradeName.y=a+10+60-upgradeName.height/2,game.render.baseStage.addChild(upgradeName),game.ui.upgradeMenuContents.push(upgradeName)),r===m?(r=1,a+=150,x=o+g):(r++,x+=s)}}else this.r.visible=!0;pad=50,!(closeFunction=function(){setTimeout(function(){game.tut(18),game.tut(22)},500),game.ui.clicked=!0,game.ui.closeUpgradesMenu()})===n&&game.ui.upgradeMenuContents.push(game.ui.closeButton(game.ui._VIEWPORT_RIGHT-50,50,closeFunction))}};bootStrap.push(tool);tool=function(){game.ui.showElecInfo=[],game.ui.hideElecFurniInfo=function(){for(var e=0;e<game.ui.showElecInfo.length;e++)game.ui.showElecInfo[e].destroy();game.ui.showElecInfo=[],game.ui.furniPriceTemp={}},game.ui.furniPriceTemp={},game.ui.showElecFurniInfo=function(e){return game.ui.hideElecFurniInfo(),!1}};bootStrap.push(tool);tool=function(){game.ui.clone=!1,game.ui.mainMenuContents=[],game.ui.closeMainMenu=function(){$("#btnSave").show(),game.keepPicking=!1;for(var e=0;e<game.ui.mainMenuContents.length;e++)game.ui.mainMenuContents[e].destroy(),game.ui.mainMenuContents[e]=void 0;game.ui.mainMenuContents=[]},game.render.viewport.snapZoom({width:1280,time:2e3,interrupt:!1,removeOnComplete:!0}),game.render.viewport.follow(!1),game.keepPicking=!1,game.ui.pickRandomFollow=function(){try{game.keepPicking&&(life=game.ai.life[game.rand(1,game.ai.life.length)],game.render.viewport.moveCenter(life.x,life.y),setTimeout(function(){game.ui.pickRandomFollow()},game.rand(2e3,5e3)))}catch(e){game.keepPicking=!1}},game.ui.mainMenu=function(e,a){game.ui.hideMainUI(),game.ads.video(),setTimeout(function(){game.render.viewport.setZoom(.7),game.render.viewport.moveCenter(game.render.viewport.worldWidth/2,game.render.viewport.worldHeight/2)},1e3),game.keepPicking=!0,setTimeout(game.ui.pickRandomFollow,5e3);var t=200;sx=0,sy=0,windowW=game.ui._MAX_VIEWPORT_WIDTH,windowH=game.ui._MAX_VIEWPORT_HEIGHT,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=30;var i=windowX;if(t=windowY,0===game.ui.mainMenuContents.length){var n=game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,16777215,.35,void 0,void 0,!0);n.isInteractive(),game.ui.mainMenuContents.push(n),w=350,h=250,this.r=new WorldObject(i,t,game.render.newTexture(game.render.tilesets.gui,sx,sy,1,1)),this.r.width=1,this.r.height=1,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.ui.mainMenuContents.push(this.r),windowTitle=game.render.text("Arcade Builder","menu-title-red"),windowTitle.isCenter(0,-150),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=windowY-10,game.ui.mainMenuContents.push(windowTitle),game.render.baseStage.addChild(windowTitle),windowText=game.render.text(_LANG.NEW_GAME,"menu-title"),windowText.isInteractive(),windowText.isCenter(0,-75),windowText.x=windowX+windowW/2-windowText.width/2,windowText.y=windowY+180,game.ui.mainMenuContents.push(windowText),game.render.baseStage.addChild(windowText),windowText.interactive=!0,game.attachCursorEvents(windowText),windowText.on("pointerup",function(){!1!==game.saves.getItem(game.alias.get("saveFile"))?game.track.event("New game","Has save"):game.track.event("New game","Has no save"),game.ui.clicked=!0,game.audio.sounds.blonk.playOnce(),game.ui.closeMainMenu(),game.ui.challengeMenu()}),!1!==game.saves.getItem(game.alias.get("saveFile"))&&(windowText=game.render.text(_LANG.CONTINUE,"menu-title"),windowText.isCenter(),windowText.isInteractive(),windowText.x=windowX+windowW/2-windowText.width/2,windowText.y=windowY+180+70,game.ui.mainMenuContents.push(windowText),game.render.baseStage.addChild(windowText),windowText.interactive=!0,game.attachCursorEvents(windowText),windowText.on("pointerup",function(){game.track.event("Load game","Loading game"),game.ui.clicked=!0,game.saves.loadGame(),game.audio.sounds.blonk.playOnce(),game.ui.closeMainMenu(),game.started=!0,game.ui.updateAll()})),t=i=5,sx=19*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(i,t,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=i,staticImage.y=t,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(staticImage),game.ui.mainMenuContents.push(staticImage),staticImage.readName="Menu",staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,$("#btnSave").hide(),game.ui.escMenu()})}else this.r.visible=!0}};bootStrap.push(tool);tool=function(){game.ui.gameMenuContents=[],game.ui.closeGameMenu=function(){for(var e=0;e<game.ui.gameMenuContents.length;e++)game.ui.gameMenuContents[e].destroy(),game.ui.gameMenuContents[e]=void 0;game.ui.gameMenuContents=[]},game.ui.gameMenu=function(){sx=512,sy=1344,game.ui.notificationColor="blue";var e=game.ui._VIEWPORT_RIGHT/2-288,a=game.ui._VIEWPORT_BOTTOM/2-224;windowX=e,windowY=a,windowW=576,windowH=448,0===game.ui.gameMenuContents.length?(game.ui.gameMenuContents.push(game.render.window(0,0,game.ui._VIEWPORT_RIGHT,game.ui._VIEWPORT_BOTTOM,0,.8)),this.r=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,576,448)),this.r.width=576,this.r.height=448,this.r.displayGroup=game.render.uiLayer,game.render.baseStage.addChild(this.r),game.ui.gameMenuContents.push(this.r),windowText=game.render.text("Challenges","menu-title"),windowText.x=windowX+windowW/2-windowText.width/2,windowText.y=windowY+70+70,windowText.interactive=!0,windowText.on("pointerup",function(){game.ui.clicked=!0,game.ui.closeGameMenu(),game.ui.changeStage()}),game.ui.gameMenuContents.push(windowText),game.render.baseStage.addChild(windowText),windowText=game.render.text("Close","menu-title"),windowText.x=windowX+windowW/2-windowText.width/2,windowText.y=windowY+140+70,game.ui.gameMenuContents.push(windowText),game.render.baseStage.addChild(windowText),windowText.interactive=!0,windowText.on("pointerup",function(){game.ui.clicked=!0,game.ui.closeGameMenu()})):this.r.visible=!0}};bootStrap.push(tool);tool=function(){game.ui.challengeMenuContents=[],game.ui.challengePage=1,game.ui.closeChallengeMenu=function(){$("#btnSave").show();for(var e=0;e<game.ui.challengeMenuContents.length;e++)game.ui.challengeMenuContents[e].destroy(),game.ui.challengeMenuContents[e]=void 0;game.ui.challengeMenuContents=[]},game.ui.challengeMenu=function(e){void 0===e&&(e=!1),game.ui.closeChallengeMenu(),game.ui.canClose=e,game.ui.closeUpgradesMenu(),game.ui.hideItemInfo();var a=100,t=1,i=1;sx=0,sy=0,windowW=game.ui._MAX_VIEWPORT_WIDTH,windowH=game.ui._MAX_VIEWPORT_HEIGHT,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=30;var n=windowX;if(a=windowY,0===game.ui.challengeMenuContents.length){game.ui.challengeMenuContents.push(game.render.backPane(game.render.aboveAll)),this.r=new WorldSprite(n,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,t,i)),this.r.width=t,this.r.height=i,this.r.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(this.r),game.ui.challengeMenuContents.push(this.r),windowTitle=game.render.text(_LANG.CHALLENGES,"menu-title-red"),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=windowYTop,windowTitle.isCenter(0,50,"top"),game.ui.challengeMenuContents.push(windowTitle),game.render.aboveAll.addChild(windowTitle),yOffset=35,windowY=windowYTop+65;var r,o,d,s,m=Math.floor((game.ui._VIEWPORT_BOTTOM-windowYTop-100)/125),l=game.ui.challengePage*m,u=game.ui.challengePage*m-m;l>game.propCount(game.challenges)&&(l=game.propCount(game.challenges)),1<game.ui.challengePage?alpha=1:alpha=0,sx=20*game.tileSize,sy=6*game.tileSize,a=n=10,upArrow=new WorldSprite(n,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),upArrow.alpha=alpha,upArrow.width=64,upArrow.height=64,upArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(upArrow),upArrow.x=50,upArrow.y=game.ui._VIEWPORT_BOTTOM-100,upArrow.isInteractive(),game.attachCursorEvents(upArrow),game.ui.challengeMenuContents.push(upArrow),upArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(upArrow),1<game.ui.challengePage&&upArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.challengePage--,game.ui.closeChallengeMenu(),game.ui.challengeMenu()}),u+m<game.propCount(game.challenges)?alpha=1:alpha=0,sx=21*game.tileSize,sy=6*game.tileSize,downArrow=new WorldSprite(n,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),downArrow.alpha=alpha,downArrow.width=64,downArrow.height=64,downArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(downArrow),downArrow.x=game.ui._VIEWPORT_RIGHT-100,downArrow.y=game.ui._VIEWPORT_BOTTOM-100,downArrow.isInteractive(),game.attachCursorEvents(downArrow),game.ui.challengeMenuContents.push(downArrow),downArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(downArrow),u+m<game.propCount(game.challenges)&&downArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.challengePage++,game.ui.closeChallengeMenu(),game.ui.challengeMenu()}),n+=15,i=t=64,u+m<game.propCount(game.challenges)?alpha=1:alpha=0,lHandSide=114,r=function(e){game.ui.clicked=!0,game.ui.closeChallengeMenu(),game.pickLevel(e,!0)},d=function(){game.ui.clicked=!0,game.ui.closeChallengeMenu()},s=function(){game.ui.clicked=!0,game.ui.closeChallengeMenu(),game.ui.mainMenu()};for(var g=u;g<l;g++){if(level=Object.keys(game.challenges)[g],challenge=game.challenges[level],game.ui.challengeMenuContents.push(game.render.window(10,windowY+yOffset-5,game.ui._VIEWPORT_RIGHT-50,84,0,.5,void 0,game.render.aboveAll)),void 0!==challenge.across){var c=game.ui.staticIcon(challenge.across,challenge.down);c.x=lHandSide-64-30,c.y=windowY+yOffset+5,game.ui.challengeMenuContents.push(c),game.render.aboveAll.addChild(c)}windowText=game.render.text(challenge.name,"standard-title"),windowText.x=lHandSide,windowText.y=windowY+yOffset,game.ui.challengeMenuContents.push(windowText),game.render.aboveAll.addChild(windowText),windowText=game.render.text(challenge.description,"standard"),windowText.x=lHandSide,windowText.y=windowY+yOffset+20,game.ui.challengeMenuContents.push(windowText),game.render.aboveAll.addChild(windowText),!0===game.settings.locked[level]?(sx=30*game.tileSize,sy=5*game.tileSize,staticImage=new WorldSprite(n,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,45,45)),staticImage.x=game.ui._VIEWPORT_RIGHT-170+64,staticImage.y=windowY+yOffset+5,staticImage.width=45,staticImage.height=45,staticImage.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(staticImage),game.ui.challengeMenuContents.push(staticImage),windowText=game.render.text(_LANG.HOW_TO_UNLOCK+challenge.requires,"standard"),windowText.x=lHandSide,windowText.y=windowY+yOffset+35,game.ui.challengeMenuContents.push(windowText),game.render.aboveAll.addChild(windowText)):(goButton=game.ui.greenButton(_LANG.START,game.ui._VIEWPORT_RIGHT-(100+lHandSide),windowY+yOffset+5,r,level,game.render.aboveAll),goButton[0].isCenter(-150,0,"right"),goButton[1].isCenter(-100,0,"right"),game.ui.challengeMenuContents.push(goButton[0]),game.ui.challengeMenuContents.push(goButton[1])),yOffset+=95,o=e?d:s,game.ui.challengeMenuContents.push(game.ui.closeButton(game.ui._VIEWPORT_RIGHT-50,10,o,game.render.aboveAll))}a=n=5,sx=19*game.tileSize,sy=3*game.tileSize,staticImage=new WorldObject(n,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.x=n,staticImage.y=a,staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(staticImage),game.ui.challengeMenuContents.push(staticImage),staticImage.readName="Menu",staticImage.interactive=!0,game.attachCursorEvents(staticImage),staticImage.on("pointerdown",function(){game.ui.clicked=!0,$("#btnSave").hide(),game.ui.escMenu()})}else this.r.visible=!0;game.tut(25)}};bootStrap.push(tool);tool=function(){game.ui.missionsMenuContents=[],game.ui.closeMissionsMenu=function(){for(var e=0;e<game.ui.missionsMenuContents.length;e++)game.ui.missionsMenuContents[e].destroy(),game.ui.missionsMenuContents[e]=void 0;game.ui.missionsMenuContents=[]},game.ui.missionsMenu=function(){var e;game.ui.closeMissionsMenu(),game.ui.closeUpgradesMenu(),game.ui.hideItemInfo(),sx=0,sy=0,windowW=game.ui._MAX_VIEWPORT_WIDTH,windowH=game.ui._MAX_VIEWPORT_HEIGHT,windowYTop=50,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,x=windowX,e=windowX,game.ui.missionsMenuContents.push(game.render.statsBackPane(game.render.gameGUI)),closeFunction=function(){game.ui.clicked=!0,game.ui.closeMissionsMenu(),game.tut(12)},game.ui.missionsMenuContents.push(game.ui.closeButton(game.ui._VIEWPORT_RIGHT-50,50,closeFunction,game.render.gameGUI)),this.r=new WorldObject(x,e,game.render.newTexture(game.render.tilesets.gui,sx,sy,1,1)),this.r.width=1,this.r.height=1,this.r.displayGroup=game.render.uiLayer,game.render.gameGUI.addChild(this.r),game.ui.missionsMenuContents.push(this.r),windowTitle=game.render.text(_LANG.MISSIONS,"menu-title-red"),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=windowYTop,game.ui.missionsMenuContents.push(windowTitle),game.render.gameGUI.addChild(windowTitle),yOffset=130,limit=5,game.missions.length<limit&&(limit=game.missions.length),checkComplete=function(e){game.ui.clicked=!0,isComplete=game.checkMissionComplete(e.name),game.ui.closeMissionsMenu(),game.ui.missionsMenu(),!1===isComplete?game.ui.notification(_LANG.MISSION_INCOMPLETE):(game.ui.earntCash("",e.payout),game.gain(e.payout),0===game.propCount(game.missions)&&(game.ui.closeMissionsMenu(),game.ui.toggleHelp(!0),game.ui.winStage(_LANG.WINTUT)))},counter=0;var a=90;for(var t in game.ui._VIEWPORT_RIGHT<=770&&(a=15),game.missions)if(game.ui.missionsMenuContents.push(game.render.window(a,windowYTop+yOffset,game.ui._VIEWPORT_RIGHT-2*a,80,0,.5,void 0,game.render.gameGUI)),mission=game.missions[t],windowText=game.render.text(mission.description,"longerwhitedesc"),windowText.x=a+10,windowText.y=windowYTop+yOffset+5,windowText.textWidth=10,game.ui.missionsMenuContents.push(windowText),game.render.gameGUI.addChild(windowText),goButton=game.ui.greenButton(_LANG.COMPLETE,game.ui._VIEWPORT_RIGHT-240,windowYTop+yOffset+25,checkComplete,mission,game.render.gameGUI),game.ui.missionsMenuContents.push(goButton[0]),game.ui.missionsMenuContents.push(goButton[1]),yOffset+=85,counter++,counter===limit)break}};bootStrap.push(tool);tool=function(){game.ui.tutorialContents=[],game.ui.closeTutorial=function(){try{game.ui.tutArrow.alpha=0,game.ui.tutArrow.tint=16711680}catch(e){}void 0!==game.ui.tutArrow&&(game.ui.tutArrow.alpha=0,null!=game.ui.tutArrow.tweenUp&&(createjs.Tween.removeTweens(game.ui.tutArrow),game.ui.tutArrow.destroy()));for(var a=0;a<game.ui.tutorialContents.length;a++)if(void 0!==game.ui.tutorialContents[a]&&null!==game.ui.tutorialContents[a]&&void 0!==game.ui.tutorialContents[a].destroy){try{game.ui.tutorialContents[a].destroy()}catch(e){game.ui.tutorialContents[a].visible=!1}game.ui.tutorialContents[a]=void 0}game.ui.tutorialContents=[]},game.ui.showTutorial=function(e,a,t,i,n,r,o){game.ui.closeTutorial(),game.ui.hideItemInfo();var d=0,s=1536;game.ui.notificationColor="red",void 0===a&&(a=game.ui._VIEWPORT_RIGHT/2-224),void 0===t&&(t=game.ui._VIEWPORT_BOTTOM/2-96),void 0===i&&(i=10),void 0===n&&(n=10),void 0===r&&(r=0),windowX=a,windowY=t,0===game.ui.tutorialContents.length?(this.r=new WorldObject(a,t,game.render.newTexture(game.render.tilesets.gui,d,s,448,192)),this.r.width=448,this.r.height=192,this.r.displayGroup=game.render.uiLayer,game.render.tipsLayer.addChild(this.r),game.ui.tutorialContents.push(this.r),upgradeName=game.render.text(e,"helptext"),upgradeName.x=a+150,upgradeName.y=t+60,game.ui.tutorialContents.push(upgradeName),game.render.tipsLayer.addChild(upgradeName),d=23*game.tileSize,s=4*game.tileSize,game.ui.tutArrow&&(game.ui.tutArrow.alpha=0),game.ui.tutArrow=new WorldSprite(a,t,game.render.newTexture(game.render.tilesets.gui,d,s,64,64)),game.ui.tutArrow.x=i,game.ui.tutArrow.y=n,game.ui.tutArrow.width=64,game.ui.tutArrow.anchor.set(.5),game.ui.tutArrow.height=64,!0===o?game.render.objectLayer.addChild(game.ui.tutArrow):game.render.tipsLayer.addChild(game.ui.tutArrow),game.ui.tutArrow.rotation=r*(Math.PI/180),game.ui.tutArrow.readName=_LANG.MISSIONS,void 0===game.ui.tutArrow.tweenUp&&(game.ui.tutArrow.tweenUp=createjs.Tween.get(game.ui.tutArrow,{override:!0,loop:-1}).to({x:game.ui.tutArrow.x+25},1e3,createjs.Ease.quadInOut),game.ui.tutArrow.tweenUp.bounce=!0)):this.r.visible=!0}};bootStrap.push(tool);var ui=function(){};bootStrap.push(ui);tool=function(){game.ui.availablePatientsMenuContents=[],game.ui.activePatientID=0,game.ui.activeAvailablePatient=!1,game.ui.lookingAtJobs="builder",game.ui.closeAvailablePatientsMenu=function(){!1!==game.ui.activeAvailablePatient&&(game.ui.activeAvailablePatient.visible=!1);for(var e=0;e<game.ui.availablePatientsMenuContents.length;e++)void 0!==game.ui.availablePatientsMenuContents[e].destroy?(game.ui.availablePatientsMenuContents[e].destroy(),game.ui.availablePatientsMenuContents[e]=void 0):game.debug("Undefined destroy");game.ui.availablePatientsMenuContents=[]},game.ui.availablePatientsMenu=function(){game.ui.closeAvailablePatientsMenu(),game.ui.closeUpgradesMenu(),game.ui.hideItemInfo();var e=100;sx=0,sy=0,windowW=500,windowH=400,game.ui.availablePatientsMenuContents.push(game.render.statsBackPane(void 0,.8)),windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=windowY+50,window1=game.render.window(0,0,windowW,windowH,_SETTINGS.ColorStyles.WindowMain,1,void 0,game.render.baseStage),window1.isCenter(),game.ui.availablePatientsMenuContents.push(window1),window2=game.render.window(0,0,windowW,80,_SETTINGS.ColorStyles.WindowMain,1,void 0,game.render.baseStage),window2.isCenter(0,-window1.width/2),game.ui.availablePatientsMenuContents.push(window2),btn=game.ui.closeButton(game.ui._VIEWPORT_RIGHT-50,50,function(){game.ui.closeAvailablePatientsMenu()},game.render.baseStage),btn.isCenter("right",-100,10),game.ui.availablePatientsMenuContents.push(btn),startX=windowX+150,clickFunction=function(){game.ui.lookingAtJobs="builder",game.ui.activePatientID=0,game.ui.availablePatientsMenu()},btn=game.ui.uiIcon(20,9),btn.stickTo(window1,window1.width/2-btn.width/2-50-15-125,-80),btn.on("pointerdown",clickFunction),game.render.baseStage.addChild(btn),game.ui.availablePatientsMenuContents.push(btn),"builder"!==game.ui.lookingAtJobs&&(btn.alpha=.5),clickFunction=function(){game.ui.lookingAtJobs="janitor",game.ui.activePatientID=0,game.ui.availablePatientsMenu()},btn=game.ui.uiIcon(19,9),btn.stickTo(window1,window1.width/2-btn.width/2-50-15,-80),btn.on("pointerdown",clickFunction),game.render.baseStage.addChild(btn),game.ui.availablePatientsMenuContents.push(btn),"janitor"!==game.ui.lookingAtJobs&&(btn.alpha=.5),clickFunction=function(){game.ui.lookingAtJobs="manager",game.ui.activePatientID=0,game.ui.availablePatientsMenu()},btn=game.ui.uiIcon(18,9),btn.stickTo(window1,window1.width/2-btn.width/2+50+15,-80),btn.on("pointerdown",clickFunction),game.render.baseStage.addChild(btn),game.ui.availablePatientsMenuContents.push(btn),"manager"!==game.ui.lookingAtJobs&&(btn.alpha=.5),clickFunction=function(){game.ui.lookingAtJobs="researcher",game.ui.activePatientID=0,game.ui.availablePatientsMenu()},btn=game.ui.uiIcon(18,10),btn.stickTo(window1,window1.width/2-btn.width/2+50+15+125,-80),btn.on("pointerdown",clickFunction),game.render.baseStage.addChild(btn),game.ui.availablePatientsMenuContents.push(btn),"researcher"!==game.ui.lookingAtJobs&&(btn.alpha=.5),_LANG.PATIENTS="Pick a "+game.ui.lookingAtJobs,windowTitle=game.render.text(_LANG.PATIENTS,"menu-title-red"),windowTitle.x=windowX+40,windowTitle.y=windowYTop,windowTitle.stickTo(window1,10,10),game.ui.availablePatientsMenuContents.push(windowTitle),game.render.baseStage.addChild(windowTitle),null==game.patients.availablePatients[game.ui.lookingAtJobs]&&(game.patients.availablePatients[game.ui.lookingAtJobs]=[]),void 0===game.patients.availablePatients[game.ui.lookingAtJobs][game.ui.activePatientID]||(showPatient=game.patients.availablePatients[game.ui.lookingAtJobs][game.ui.activePatientID],game.ui.activeAvailablePatient=showPatient,showPatient.visible=!1,iconWindow=game.render.window(0,0,64,72,0,.7,void 0,game.render.baseStage),iconWindow.stickTo(window1,100,100),photo=game.ai.createPhoto(showPatient),photo.stickTo(iconWindow,5,5),game.ui.availablePatientsMenuContents.push(photo),game.ui.availablePatientsMenuContents.push(iconWindow),game.render.baseStage.addChild(photo),lastX=photo.x+72,lastY=photo.y,lbl=game.ui.largeLabel(lastX,lastY,showPatient.data.patient.name,showPatient.data.patient.love),lbl.stickTo(photo,100,0),lastY+=32,game.render.baseStage.addChild(lbl),game.ui.availablePatientsMenuContents.push(lbl),lbl=game.ui.labelValue(lastX,lastY,"History",showPatient.data.patient.bio,showPatient.data.patient.love),lbl.stickTo(photo,100,50),game.render.baseStage.addChild(lbl),game.ui.availablePatientsMenuContents.push(lbl),0!==game.ui.activePatientID&&(text="Back",x=lastX-20,e=lastY+100,clickFunction=function(){ops=this.ops,game.ui.activePatientID--,id=ops[0],game.ui.closeAvailablePatientsMenu(),game.ui.availablePatientsMenu()},clickData=[game.ui.activePatientID],btn=game.ui.smallLeftArrow(),game.render.baseStage.addChild(btn),btn.ops=[game.ui.activePatientID],btn.on("pointerup",clickFunction),btn.stickTo(window1,0,window1.height-65),game.ui.availablePatientsMenuContents.push(btn)),text="HIRE",x=lastX+100,e=lastY+100,clickFunction=function(e){id=e[0],game.patients.addPatientToWorld(game.ui.lookingAtJobs,game.ui.activePatientID),"manager"===game.ui.lookingAtJobs&&(game.ui.lookingAtJobs="builder"),game.ui.activePatientID=0,game.ui.clicked=!0,game.ui.closeAvailablePatientsMenu()},clickData=[game.ui.activePatientID],btn=game.ui.greenButton(text,x,e,clickFunction,clickData,game.render.baseStage),btn[0].stickTo(window1,window1.width/2-btn[0].width/2,window1.height-42),btn[1].stickTo(btn[0],btn[0].width/2,15),game.ui.availablePatientsMenuContents.push(btn[0]),game.ui.availablePatientsMenuContents.push(btn[1]),game.ui.activePatientID!==game.patients.availablePatients[game.ui.lookingAtJobs].length-1&&(x=lastX+200+20,e=lastY+100,clickFunction=function(){ops=this.ops,game.ui.activePatientID++,id=ops[0],game.ui.closeAvailablePatientsMenu(),game.ui.availablePatientsMenu()},btn=game.ui.smallRightArrow(),game.render.baseStage.addChild(btn),btn.ops=[game.ui.activePatientID],btn.on("pointerup",clickFunction),btn.stickTo(window1,window1.width-60,window1.height-65),game.ui.availablePatientsMenuContents.push(btn))),clickFunction=function(){game.ui.clicked=!0,game.ui.upgradesPage=1,game.ui.showUpgradeMenu(game.upgradeUIOptions.staff)},text="Find staff",btn=game.ui.greenButton(text,x,e,clickFunction,!1,game.render.baseStage),void 0===game.patients.availablePatients[game.ui.lookingAtJobs][game.ui.activePatientID]?btn[0].stickTo(window1,window1.width/2-btn[0].width/2,window1.height/2-btn[0].height/2):btn[0].stickTo(window1,window1.width/2-btn[0].width/2,window1.height+15),btn[1].stickTo(btn[0],btn[0].width/2,15),game.ui.availablePatientsMenuContents.push(btn[0]),game.ui.availablePatientsMenuContents.push(btn[1])}};bootStrap.push(tool);tool=function(){game.ui.pawnMenuContents=[],game.ui.currentPatientID=0,game.ui.currentPatient=!1,game.ui.closePawnMenu=function(){!1!==game.ui.currentPatient&&(game.ui.currentPatient.visible=!1);for(var e=0;e<game.ui.pawnMenuContents.length;e++)void 0!==game.ui.pawnMenuContents[e].destroy?(game.ui.pawnMenuContents[e].destroy(),game.ui.pawnMenuContents[e]=void 0):game.debug("Undefined destroy");!1!==game.ui.currentPatient&&void 0!==game.ui.currentPatient&&void 0!==game.ui.currentPatient.destroy&&game.ui.currentPatient.destroy(),game.ui.pawnMenuContents=[]},game.ui.pawnMenu=function(){game.ui.closePawnMenu(),game.ui.closeUpgradesMenu(),game.ui.hideItemInfo();var e=100;sx=0,sy=0,windowW=700,windowH=550,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowY=game.ui._VIEWPORT_BOTTOM/2-windowH/2,windowYTop=windowY+50,game.ui.pawnMenuContents.push(game.render.window(windowX,windowY,windowW,windowH,0,.7)),game.ui.pawnMenuContents.push(game.render.window(windowX+20,windowY+20,windowW-40,windowH-40,0,.7)),_LANG.PATIENTS="Staff",windowTitle=game.render.text(_LANG.PATIENTS,"menu-title-red"),windowTitle.x=windowX+40,windowTitle.y=windowYTop,game.ui.pawnMenuContents.push(windowTitle),game.render.baseStage.addChild(windowTitle),closeFunction=function(){game.ui.clicked=!0,game.ui.closePawnMenu()},game.ui.pawnMenuContents.push(game.ui.closeButton(windowX+windowW-40,windowY,closeFunction)),0===game.ai.life.length?(lbl=game.ui.largeLabel(windowX+40,windowY+140,"No patients, please check your referrals"),game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl)):(showPatient=game.ai.life[game.ui.currentPatientID],game.ui.activeAvailablePatient=showPatient,showPatient=game.ai.createLifePhoto(showPatient.data.across,showPatient.data.down,showPatient.data.female,showPatient.data.body.hat,showPatient.data.body.head),game.ui.currentPatient=showPatient,showPatient.visible=!0,showPatient.x=windowX+40,showPatient.y=windowY+50+50+20,game.ui.pawnMenuContents.push(game.render.window(showPatient.x,showPatient.y,64,72,0,.7)),game.render.baseStage.addChild(showPatient),lastX=showPatient.x+72,lastY=showPatient.y,lbl=game.ui.labelValue(lastX,lastY,"Name",game.ui.activeAvailablePatient.data.patient.name),lastY+=32,game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl),lbl=game.ui.labelValue(lastX,lastY,"History",game.ui.activeAvailablePatient.data.patient.bio),lastY+=32,game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl),lbl=game.ui.labelValue(lastX,lastY,"Emotional Level",game.ui.activeAvailablePatient.data.patient.love),game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl),lastY+=32,lbl=game.ui.labelValue(lastX,lastY,"Compliace Level",game.ui.activeAvailablePatient.data.patient.compliance),game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl),lastY+=32,lbl=game.ui.labelValue(lastX,lastY,"Creativity Level",game.ui.activeAvailablePatient.data.patient.creativity),game.render.baseStage.addChild(lbl),game.ui.pawnMenuContents.push(lbl),0!==game.ui.currentPatientID&&(text="Back",x=windowX+40,e=windowY+windowH-80,clickFunction=function(e){game.ui.currentPatientID--,id=e[0],game.ui.closePawnMenu(),game.ui.pawnMenu()},clickData=[game.ui.activePatientID],btn=game.ui.greenButton(text,x,e,clickFunction,clickData),game.ui.pawnMenuContents.push(btn[0]),game.ui.pawnMenuContents.push(btn[1])),game.ui.currentPatientID!==game.ai.life.length-1&&(text="Next",x=windowX+windowW-140,e=windowY+windowH-80,clickFunction=function(e){game.ui.currentPatientID++,id=e[0],game.ui.closePawnMenu(),game.ui.pawnMenu()},clickData=[game.ui.activePatientID],btn=game.ui.greenButton(text,x,e,clickFunction,clickData),game.ui.pawnMenuContents.push(btn[0]),game.ui.pawnMenuContents.push(btn[1])))}};bootStrap.push(tool),bootStrap.push(function(){game.ui.htmlPawn=!1,game.ui.htmlPawnInfo=function(e){if(!0===game.ui.clicked)return!1;game.ui.watchObject(e),game.ui.htmlPawn=e,$("#pawn-info").show()},$(".hide-parent").click(function(){$(this).parent().hide(),game.ui.htmlPawn=!1}),game.ui.htmlPawnRefresh=0,game.ui.htmlPawnJobs=function(){return!1},game.tickers.push(game.ui.htmlPawnJobs)}),bootStrap.push(function(){game.resources=game.globalInventory.items,game.ui.resourceCounters={},game.ee.addListener("game-start",function(){xOffset=game.ui._VIEWPORT_RIGHT-200,yOffset=100,title=game.render.text("Resources","small-text"),title.x=xOffset,title.y=yOffset-25,game.render.aboveAll.addChild(title),game.ui.createResourceText()}),game.ui.createResourceText=function(){for(var e in xOffset=game.ui._VIEWPORT_RIGHT-200,yOffset=100,game.resources)void 0===game.ui.resourceCounters[e]&&(count=game.resources[e],title=game.render.text(e+": "+count,"small-text"),title.x=xOffset,title.y=yOffset,game.render.aboveAll.addChild(title),game.ui.resourceCounters[e]=title),yOffset+=100},game.tickers.push(function(){for(var e in game.ui.createResourceText(),game.resources)count=game.resources[e],game.ui.resourceCounters[e].text=e+": "+count,yOffset+=100})}),bootStrap.push(function(){game.ui.PayStore=[],game.ui.closePayStore=function(){game.ui.closeUpgradesMenu();for(var e=0;e<game.ui.PayStore.length;e++)game.ui.PayStore[e].destroy(),game.ui.PayStore[e]=void 0;game.ui.PayStore=[],game.ui.showingPayStore=!1},game.ui.showingPayStore=!1,game.ui.payStorePage=1,game.ui.showPayStore=function(e){game.ui.closePayStore(),game.ui.hideItemInfo(),game.ui.showingPayStore=!0,game.ui.showingPayStoreItems=e,windowW=game.ui._VIEWPORT_RIGHT,windowH=game.ui._VIEWPORT_BOTTOM,windowX=0,windowY=0,game.ui.upgradeMenuContents.push(game.render.statsBackPane(void 0,.8)),windowTitle=game.render.text("Premium Items","menu-title-red"),windowTitle.x=windowX+windowW/2-windowTitle.width/2,windowTitle.y=50,game.render.baseStage.addChild(windowTitle),game.ui.upgradeMenuContents.push(windowTitle),yOffset=0,gap=100,padding=50,windowW=game.ui._VIEWPORT_RIGHT-2*padding,windowX=game.ui._VIEWPORT_RIGHT/2-windowW/2,windowH=game.ui._VIEWPORT_BOTTOM-200,windowY=100,thisWindow=game.render.window(windowX,windowY,windowW,windowH,3092790,1),game.ui.upgradeMenuContents.push(thisWindow);var a=Math.floor(thisWindow.height/230),t=game.ui.payStorePage*a,i=game.ui.payStorePage*a-a;t>game.propCount(e)&&(t=game.propCount(e)),1<game.ui.payStorePage?alpha=1:alpha=0,sx=20*game.tileSize,sy=6*game.tileSize,x=10,y=10,upArrow=new WorldObject(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),upArrow.alpha=alpha,upArrow.width=64,upArrow.height=64,upArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(upArrow),upArrow.x=50,upArrow.y=game.ui._VIEWPORT_BOTTOM-100,upArrow.interactive=!0,game.attachCursorEvents(upArrow),game.ui.upgradeMenuContents.push(upArrow),upArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(upArrow),1<game.ui.payStorePage&&upArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.payStorePage--,game.ui.closeUpgradesMenu(),game.ui.showPayStore(game.ui.showingPayStoreItems)}),i+a<game.propCount(e)?alpha=1:alpha=0,sx=21*game.tileSize,sy=6*game.tileSize,downArrow=new WorldObject(x,y,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),downArrow.alpha=alpha,downArrow.width=64,downArrow.height=64,downArrow.displayGroup=game.render.uiLayer,game.render.aboveAll.addChild(downArrow),downArrow.x=game.ui._VIEWPORT_RIGHT-110,downArrow.y=game.ui._VIEWPORT_BOTTOM-100,downArrow.interactive=!0,game.attachCursorEvents(downArrow),game.ui.upgradeMenuContents.push(downArrow),i+a<game.propCount(e)&&downArrow.on("pointerdown",function(){game.ui.clicked=!0,game.ui.payStorePage++,game.ui.closeUpgradesMenu(),game.ui.showPayStore(game.ui.showingPayStoreItems)});var n,r=0;for(var o in n=function(e){game.store.purchase(e.name)},e)if(!(++r<=i||i+a<r)){var d=e[o];game.ui.upgradeMenuContents.push(game.render.window(windowX+padding-padding/2,windowY+padding-padding/2+yOffset,windowW-padding,d.h+2*padding,2303786,1)),sx=(d.across-1)*game.tileSize,sy=(d.down-1)*game.tileSize;var s=new WorldObject(windowX+padding,windowY+yOffset+padding,game.render.newTexture(game.render.tilesets.gui,sx,sy,d.w,d.h));game.render.aboveAll.addChild(s),game.ui.upgradeMenuContents.push(s),s.width=d.w,s.height=d.h,addition=game.render.text(d.displayName,"standard-title"),addition.x=s.x+s.width+25,addition.y=s.y,game.render.baseStage.addChild(addition),game.ui.upgradeMenuContents.push(addition),addition=game.render.text(d.desc,"smallish"),addition.x=s.x+s.width+25,addition.y=s.y+25,game.render.baseStage.addChild(addition),game.ui.upgradeMenuContents.push(addition),!0!==d.owned&&"true"!=d.owned?(addition=game.render.text("Buy now","smallish"),addition.x=windowW-100,addition.y=s.y,game.render.baseStage.addChild(addition),game.ui.upgradeMenuContents.push(addition),clickData=d,btn=game.ui.greenButton("£"+game.fCashShort(d.price),windowW-100,s.y+25,n,clickData,game.render.baseStage),game.ui.upgradeMenuContents.push(btn[0]),game.ui.upgradeMenuContents.push(btn[1])):(addition=game.render.text("Already owned","smallish"),addition.x=windowW-100,addition.y=s.y,game.render.baseStage.addChild(addition),game.ui.upgradeMenuContents.push(addition)),yOffset+=gap+2*padding}pad=50,game.ui.upgradeMenuContents.push(game.ui.closeButton(thisWindow.x+thisWindow.width+32,thisWindow.y+80,game.ui.closeUpgradesMenu))}}),bootStrap.push(function(){game.ui.pawnThoughts=[],game.ui.closePawnThoughts=function(){for(var e=0;e<game.ui.pawnThoughts.length;e++)game.ui.pawnThoughts[e].destroy()},game.ui.showPawnThoughts=function(){var e=game.ui._VIEWPORT_RIGHT-400-100;staticImage=game.render.simpleWindow(e,50,500,400),game.ui.pawnThoughts=staticImage,game.render.baseStage.addChild(staticImage),staticImage.isCenter(-600,120,"right")}});var checker=function(){game.jobs.jobCheckers.push(function(e){if(!0===e.data.buildWall&&(null==e.jobCount||0==e.jobCount))return 3<=game.drawMatrix[game.gridPos(e.x)][game.gridPos(e.y)][0]&&2<=game.drawMatrix[game.gridPos(e.x)][game.gridPos(e.y)][1]?(e.data.buildWall=!1,game.world.markRemoveObject(e),!1):(itemAtX=game.world.index.xyObjects[game.gridPos(e.x)+"-"+game.gridPos(e.y)],void 0!==itemAtX&&"door"==itemAtX.object.name?(e.data.buildWall=!1,game.world.markRemoveObject(e),!1):(game.world.addToIndex("build",e),e.jobCount=1,e.jobLevel=0,e.job="build-wall",e.workerRole="builder",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(build=e.newPhaseArrived(e.jobs[0],128),build&&(e.path.length=0,e.status="wait","hammer"!=e.anim&&0===e.path.length&&(e.anim="hammer",e.animLength=1.5,e.animComplete=function(){game.grid.updateTile(game.gridPos(this.jobs[0].x),game.gridPos(this.jobs[0].y)),this.jobs[0].data.buildWall=!1,this.jobs[0].jobCount=0,game.world.removeFromIndex("build",this.jobs[0],!1),game.world.markRemoveObject(this.jobs[0]),this.shiftJob()}))),this.phase},!0))})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){if(!0===e.data.bulldoze)return game.grid.floorTile(game.gridPos(e.x),game.gridPos(e.y),1,1),e.data.bulldoze=!1,game.world.markRemoveObject(e),!1})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){if(!0===e.data.buildFloor)return game.world.addToIndex("build",e),e.jobCount++,e.jobLevel=0,e.job="build-floor",e.workerRole="builder",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(6<this.failedCount&&(e.jobs[0].phase=1,e.jobs[0].status="wait",a=!0),!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(build=e.newPhaseArrived(e.jobs[0],128),build&&"hammer"!=e.anim&&(e.anim="hammer",e.animLength=1,e.animComplete=function(){try{void 0!==this.jobs[0].data.across&&game.grid.floorTile(game.gridPos(this.jobs[0].x),game.gridPos(this.jobs[0].y),this.jobs[0].data.across,this.jobs[0].data.down),this.jobs[0].data.buildFloor=!1,this.jobs[0].jobCount=0,game.world.removeFromIndex("build",this.jobs[0],!1),game.world.markRemoveObject(this.jobs[0])}catch(e){}this.shiftJob(!0)})),this.phase},!0})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(t){if(!0===t.data.buildFurni&&(null==t.jobCount||0==t.jobCount))return game.world.addToIndex("build",t),t.jobCount++,t.jobLevel=0,t.job="build-furni",t.workerRole="builder",t.assigned=!1,t.phase=0,t.failed=!1,t.failedCount=0,t.timeSincePhaseBegan=0,t.executeJob=function(e){e.phase=t.phase;var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(build=e.phaseArrived(e.jobs[0]),build&&"hammer"!=e.anim&&0===e.path.length&&(e.anim="hammer",e.animLength=3,e.animComplete=function(){try{this.jobs[0].built=!0,this.jobs[0].alpha=1,this.jobs[0].assigned=!1,this.jobs[0].jobCount=0,this.jobs[0].data.buildFurni=!1,game.tut(this.jobs[0].data.tutNumber)&&game.render.redraw(),void 0!==game.onBuildFunctions[this.jobs[0].data.buildFunction]?game.onBuildFunctions[this.jobs[0].data.buildFunction](this.jobs[0]):void 0!==game.onBuildFunctions[this.jobs[0].name]?game.onBuildFunctions[this.jobs[0].name](this.jobs[0]):void 0!==game.onBuildFunctions[this.jobs[0].codename]&&game.onBuildFunctions[this.jobs[0].codename](this.jobs[0]),game.world.removeFromIndex("build",this.jobs[0],!1),game.world.defaultBuildFunction(this.jobs[0]),!0===this.jobs[0].killOnBuild&&game.world.markRemoveObject(this.jobs[0]),this.shiftJob()}catch(e){}}))},!0})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){!0===e.data.buildDoor&&(game.grid.floorTile(game.gridPos(e.x),game.gridPos(e.y),1,1),game.world.addToIndex("build",e),e.jobCount++,e.jobLevel=0,e.job="build-door",e.workerRole="builder",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(build=e.phaseArrived(e.jobs[0],192),build&&"hammer"!=e.anim&&(e.anim="hammer",e.animLength=.2,e.animComplete=function(){this.jobs[0].built=!0,this.jobs[0].alpha=1,this.jobs[0].jobCount=0,game.grid.removeWall(game.gridPos(this.jobs[0].x+2),game.gridPos(this.jobs[0].y+2)),this.jobs[0].data.buildDoor=!1,game.world.removeFromIndex("build",this.jobs[0],!1),!0===this.jobs[0].data.killOnBuild&&game.world.markRemoveObject(this.jobs[0]),void 0!==this.jobs[0].data.buildTicker&&(this.jobs[0].tick=this.jobs[0].data.buildTicker),this.shiftJob()})),this.phase})})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){if(!0===e.data.dismantle)return e.data.dismantle=!1,game.world.markRemoveObject(e),!1})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){!0===e.data.cleanup&&e.jobCount<1&&(e.jobCount=1,e.jobLevel=0,e.job="janitor",e.workerRole="janitor",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(arrived=e.phaseArrived(e.jobs[0]),arrived&&"sweep"!=e.anim&&0===e.path.length&&(e.anim="sweep",e.animLength=3,e.animComplete=function(){try{this.jobs[0].phase=2}catch(e){game.debug("Error in anim sweep: "+e)}})),2===e.jobs[0].phase&&!0===a&&(e.jobs[0].data.dismantle=!1,e.jobs[0].data.job="done",e.jobs[0].jobCount=0,game.world.markRemoveObject(e.jobs[0]),e.shiftJob("cleanup success"))})})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){"miner"===e.data.job&&(e.jobCount++,e.jobLevel=0,e.job="mine",e.workerRole="miner",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(game.llog("jobs","Execute mining job, Phase "+e.jobs[0].phase+" Continue exec: "+a),!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(build=e.phaseArrived(e.jobs[0],130),build&&"hammer"!=e.anim&&0===e.path.length&&(e.anim="hammer",e.animLength=5,e.animComplete=function(){try{this.jobs[0].phase=2}catch(e){game.debug("Error in anim mine: "+e)}})),2===e.jobs[0].phase&&!0===a&&(game.grid.floorTile(game.gridPos(e.jobs[0].x),game.gridPos(e.jobs[0].y),1,1),e.jobs[0].data.job=!1,game.world.markRemoveObject(e.jobs[0]),trash={x:e.jobs[0].x,y:e.jobs[0].y,height:64,width:64,framex:1920,framey:320,tileSetName:"/png/furni.png",built:!0,id:"rb",data:{amount:100,ref:"00",job:"cleaner"},name:"stone",alpha:1},game.world.furniFromObject(trash),e.shiftJob("mine success"))})})};bootStrap.push(checker);checker=function(){game.jobs.jobCheckers.push(function(e){("researchchair"==e.name||"chalkboard"==e.name||"advancedresearch"==e.name)&&e.jobCount<2&&!0===e.built&&(e.jobCount++,e.jobLevel=0,e.job="researcher",e.workerRole="researcher",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(arrived=e.phaseArrived(e.jobs[0]),arrived&&"research"!=e.anim&&0===e.path.length&&(e.anim="research",e.animLength=120,e.animComplete=function(){try{this.jobs[0].phase=2}catch(e){game.debug("Error in anim research: "+e)}})),2===e.jobs[0].phase&&!0===a&&(e.jobs[0].data.dismantle=!1,e.jobs[0].jobCount=0,e.jobs[0].data.job="done",e.shiftJob("cleanup success"))})})};bootStrap.push(checker),checker=function(){game.jobs.jobCheckers.push(function(e){("officechair"==e.name||"filingcabinet"==e.name)&&e.jobCount<2&&!0===e.built&&(e.jobCount++,e.jobLevel=0,e.job="manager",e.workerRole="manager",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0]),1===e.jobs[0].phase&&!0===a&&(arrived=e.phaseArrived(e.jobs[0]),arrived&&"clipboard"!=e.anim&&0===e.path.length&&(e.anim="clipboard",e.animLength=120,e.animComplete=function(){try{this.jobs[0].phase=2}catch(e){game.debug("Error in anim research: "+e)}})),2===e.jobs[0].phase&&!0===a&&(e.jobs[0].data.dismantle=!1,e.jobs[0].data.job="done",e.shiftJob("cleanup success"))})})},bootStrap.push(checker),bootStrap.push(function(){game.jobs.jobCheckers.push(function(e){"staffdesk"==e.name&&e.jobCount<2&&!0===e.built&&(e.jobCount++,e.jobLevel=0,e.job="manager",e.workerRole="manager",e.assigned=!1,e.phase=0,e.failed=!1,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeJob=function(e){var a=e.checkPhases();if(!1===a)return!1;"calc"==e.status&&(a=!1),0===e.jobs[0].phase&&!0===a&&e.phaseWalk(e.jobs[0],!0,void 0,"standArea2"),1===e.jobs[0].phase&&!0===a&&(arrived=e.phaseArrived(e.jobs[0]),arrived&&"serve"!=e.anim&&0===e.path.length&&(e.anim="serve",e.animLength=120,e.animComplete=function(){try{this.jobs[0].phase=2}catch(e){game.debug("Error in anim research: "+e)}})),2===e.jobs[0].phase&&!0===a&&(e.jobs[0].data.dismantle=!1,e.jobs[0].jobCount=0,e.jobs[0].data.job="done",e.shiftJob("cleanup success"))})})}),bootStrap.push(function(){game.tools.setSquaringTool=function(e){game.ui.pinnedTool=!1,game.ui.pinningTool.reset(),game.tools.deactivate();var n=new Tool(e.name);n.hoverBricks=[],n.data=e,n.canCommit=!0,n.wallHolder=function(e,a){var t=this.data.data.across,n=this.data.data.down,r=(t-1)*game.tileSize,o=(n-1)*game.tileSize,d=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.background,r,o,game.tileSize,game.tileSize));d.x=e,d.y=a,(this.cancommit=!0)!==this.data.data.wallBuild&&3<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][0]&&2<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][1]&&(this.canCommit=!1,d.tint=16711680,"allowwall"==this.data.collide&&(void 0!==game.world.objects[i]?"brickholder"==game.world.objects[i].name&&(this.cancommit=!0):this.cancommit=!0)),!0!==this.data.data.mine&&13<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][0]&&2<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][1]&&(this.canCommit=!1,d.tint=16711680,"allowmine"==this.data.collide&&(void 0!==game.world.objects[i]?"brickholder"==game.world.objects[i].name&&(this.cancommit=!0):this.cancommit=!0)),game.render.objectLayer.addChild(d),this.hoverBricks.push(d)},n.floorHolder=function(e,a){var t=1,n=12;!0===this.data.data.buildFloor&&(t=this.data.across,n=this.data.down),void 0!==this.data.data.across&&(t=this.data.data.across,n=this.data.data.down);var r=(t-1)*game.tileSize,o=(n-1)*game.tileSize,d=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.background,r,o,game.tileSize,game.tileSize));d.x=e,d.y=a,!0!==this.data.data.wallBuild&&3<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][0]&&2<=game.drawMatrix[game.gridPos(e)][game.gridPos(a)][1]&&(this.canCommit=!1,d.tint=16711680,"allowwall"==this.data.collide&&"brickholder"==game.world.objects[i].name&&(this.cancommit=!0)),game.render.objectLayer.addChild(d),this.hoverBricks.push(d)},n.commitFloor=function(e,a,t){void 0===t&&(t=.25);var i=1,n=12;!0===this.data.data.buildFloor&&(i=this.data.across,n=this.data.down);var r=(i-1)*game.tileSize,o=(n-1)*game.tileSize,d=!0;if(!1===this.canCommit&&(d=!1),!0===d){var s=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.background,r,o,game.tileSize,game.tileSize));!0===this.data.data.buildFloor?s.data=game.clone(this.data.data):s.data={buildFloor:!0,across:1,down:8},s.x=e,s.y=a,s.across=i,s.down=n,s.alpha=t,s.name="floorholder",game.render.objectLayer.addChild(s),game.world.objects.push(s);for(var m=0;m<game.world.objects.length;m++)game.world.rCollision(s,game.world.objects[m])&&!0===game.world.objects[m].data.buildFloor&&game.world.objects[m].id!=s.id&&(game.world.objects[m].destroy(),game.world.removeObject(game.world.objects[m].id));game.world.sortWorldItemsNow()}},n.commitWall=function(e,a){void 0===alpha&&(alpha=.25);var t=this.data.data.across,i=this.data.data.down,n=(t-1)*game.tileSize,r=(i-1)*game.tileSize,o=!0;if(!1===this.canCommit&&(o=!1),!0===o){var d=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.background,n,r,game.tileSize,game.tileSize));d.data=game.clone(this.data.data),d.x=e,d.y=a,d.across=t,d.down=i,d.alpha=alpha,this.data.data.buildWall?d.name="brickholder":d.name="floorholder",game.render.objectLayer.addChild(d),game.world.objects.push(d)}},n.mouseDown=!1,n.onMouseDown=function(e){n.mouseDown=!0},n.endX=0,n.endY=0,n.onMouseMove=function(e,a){this.canCommit=!0;for(var t=0;t<this.hoverBricks.length;t++)this.hoverBricks[t].destroy();var i={x:this.x=e,y:this.y=a};if(startX=game.atGridPos(game.gridPos(game.tools.mouseDownX)),startY=game.atGridPos(game.gridPos(game.tools.mouseDownY)),endX=game.atGridPos(game.gridPos(i.x)),endY=game.atGridPos(game.gridPos(i.y)),"tablet"===game.clientMode&&(!1!==this.moverTool&&void 0!==this.moverTool||(sx=24*game.tileSize,sy=9*game.tileSize,staticImage=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,this.moverTool=staticImage,this.moverTool.isFloor=!0,this.moverTool.startX=e,this.moverTool.startY=a,this.moverTool.endX=0,this.moverTool.endY=0,this.moverTool.interactive=!0,this.moverTool.dragging=!1,this.moverTool.OriginX=0,this.moverTool.OriginY=0,this.moverTool.newX=0,this.moverTool.newY=0,this.moverTool.startDrag=function(e){this.dragging=!0,origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),this.OriginX=origin.x-this.newX,this.OriginY=origin.y-this.newY,game.render.viewport.pause=!0},this.moverTool.isDragging=function(e){if(game.tools.activeTool.onMouseMove(0,0),!this.dragging)return!1;origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),this.newX=origin.x-this.OriginX,this.newY=origin.y-this.OriginY},this.moverTool.endDrag=function(e){game.render.viewport.pause=!1,this.dragging=!1},this.moverTool.on("pointerdown",this.moverTool.startDrag),this.moverTool.on("pointermove",this.moverTool.isDragging),this.moverTool.on("pointerup",this.moverTool.endDrag),this.moverTool.on("pointerupoutside",this.moverTool.endDrag),staticImage=new WorldObject(e+100,a+100,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),staticImage.width=64,staticImage.height=64,staticImage.displayGroup=game.render.uiLayer,this.moverTool2=staticImage,this.moverTool2.isFloor=!0,this.moverTool2.startX=startX,this.moverTool2.startY=startY,this.moverTool2.endX=endX,this.moverTool2.endY=endY,this.moverTool2.interactive=!0,this.moverTool2.dragging=!1,this.moverTool2.OriginX=0,this.moverTool2.OriginY=0,this.moverTool2.newX=0,this.moverTool2.newY=0,this.moverTool2.startDrag=function(e){this.dragging=!0,origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),this.OriginX=origin.x-this.newX,this.OriginY=origin.y-this.newY,game.render.viewport.pause=!0},this.moverTool2.isDragging=function(e){if(!this.dragging)return!1;origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),game.atGridPos(game.gridPos(origin.x))>game.tools.activeTool.moverTool.x&&(this.newX=origin.x-this.OriginX),game.atGridPos(game.gridPos(origin.y))>game.tools.activeTool.moverTool.y&&(this.newY=origin.y-this.OriginY)},this.moverTool2.endDrag=function(e){game.render.viewport.pause=!1,this.dragging=!1},this.moverTool2.on("pointerdown",this.moverTool2.startDrag),this.moverTool2.on("pointermove",this.moverTool2.isDragging),this.moverTool2.on("pointerup",this.moverTool2.endDrag),this.moverTool2.on("pointerupoutside",this.moverTool2.endDrag),sx=24*game.tileSize,sy=7*game.tileSize,this.moverTool.tickBtn=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),this.moverTool.tickBtn.width=64,this.moverTool.tickBtn.height=64,this.moverTool.tickBtn.displayGroup=game.render.uiLayer,this.moverTool.tickBtn.interactive=!0,this.moverTool.tickBtn.on("pointerdown",function(){game.tools.activeTool.startX=game.tools.activeTool.moverTool.x,game.tools.activeTool.startY=game.tools.activeTool.moverTool.y,game.tools.activeTool.endX=game.tools.activeTool.moverTool2.x,game.tools.activeTool.endY=game.tools.activeTool.moverTool2.y,game.ui.stageClick(game.tools.activeTool.startX,game.tools.activeTool.startY),game.tools.setActiveTool("select")}),game.render.aboveLife.addChild(this.moverTool.tickBtn),sx=24*game.tileSize,sy=6*game.tileSize,this.moverTool.cancelBtn=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),this.moverTool.cancelBtn.width=64,this.moverTool.cancelBtn.height=64,this.moverTool.cancelBtn.displayGroup=game.render.uiLayer,this.moverTool.cancelBtn.interactive=!0,this.moverTool.cancelBtn.on("pointerdown",function(){game.tools.setActiveTool("select"),game.tools.closeMenus()}),game.render.aboveLife.addChild(this.moverTool.cancelBtn),game.render.aboveLife.addChild(this.moverTool),game.render.aboveLife.addChild(this.moverTool2))),"tablet"===game.clientMode&&(startX=game.atGridPos(game.gridPos(this.moverTool.x)),startY=game.atGridPos(game.gridPos(this.moverTool.y)),endX=game.atGridPos(game.gridPos(this.moverTool2.x)),endY=game.atGridPos(game.gridPos(this.moverTool2.y)),i={x:this.moverTool2.x,y:this.moverTool2.y}),this.wallHolder(endX,endY),!0===this.mouseDown||"tablet"==game.clientMode){for(endX<startX&&(tmp=endX,endX=startX,startX=tmp),endY<startY&&(tmp=endY,endY=startY,startY=tmp),game.debug("r:"+startY),xBlocks=(endX-startX)/game.tileSize,yBlocks=(endY-startY)/game.tileSize,xOffset=0,t=yOffset=0;t<xBlocks;t++)xOffset+=game.tileSize,this.wallHolder(startX+xOffset,endY+yOffset);if(xOffset=0,yOffset=0,yOffset+=game.tileSize,void 0!==this.data.data.fill)for(t=0;t<yBlocks-1;t++){for(j=0;j<xBlocks-1;j++)xOffset+=game.tileSize,this.wallHolder(startX+xOffset,startY+yOffset);xOffset=0,yOffset+=game.tileSize}for(this.wallHolder(startX,startY),xOffset=0,yOffset=0,this.wallHolder(startX,startY),t=0;t<xBlocks;t++)xOffset+=game.tileSize,this.wallHolder(startX+xOffset,startY);for(t=yOffset=0;t<yBlocks;t++)yOffset+=game.tileSize,this.wallHolder(startX+xOffset,startY+yOffset);for(t=yOffset=0;t<yBlocks;t++)yOffset+=game.tileSize,this.wallHolder(startX,startY+yOffset)}},n.onMouseUp=function(e,a){for(var t=0;t<this.hoverBricks.length;t++)this.hoverBricks[t].destroy();if(!0===this.mouseDown||"tablet"===game.clientMode){n.mouseDown=!1;var i={x:e,y:a};for("tablet"===game.clientMode?(startX=this.startX,strtY=this.startY,endX=this.endX,endY=this.endY):(startX=game.atGridPos(game.gridPos(game.tools.mouseDownX)),startY=game.atGridPos(game.gridPos(game.tools.mouseDownY)),endX=game.atGridPos(game.gridPos(i.x)),endY=game.atGridPos(game.gridPos(i.y))),endX<startX&&(tmp=endX,endX=startX,startX=tmp),endY<startY&&(tmp=endY,endY=startY,startY=tmp),game.debug("r:"+startY),xBlocks=(endX-startX)/game.tileSize,yBlocks=(endY-startY)/game.tileSize,xOffset=0,yOffset=0,alpha=this.data.data.alpha,void 0===alpha&&(alpha=.25),t=0;t<xBlocks;t++)xOffset+=game.tileSize,!0!==this.data.data.buildFloor?this.commitWall(startX+xOffset,endY+yOffset,alpha):this.commitFloor(startX+xOffset,endY+yOffset,alpha);for(!0!==this.data.data.buildFloor?this.commitWall(startX,startY,alpha):this.commitFloor(startX,startY,alpha),xOffset=0,t=yOffset=0;t<xBlocks;t++)xOffset+=game.tileSize,!0!==this.data.data.buildFloor?this.commitWall(startX+xOffset,startY,alpha):this.commitFloor(startX+xOffset,startY,alpha);for(t=yOffset=0;t<yBlocks-1;t++)yOffset+=game.tileSize,!0!==this.data.data.buildFloor?this.commitWall(startX+xOffset,startY+yOffset,alpha):this.commitFloor(startX+xOffset,startY+yOffset,alpha);for(t=yOffset=0;t<yBlocks;t++)yOffset+=game.tileSize,!0!==this.data.data.buildFloor?this.commitWall(startX,startY+yOffset,alpha):this.commitFloor(startX,startY+yOffset,alpha);if(xOffset=0,yOffset=0,yOffset+=game.tileSize,void 0!==this.data.data.fill)for(t=0;t<yBlocks-1;t++){for(j=0;j<xBlocks-1;j++)xOffset+=game.tileSize,"floor"==this.data.data.fill?this.commitFloor(startX+xOffset,startY+yOffset,alpha):this.commitWall(startX+xOffset,startY+yOffset,alpha);xOffset=0,yOffset+=game.tileSize}}},n.deactivate=function(){for(var e=0;e<this.hoverBricks.length;e++)this.hoverBricks[e].destroy();void 0!==this.moverTool&&void 0!==this.moverTool.destroy&&(this.moverTool.tickBtn.destroy(),this.moverTool.cancelBtn.destroy(),this.moverTool.destroy(),this.moverTool2.destroy())},this.activeTool=n}}),bootStrap.push(function(){game.tools.setFurniTool=function(m){game.tools.lastsweep=!1,game.ui.pinnedTool=!1,game.ui.pinningTool.reset(),game.debug(m.name),game.cursorHide(),game.tools.deactivate(),game.tut(m.tutNumber);var e=new Tool(m.name);e.createFurni=!0,e.data=m,e.canCommit=!1,e.onMouseDown=function(e,a){if(!0===this.data.data.dismantle&&void 0!==this.collide)return game.world.markRemoveObject(this.collide),this.collide.data.dismantle=!0;if(this.canCommit){var t;t=1==this.data.blocks?this.data.across+game.tools.direction:this.data.across;var i=this.data.down,n=(t-1)*game.tileSize,r=(i-1)*game.tileSize,o=game.tileSize,d=game.tileSize;if(e=game.atGridPos(game.gridPos(e)),4==this.data.blocks?"tablet"!==game.clientMode&&(a=game.atGridPos(game.gridPos(a-64))):a=game.atGridPos(game.gridPos(a)),void 0===this.data.mat?material="cash":material=this.data.mat,void 0!==this.data.cost){if(!game.spend(this.data.cost,material))return game.pooraf({data:{pay:this.data.cost,mat:material},x:e,y:a}),0;game.ouching({data:{pay:this.data.cost,mat:material},x:e,y:a})}if(furni=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.furni,n,r,o,d)),furni.name=m.name,furni.readName=m.readName,furni.cost=m.cost,furni.codename=m.codename,furni.direction=game.tools.direction,2==this.data.blocks)switch(game.tools.direction){case 0:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r+game.tileSize,128,game.tileSize),furni.height=game.tileSize,furni.width=128;break;case 1:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r,128,game.tileSize),furni.height=game.tileSize,furni.width=128;break;case 2:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize+game.tileSize,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize;break;case 3:furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize}if(3==this.data.blocks&&(furni.texture=game.render.newTexture(game.render.tilesets.furni,1+n,r,3*game.tileSize,3*game.tileSize),furni.height=3*game.tileSize,furni.width=3*game.tileSize),5==this.data.blocks&&(furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,2*game.tileSize,2*game.tileSize),furni.height=2*game.tileSize,furni.width=2*game.tileSize),6==this.data.blocks&&(furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,6*game.tileSize,5*game.tileSize),furni.height=5*game.tileSize,furni.width=6*game.tileSize),4==this.data.blocks)switch(game.tools.direction){case 0:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize;break;case 1:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize;break;case 2:furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize+game.tileSize,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize;break;case 3:furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,game.tileSize,128),furni.height=128,furni.width=game.tileSize}if(furni.x=e,furni.y=a,void 0!==this.data&&(void 0!==this.data.offsetX&&(furni.x=e-this.data.offsetX),void 0!==this.data.offsetY&&(furni.y=a-this.data.offsetY)),furni.alpha=.25,furni.offset=1,furni.data.direction=game.tools.direction,!0===this.data.data.standArea&&(furni.data.standArea={x:this.standArea.x+game.tileSize,y:this.standArea.y}),!0===this.data.data.standArea2&&(furni.data.standArea2={x:this.standArea2.x+game.tileSize,y:this.standArea2.y}),!0===this.data.data.standArea3&&(furni.data.standArea3={x:this.standArea3.x,y:this.standArea3.y}),!0===this.data.data.standArea4&&(furni.data.standArea4={x:this.standArea4.x,y:this.standArea4.y}),furni.itemid=this.data.id,void 0!==this.data.data.frames){o=game.tileSize,d=game.tileSize;var s=game.tileSize;6==this.data.blocks&&(d=320,s=o=384),frames=[],frames.push(furni.texture),texture=game.render.newTexture(game.render.tilesets.furni,n+s,r,o,d),frames.push(texture),texture=game.render.newTexture(game.render.tilesets.furni,n+s,r,o,d),frames.push(furni.texture),texture=game.render.newTexture(game.render.tilesets.furni,n+s+s,r,o,d),frames.push(texture),newFurni=new WorldObjectAnim(furni.x,furni.y,frames),newFurni.width=furni.width,newFurni.tutNumber=furni.tutNumber,newFurni.height=furni.height,game.world.defaultBuildFunction(newFurni),game.render.objectLayer.addChild(newFurni),newFurni.animationSpeed=.019*Math.random()+.001,newFurni.play(),newFurni.itemid=this.data.id,furni=newFurni,furni.name=m.name,furni.readName=m.readName,furni.codename=m.codename,furni.alpha=.25}else game.render.objectLayer.addChild(furni);furni.data=game.clone(this.data.data),game.world.addObject(furni),game.world.attachStandAreas(furni),game.tools.activeTool.moverTool.newX=game.tools.activeTool.moverTool.newX+game.tileSize,this.lastsweep=!1,this.onMouseMove(e,a),!game.isTut||4!=game.tutStep&&8!=game.tutStep||game.tools.setActiveTool("select")}},e.moverTool=!1,e.onMouseMove=function(e,a){var t;t=1==this.data.blocks?this.data.across+game.tools.direction:this.data.across;var i=this.data.down,n=(t-1)*game.tileSize,r=(i-1)*game.tileSize;e=game.atGridPos(game.gridPos(e)),a=4==this.data.blocks?game.atGridPos(game.gridPos(a-64)):game.atGridPos(game.gridPos(a));var o=game.tileSize,d=game.tileSize;if(!0===this.createFurni?(this.standArea={},this.standArea2={},this.standArea3={},this.standArea4={},e=game.atGridPos(game.gridPos(game.render.viewport.left+game.render.viewport.worldScreenWidth/2)),a=game.atGridPos(game.gridPos(game.render.viewport.top+game.render.viewport.worldScreenHeight/2)),this.furni=new WorldObject(e,a,game.render.newTexture(game.render.tilesets.furni,n,r,o,d)),game.ui.tempUnpin=!0,"tablet"===game.clientMode&&(!1!==this.moverTool&&void 0!==this.moverTool||(n=24*game.tileSize,r=9*game.tileSize,staticImage=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,n,r,o,d)),staticImage.width=o,staticImage.height=d,staticImage.displayGroup=game.render.uiLayer,this.moverTool=staticImage,this.moverTool.interactive=!0,this.dragging=!1,this.moverTool.OriginX=0,this.moverTool.OriginY=0,this.moverTool.newX=0,this.moverTool.newY=0,this.moverTool.startDrag=function(e){this.dragging=!0,origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),this.OriginX=origin.x-this.newX,this.OriginY=origin.y-this.newY,game.render.viewport.pause=!0,game.ui.tempUnpin=!0},this.moverTool.isDragging=function(e){if(!this.dragging)return!1;origin=game.render.viewport.toWorld(e.data.global.x,e.data.global.y),this.newX=origin.x-this.OriginX,this.newY=origin.y-this.OriginY},this.moverTool.endDrag=function(e){game.ui.tempUnpin=!1,game.render.viewport.pause=!1,this.dragging=!1},this.moverTool.on("pointerdown",this.moverTool.startDrag),this.moverTool.on("pointermove",this.moverTool.isDragging),this.moverTool.on("pointerup",this.moverTool.endDrag),this.moverTool.on("pointerupoutside",this.moverTool.endDrag),n=24*game.tileSize,r=7*game.tileSize,this.moverTool.tickBtn=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,n,r,64,64)),this.moverTool.tickBtn.width=64,this.moverTool.tickBtn.height=64,this.moverTool.tickBtn.displayGroup=game.render.uiLayer,this.moverTool.tickBtn.interactive=!0,this.moverTool.tickBtn.on("pointerdown",function(){game.ui.clicked=!0,game.ui.stageClick(game.tools.activeTool.furni.x,game.tools.activeTool.furni.y)}),game.render.aboveLife.addChild(this.moverTool.tickBtn),n=24*game.tileSize,r=6*game.tileSize,this.moverTool.cancelBtn=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,n,r,64,64)),this.moverTool.cancelBtn.width=64,this.moverTool.cancelBtn.height=64,this.moverTool.cancelBtn.displayGroup=game.render.uiLayer,this.moverTool.cancelBtn.interactive=!0,this.moverTool.cancelBtn.on("pointerdown",function(){game.ui.clicked=!0,game.tools.setActiveTool("select"),game.tools.closeMenus()}),n=24*game.tileSize,r=10*game.tileSize,1==this.data.dirs?this.moverTool.rotateBtn=!1:(this.moverTool.rotateBtn=new WorldObject(0,0,game.render.newTexture(game.render.tilesets.gui,n,r,64,64)),this.moverTool.rotateBtn.width=64,this.moverTool.rotateBtn.height=64,this.moverTool.rotateBtn.displayGroup=game.render.uiLayer,this.moverTool.rotateBtn.interactive=!0,this.moverTool.rotateBtn.on("pointerdown",function(){game.ui.clicked=!0,3<=game.tools.direction?game.tools.direction=0:game.tools.direction++}),game.render.aboveLife.addChild(this.moverTool.rotateBtn)),game.render.aboveLife.addChild(this.moverTool.cancelBtn),game.render.aboveLife.addChild(this.moverTool))),this.furni.alpha=1,game.render.objectLayer.addChild(this.furni),!(this.createFurni=!1)===this.data.data.standArea&&(this.standArea=game.standArea(),game.render.objectLayer.addChild(this.standArea)),!0===this.data.data.standArea2&&(this.standArea2=game.standArea(),game.render.objectLayer.addChild(this.standArea2)),!0===this.data.data.standArea3&&(this.standArea3=game.standArea(),game.render.objectLayer.addChild(this.standArea3)),!0===this.data.data.standArea4&&(this.standArea4=game.standArea(),game.render.objectLayer.addChild(this.standArea4))):this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,o,d),!0===this.data.data.standArea)switch(game.tools.direction){case 0:this.standArea.x=e,this.standArea.y=a+game.tileSize;break;case 1:this.standArea.x=e,this.standArea.y=a-game.tileSize;break;case 2:this.standArea.x=e+game.tileSize,this.standArea.y=a;break;case 3:this.standArea.x=e-game.tileSize,this.standArea.y=a}if(!0===this.data.data.standArea2)switch(game.tools.direction){case 0:this.standArea2.x=e,this.standArea2.y=a-game.tileSize;break;case 1:this.standArea2.x=e,this.standArea2.y=a+game.tileSize;break;case 2:this.standArea2.x=e-game.tileSize,this.standArea2.y=a;break;case 3:this.standArea2.x=e+game.tileSize,this.standArea2.y=a}if(!0===this.data.data.standArea3)switch(game.tools.direction){case 0:this.standArea3.x=e,this.standArea3.y=a;break;case 1:this.standArea3.x=e+game.tileSize,this.standArea3.y=a;break;case 2:this.standArea3.x=e,this.standArea3.y=a-16;break;case 3:this.standArea3.x=e,this.standArea3.y=a+game.tileSize}if(!0===this.data.data.standArea4)switch(game.tools.direction){case 0:this.standArea4.x=e+game.tileSize,this.standArea4.y=a+game.tileSize;break;case 1:this.standArea4.x=e,this.standArea4.y=a-game.tileSize;break;case 2:this.standArea4.x=e-game.tileSize,this.standArea4.y=a+game.tileSize;break;case 3:this.standArea4.x=e,this.standArea4.y=a+game.tileSize+game.tileSize}if(this.lastsweep&&(this.furni.tint=16711680),2==this.data.blocks)switch(game.tools.direction){case 0:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r+game.tileSize,128,game.tileSize),this.furni.height=game.tileSize,this.furni.width=128;break;case 1:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r,128,game.tileSize),this.furni.height=game.tileSize,this.furni.width=128;break;case 2:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize+game.tileSize,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize;break;case 3:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize}if(3==this.data.blocks&&(this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+1,r,4*game.tileSize,4*game.tileSize),this.furni.height=4*game.tileSize,this.furni.width=4*game.tileSize),5==this.data.blocks&&(this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,2*game.tileSize,2*game.tileSize),this.furni.height=2*game.tileSize,this.furni.width=2*game.tileSize),6==this.data.blocks&&(this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,6*game.tileSize,5*game.tileSize),this.furni.height=5*game.tileSize,this.furni.width=6*game.tileSize),4==this.data.blocks)switch(game.tools.direction){case 0:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize;break;case 1:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize;break;case 2:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n+game.tileSize+game.tileSize+game.tileSize,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize;break;case 3:this.furni.texture=game.render.newTexture(game.render.tilesets.furni,n,r,game.tileSize,128),this.furni.height=128,this.furni.width=game.tileSize}if(void 0!==this.data.offsetX?this.furni.x=e-this.data.offsetX:this.furni.x=e,void 0!==this.data.offsetY?this.furni.y=a-this.data.offsetY:this.furni.y=a,0==game.world.objects.length&&(this.lastsweep=!0),this.lastsweep?this.furni.tint=16777215:this.furni.tint=16711680,0<game.world.objects.length){checkIncrementer=50,!isNaN(this.collisionCheckId)&&null!=this.collisionCheckId&&0!=this.collisionCheckId||(this.fullsweep=!1,this.collisionCheckId=0);var s=this.collisionCheckId,m=this.collisionCheckId+checkIncrementer;m>game.world.objects.length?(this.collisionCheckId=0,m-=m-game.world.objects.length):this.collisionCheckId=m,game.debug("Last sweep: "+this.lastsweep+"check world objects Start: "+s+"End: "+m);for(var l=s;l<m;l++)if(void 0!==game.world.objects[l]&&"trash"!=game.world.objects[l].name)if(game.world.objects[l].tint=16777215,!0!==game.world.objects[l].data.buildFloor||"brickholder"==game.world.objects[l].name)if("allowwall"!=this.data.collide||"brickholder"!=game.world.objects[l].name){if(game.world.rCollision(this.furni,game.world.objects[l])||game.world.rCollision(this.standArea,game.world.objects[l]))return this.fullsweep=!1,game.world.objects[l].tint=16711680,this.furni.tint=16711680,this.collisionCheckId=0,this.canCommit=!1}else game.debug("brickholder 2");else game.debug("brickholder 1");m>=game.world.objects.length&&(this.fullsweep=!0,this.lastsweep=this.fullsweep,this.canCommit=!0)}},game.ui.tempUnpin=!1,e.deactivate=function(){for(var e=0;e<game.world.objects.length;e++)void 0!==game.world.objects[e]&&void 0!==game.world.objects[e].tint&&(game.world.objects[e].tint=16777215);void 0!==this.furni&&this.furni.destroy(),void 0!==this.moverTool&&void 0!==this.moverTool.destroy&&(this.moverTool.tickBtn.destroy(),this.moverTool.cancelBtn.destroy(),!1!==this.moverTool.rotateBtn&&this.moverTool.rotateBtn.destroy(),this.moverTool.destroy()),(this.createFurni=!0)===this.data.data.standArea&&void 0!==this.standArea&&(this.standArea.destroy(),game.world.removeObject(this.standArea.id)),!0===this.data.data.standArea2&&void 0!==this.standArea2&&(this.standArea2.destroy(),game.world.removeObject(this.standArea2.id)),!0===this.data.data.standArea3&&void 0!==this.standArea&&(this.standArea3.destroy(),game.world.removeObject(this.standArea3.id)),!0===this.data.data.standArea4&&void 0!==this.standArea4&&(this.standArea4.destroy(),game.world.removeObject(this.standArea4.id))},e.onMouseUp=function(e,a){this.lastsweep=!1},this.activeTool=e}});checker=function(){game.ai.taskCheckers.push(function(i){!0===i.data.customer&&"gohome"!=i.data.need&&(i.jobCount++,i.jobLevel=0,i.task="randomtask",i.phase=0,i.failed=!1,i.hasTask=!0,i.failedCount=0,i.timeSincePhaseBegan=0,i.executeTask=function(){if("gohome"==this.data.need)return this.hasTask=!1;var e=this.checkPhases();if(!1===(this.continueExec=e))return!1;if("calc"==this.status&&(e=!1),0===this.phase&&!0===e){if("gohome"==i.data.need)return hasNeed=!0,hasTask=!1;if(void 0===game.world.index[i.data.need])void 0!==game.ai.anims["no"+i.data.need]?anim="no"+i.data.need:anim="noanim",null==this.gotoObj&&!0!==this.ranNegativeInteraction&&this.anim!==anim&&(delete this.gotoObj,this.anim=anim,this.animLength=2,this.animComplete=function(){game.gameLog("A customer thinks you need more "+i.data.need+" furniture","red","nofurni",this),this.hasNeed=!1,this.hasTask=!1,this.gotoObj=void 0,this.data.happiness--,this.ranNegativeInteraction=!0,game.ai.calcNeeds(this),game.ai.runNegativeInteractions(this,{name:i.data.need})});else{if(0<Object.keys(game.world.index[i.data.need]).length){for(var a in game.world.index[i.data.need])if(!0===(a=game.world.index[i.data.need][a]).built){if(void 0!==a.takenTime&&5<game.timestamp()-a.takenTime&&!(a.taken=!1)===a.taken&&!1!==a.data.canBeTaken){if(void 0===this.gotoObj)continue;if(this.gotoObj.id!==a.id)continue}if(!0===a.taken)continue;void 0!==this.gotoObj&&this.gotoObj.taken,this.gotoObj=a,this.gotoObj.taken=!0,this.gotoObj.takenTime=game.timestamp(),(stand=void 0)!==this.gotoObj.data.standArea&&(stand=1),void 0!==this.gotoObj.data.standArea2&&(stand=2),void 0!==this.gotoObj.data.standArea3&&(stand=3),void 0!==this.gotoObj.data.standArea4&&(stand=4),game.world.indexCount("trash")<25&&(3===game.rand(0,15)?(trash=game.clone(game.world.objectTemplates.general.scuff1),trash.x=this.x,trash.y=this.y,game.world.furniFromObject(trash)):3===game.rand(0,15)&&(trash=game.clone(game.world.objectTemplates.general.scuff1),trash.x=this.x,trash.y=this.y,game.world.furniFromObject(trash))),this.phaseWalk(this.gotoObj,!0,stand);break}}else this.gotoObj=void 0;void 0!==game.ai.anims["no"+i.data.need]?anim="no"+i.data.need:anim="noanim",null==this.gotoObj&&!0!==this.ranNegativeInteraction&&this.anim!==anim&&(this.anim=anim,this.animLength=2,this.animComplete=function(){game.gameLog("A customer thinks you need more "+i.data.need+" furniture","red","nofurni",this),this.hasNeed=!1,this.hasTask=!1,this.gotoObj=void 0,this.data.happiness--,this.ranNegativeInteraction=!0,game.ai.calcNeeds(this),game.ai.runNegativeInteractions(this,{name:i.data.need})})}}if(1===this.phase&&!0===e&&(arrived=this.newPhaseArrived(this.gotoObj,150),arrived&&(void 0!==this.gotoObj.animRender&&(this.gotoObj.animRender.alpha=1),(!1===this.anim||void 0===this.anim)&&0===this.path.length))){game.ai.runInteractions(this,this.gotoObj),this.faceTowards(this.gotoObj),void 0!==this.gotoObj.data.runAnim?(this.anim=this.gotoObj.data.runAnim,game.debug("New anim: "+this.anim)):void 0!==this.gotoObj.data.anim?this.anim=this.gotoObj.data.anim:void 0!==game.ai.anims[this.gotoObj.codename]?this.anim=this.gotoObj.codename:this.anim="noanim";var t=function(){this.gotoObj.taken=!1,void 0!==this.gotoObj.animRender&&(this.gotoObj.animRender.alpha=1),this.data.toilet=this.data.toilet+game.rand(1,10),this.data.hunger=this.data.hunger+game.rand(1,10),this.data.happiness=this.data.happiness+game.rand(1,3),this.status="wait",this.hasTask=!1,this.executeTask=!1,this.hasNeed=!1,this.gotoObj.taken=!1,game.ai.calcNeeds(this),game.ai.runPostInteractions(this,this.gotoObj)};void 0!==this.gotoObj.data.elecUnits&&!1===game.hasPower&&(this.anim="noelec",t=function(){this.hasNeed=!1,this.data.happiness=this.data.happiness-game.rand(5,15),this.gotoObj.taken=!1,this.gotoObj=void 0,this.status="wait",game.ai.calcNeeds(this),this.hasTask=!1,this.executeTask=!1}),this.gotoObj.data.animLength?this.animLength=this.gotoObj.data.animLength:this.animLength=5,this.gotoObj.data.doNow&&(this.status="wait",this.hasTask=!1,this.executeTask=!1,this.hasNeed=!1,this.gotoObj.taken=!1),this.animComplete=t}1<this.phase&&!0===e&&(this.phase=0)})})};bootStrap.push(checker);checker=function(){game.ai.taskCheckers.push(function(e){!0===e.data.customer&&"gohome"===e.data.need&&(e.jobCount++,e.jobLevel=0,e.task="gohome",e.phase=0,e.failed=!1,e.hasTask=!0,e.failedCount=0,e.timeSincePhaseBegan=0,e.executeTask=function(){var e=this.checkPhases();if(!1===e)return!1;"calc"==this.status&&(e=!1),0===this.phase&&!0===e&&this.phaseWalk(game.deSpawn,!0),1===this.phase&&!0===e&&(arrived=this.phaseArrived(game.deSpawn,124),arrived&&"destroy"!==this.status&&(this.status="destroy",void 0!==this.data.happiness&&void 0===this.data.feedback&&(this.data.feedback=!0,70<=this.data.happiness?(game.gameLog("A customer left happy!","green"),game.settings.happyPeeps+=.1):this.data.happiness<=30&&(game.gameLog("A customer left unhappy!","red"),game.settings.happyPeeps-=.5))))})})};bootStrap.push(checker);var anims=function(){game.ai.anims.noanim=function(e){},game.ai.anims.cinema1=function(e){!1===e.animRender?(tileAcross=37,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.cinema2=function(e){!1===e.animRender?(tileAcross=38,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.cinema3=function(e){!1===e.animRender?(tileAcross=39,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.unicorn1=function(e){!1===e.animRender?(tileAcross=37,tileDown=3,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.unicorn2=function(e){!1===e.animRender?(tileAcross=38,tileDown=3,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.unicorn3=function(e){!1===e.animRender?(tileAcross=39,tileDown=3,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.balloon1=function(e){!1===e.animRender?(tileAcross=37,tileDown=4,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+54,e.animRender.y=e.y,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+54,e.animRender.y=e.y)},game.ai.anims.balloon2=function(e){!1===e.animRender?(tileAcross=38,tileDown=4,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+64,e.animRender.y=e.y,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+64,e.animRender.y=e.y)},game.ai.anims.balloon3=function(e){!1===e.animRender?(tileAcross=39,tileDown=4,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+44,e.animRender.y=e.y+10,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+44,e.animRender.y=e.y+10)},game.ai.anims.teddy1=function(e){!1===e.animRender?(tileAcross=37,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.teddy2=function(e){!1===e.animRender?(tileAcross=38,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.teddy3=function(e){!1===e.animRender?(tileAcross=39,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.walking=function(e){3<=e.animTicker&&(e.animTicker=0),1===e.direction&&(e.texture=e.textureUp[e.animTicker]),2===e.direction&&(e.texture=e.textureDown[e.animTicker]),3===e.direction&&(e.texture=e.textureRight[e.animTicker]),4===e.direction&&(e.texture=e.textureLeft[e.animTicker])},game.ai.anims.hammer=function(e){game.audio.sounds.ratchet.isEnded()&&(e.currentAudio=game.audio.sounds.ratchet,e.currentAudio.playOnce()),!1===e.animRender?(tileAcross=30,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/105))},game.ai.anims.sweep=function(e){game.audio.sounds.ratchet.isEnded()&&(e.currentAudio=game.audio.sounds.ratchet,e.currentAudio.playOnce()),!1===e.animRender?(tileAcross=31,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/105))},game.ai.anims.clipboard=function(e){!1===e.animRender?(tileAcross=34,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/300))},game.ai.anims.research=function(e){!1===e.animRender?(tileAcross=35,tileDown=3,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/300))},game.ai.anims.pool=function(e){!1===e.animRender?(tileAcross=35,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/1100))},game.ai.anims.tennis=function(e){!1===e.animRender?(tileAcross=35,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/105))},game.ai.anims.wash=function(e){!1===e.animRender?(tileAcross=36,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),e.animRender.rotation=Math.sin(-90),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32)},game.ai.anims.card=function(e){!1===e.animRender?(tileAcross=34,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender),e.animRender.rotation=Math.sin(90)):-.9<e.animRender.rotation?(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/350)):(e.animRot=e.animRender.rotation,e.anim="cardtocash",e.animRender.destroy(),e.animRender=!1)},game.ai.anims.cardtocash=function(e){!1===e.animRender?(tileAcross=34,tileDown=3,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),e.animRot&&(e.animRender.rotation=e.animRot),game.render.aboveLife.addChild(e.animRender)):3900<e.animTicker&&(e.animRot=e.animRender.rotation,e.anim="cashout",e.animRender.destroy(),e.animRender=!1)},game.ai.anims.cashout=function(e){!1===e.animRender?(tileAcross=33,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),e.animRot&&(e.animRender.rotation=e.animRot),game.render.aboveLife.addChild(e.animRender)):e.animRender.rotation<.4?(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/350)):e.animRender.alpha=0},game.ai.anims.cash=function(e){!1===e.animRender?(tileAcross=33,tileDown=1,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.anchor.set(.2,.2),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/105))},game.ai.anims.snack=function(e){!1===e.animRender?(e.face("right"),tileAcross=30,tileDown=5,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x,e.animRender.y=e.y,e.animRender.anchor.set(0,0),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/105))},game.ai.anims.drink=function(e){!1===e.animRender?(e.face("right"),tileAcross=30,tileDown=6,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x,e.animRender.y=e.y,e.animRender.anchor.set(0,0),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y+32,e.animRender.rotation=Math.sin(e.animTicker/5)*(.05*game.speed))},game.ai.anims.happy=function(e){!1===e.animRender?(tileAcross=30,tileDown=2,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x,e.animRender.y=e.y,e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.angry=function(e){!1===e.animRender?(tileAcross=6,tileDown=24,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.badprice=function(e){!1===e.animRender?(tileAcross=31,tileDown=7,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.nofood=function(e){!1===e.animRender?(tileAcross=32,tileDown=7,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.notoilet=function(e){!1===e.animRender?(tileAcross=33,tileDown=7,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.noelec=function(e){!1===e.animRender?(tileAcross=30,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.noseat=function(e){!1===e.animRender?(tileAcross=33,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.nopinball=function(e){!1===e.animRender?(tileAcross=32,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.noarcade=function(e){!1===e.animRender?(tileAcross=32,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.nosink=function(e){!1===e.animRender?(tileAcross=32,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))},game.ai.anims.nochange=function(e){!1===e.animRender?(tileAcross=31,tileDown=8,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+32,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),2===game.rand(0,25)&&(e.animRender.visible=!0),2===game.rand(0,50)&&(e.animRender.visible=!1))}};bootStrap.push(anims);anims=function(){game.ai.anims.chatter=function(e){!1===e.animRender?(tileAcross=game.rand(30,34),tileDown=4,sx=(tileAcross-1)*game.tileSize,sy=(tileDown-1)*game.tileSize,e.animRender=game.render.createAnimRender(e.anim,game.render.tilesets.skins,sx,sy,64,64),e.animRender.x=e.x,e.animRender.y=e.y,e.animRender.anchor.set(.5,.5),game.render.aboveLife.addChild(e.animRender)):(e.animRender.x=e.x+64,e.animRender.y=e.y-16,maxScale=50,0===e.animFrame&&(e.animFrame=100),52===game.rand(0,500)&&(e.animRender.visible=!0),86===game.rand(0,500)&&(e.animRender.visible=!1,e.animRender.destroy(),e.animRender=!1))}};bootStrap.push(anims);anims=function(){var e=function(e,a){a.data.runAnim="chatter"};game.ai.addInteraction(["seat"],e),e=function(e,a){a.data.pay>a.data.maxPay?(e.paying=!1,a.data.runAnim="badprice"):(a.data.runAnim="snack",e.data.hunger=0,e.data.hunger<0&&(e.data.hunger=0),e.paying=!0,e.hasNeed=!0,e.data.need="bin")},game.ai.addPostInteraction(["food"],e),e=function(e,a){var t=game.rand(1,4);"unicorns"==a.codename?e.data.holding="unicorn"+t:e.data.holding="teddy"+t},game.ai.addPostInteraction(["claw"],e),e=function(e,a){var t=game.rand(1,4);e.hasNeed=!0,e.data.need="cinemaseat",e.data.holding="cinema"+t},game.ai.addPostInteraction(["staffdesk"],e),e=function(e,a){e.hasNeed=!0,e.data.need="sink",e.data.toilet=0},game.ai.addPostInteraction(["toilet"],e),e=function(e){e.hasNeed=!1,e.hasNeed=!1,e.data.need="seat",game.ai.calcNeeds(e),game.world.indexCount("trash")<100&&3===game.rand(0,5)&&(trash=game.clone(game.world.objectTemplates.general.trash1),trash.x=this.x,trash.y=this.y,game.world.furniFromObject(trash)),game.ai.calcNeeds(e)},game.ai.addNegativeInteraction(["bin"],e),e=function(e){e.hasNeed=!0,e.data.need="seat",game.ai.calcNeeds(e),2==game.rand(1,3)?e.data.cash<1?(e.hasNeed=!0,e.data.need="gohome"):(e.data.need="gohome",e.hasNeed=!1):(e.hasNeed=!0,e.data.need="seat")},game.ai.addNegativeInteraction(["atm"],e),e=function(e){e.hasNeed=!0,e.data.need="seat",game.ai.calcNeeds(e),2==game.rand(1,3)?(e.data.cash<1||2==game.rand(1,6))&&(e.hasNeed=!0,e.data.need="gohome"):(e.hasNeed=!0,e.data.need="seat")},game.ai.addNegativeInteraction(["toilet","sink","food","seat"],e),e=function(e){e.data.cash=game.rand(100,500)},game.ai.addPostInteraction(["atm"],e),e=function(e,a){a.data.pay>a.data.maxPay?(e.paying=!1,a.data.runAnim="badprice"):(a.data.runAnim="happy",e.paying=!0)},game.ai.addInteraction(["pinball"],e),e=function(e,a){a.data.pay>a.data.maxPay?(e.paying=!1,a.data.runAnim="badprice"):(a.data.runAnim="happy",e.paying=!0)},game.ai.addInteraction(["cinema"],e)};bootStrap.push(anims);anims=function(){game.ai.addPostInteraction(["pinball","arcade","snack"],function(e,a){a.taken=!1,void 0!==a.data.pay&&!1!==e.paying&&(game.gain(a.data.pay),game.kaching(a),null==a.data.earnings&&(a.data.earnings=0),a.data.earnings+=a.data.pay/2,e.data.cash=e.data.cash-a.data.pay/2,e.data.cash<0&&(e.data.cash=0))})};bootStrap.push(anims);extend=function(){game.ai.statuses.wait=function(e){if(!0===e.data.isCat)return e.findNewPath(game.rand(0,game.mapDimension*game.tileSize),game.rand(0,game.mapDimension*game.tileSize)),!1;if("customer"!==e.data.job&&"customer"!==e.job){if(void 0!==game.world.index.watertank&&game.propCount(game.world.index.build)<2){if(item=game.randomItem(game.world.index.watertank),null==item)return!1;1==game.rand(1,3)?e.findNewPath(item.x+64*game.rand(0,2),item.y+64*game.rand(0,2)):e.findNewPath(item.x-64*game.rand(0,2),item.y-64*game.rand(0,2))}gotoRoom={x:game.atGridPos(game.mapDimension/2),y:game.atGridPos(game.mapDimension/2)+game.rand(0,2)}}else e.hasNeed||game.ai.calcNeeds(e)}};bootStrap.push(extend);tool=function(){game.ai.calcNeeds=function(e){if("gohome"==e.data.need)return!1;if(!1!==e.forceNeed&&void 0!==e.forceNeed)return e.data.need=e.forceNeed,!1;if(null==e.data.happiness&&(e.data.happiness=65),null==e.data.hunger&&(e.data.hunger=0),null==e.data.toilet&&(e.data.toilet=0),null==e.data.cash&&(e.data.cash=2500),e.hasNeed)return!1;100<e.data.happiness&&(e.data.happiness=100),100<e.data.hunger&&(e.data.hunger=100),100<e.data.toilet&&(e.data.toilet=100),e.data.happiness<0&&(e.data.happiness=0),e.data.hunger<0&&(e.data.hunger=0),e.data.toilet<0&&(e.data.toilet=0),defaultNeed="pinball",randNum=game.rand(0,game.needs.length),void 0===e.data.needCount&&(e.data.needCount=game.rand(10,1e3));var a=e.data.need;e.data.need=game.needs[randNum],65<e.data.hunger&&2==game.rand(1,3)&&("food"===e.data.need?e.data.need="seat":"food"!==a&&(e.data.need="food")),e.data.cash<=0&&(e.data.need="gohome"),e.data.cash<=game.rand(1,50)&&(e.data.need="atm"),65<e.data.toilet&&2==game.rand(1,3)&&"toilet"!==a&&"seat"!==a&&(e.data.need="toilet"),e.data.happiness<25&&(e.hasTask=!1,e.data.need="gohome"),e.hasNeed=!0}};bootStrap.push(tool);tool=function(){!0===_SETTINGS.debugWindow&&(window.open("debugger.html","popUpWindow","height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes"),game.dev=!0),game.dev={},game.grid.showBlockArea=function(){game.ai.pathFinders[0].postMessage(["getgridnow"])},game.grid.blockRects=[],game.grid.showWalls=function(e){for(var a=0;a<game.grid.blockRects.length;a++)game.grid.blockRects[a].destroy(),game.world.removeObject(game.grid.blockRects[a].id);game.grid.blockRects=[];for(var t=0;t<e.nodes.length;t++)for(var i=0;i<e.nodes[t].length;i++)!0===e.nodes[t][i].walkable?(rect=new PIXI.Graphics,rect.beginFill(65280,.3),rect.lineStyle(1,2697513)):(rect=new PIXI.Graphics,rect.beginFill(16711680,.3),rect.lineStyle(4,2697513)),rect.drawRect(0,0,64,64),rect.displayGroup=game.render.background,game.render.background.addChild(rect),rect.visible=!0,rect.x=game.atGridPos(i),rect.y=game.atGridPos(t),game.grid.blockRects.push(rect)},game.dev.getPropValues=function(e,a){for(var t in keys=Object.keys(e),html="<table>",e)value=e[t],null!==value&&void 0!==value||(value=""),void 0===value.toString&&(value=typeof value),(t.includes(a)||value.toString().includes(a))&&(html=html+"<tr><td>"+t+"</td><td>"+value.toString()+"</td></tr>");return html+="</table>",html},game.dev.displayPropValues=function(e,a,t){for(var i in keys=Object.keys(a),$(e).html("<table>"),a)value=a[i],(i.includes(t)||value.toString().includes(t))&&$(e).append("<tr><td>"+i+"</td><td>"+value+"</td></tr>");$(e).append("</table>")},game.dev.displayPropCount=function(e,a,t){for(var i in keys=Object.keys(a),game.dev.source=a,$(e).html("<table>"),a)value=a[i],i.includes(t)&&$(e).append("<tr><td><b class='btnDebug' data-screen='deep' data-deep='"+i+"'>"+i+"</td><td>"+game.propCount(value)+"</td></tr>");$(e).append("</table>")},game.dev.objectTemplates=function(e){for(var a in $(e).append("<table>"),game.world.objectTemplates)for(var t in game.world.objectTemplates[a])t=game.world.objectTemplates[a][t],$(e).append("<tr><td>"+t.codename+"</td><td>"+t.name+"</td></tr>");$(e).append("</table>")},game.dev.displayProp=function(e,a,t){for(var i in keys=Object.keys(a),$(e).append("<table>"),a)value=a[i],$(e).append("<tr><td><b class='btnDebug' data-screen='deep' data-deep='"+i+"'>"+i+"</td><td>"+game.dev.getPropValues(value,t)+"</td></tr>");$(e).append("</table>")},game.dev.deep=function(){key=game.dev.deepObj,str=$("#debugString").val(),$("#screen-deep").html(""),game.dev.displayProp("#screen-deep",game.dev.source[key],str)},game.dev.refresh=function(){str=$("#debugString").val(),$(".btnDebug").unbind(),game.dev.displayPropCount("#screen-default",game.world.index,str),game.dev.objectTemplates("#screen-default"),"deep"===game.dev.screenName&&game.dev.deep(),$(".btnDebug").click(function(){var e=$(this).data("screen");game.dev.screenName=e,tag="#screen-"+e,$(".debug-content").hide(),"deep"==e&&(game.dev.deepObj=$(this).data("deep")),$(tag).show(),game.dev.refresh()})},$(".debug-content").hide(),$("#screen-default").show(),$("#debugString").click(function(){$("#debugString").focus()}),$("#debugString").on("input",function(){game.dev.refresh()}),$("#toggleDebug").click(function(){$("#debug-tools").toggle()}),game.dev.refresh()};bootStrap.push(tool);tool=function(){game.fCash=function(e){return e.format()},game.fCashShort=function(e){return 5<=e?Math.round(e.toFixed(2)):e.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},game.spend=function(e,a,t){return void 0===a&&(a="cash"),game.debug("Spend: "+e+" of "+a),"cash"==a?(game.audio.sounds.spend.play(),e>game.cash?(!0===t&&(game.cash-=e),0):(game.cash-=e,1)):(items=game.globalInventory.getItem(a),e>items?0:(game.globalInventory.removeItem(a,e),1))},game.gain=function(e){!0===game.isTut&&1e4<game.cash&&(game.isTut=!1,game.completedTutorial()),game.cash+=e},game.kachings=[],game.debugKaching=function(e,a,t){var i=game.render.text(e,"cash");i.x=a,i.y=t,game.render.objectLayer.addChild(i),game.kachings.push(i),tween=createjs.Tween.get(i,{override:!0}).to({y:i.y-100,alpha:0},1e3/game.speed).addEventListener("complete",function(e){e.target.target.destroy()})},game.kachingFunc=function(e){game.kachings.push(e),e=void 0},game.kaching=function(e){return!!game.stats.measure()&&(!!game.world.objectStillGood(e)&&(sx=25*game.tileSize,sy=7*game.tileSize,cashola=new WorldSprite(e.x,e.y,game.render.newTexture(game.render.tilesets.gui,sx,sy,64,64)),tween=createjs.Tween.get(cashola,{override:!0}).to({y:cashola.y-100,alpha:0},1e3/game.speed).addEventListener("complete",function(e){e.target.target.destroy()}),void game.render.objectLayer.addChild(cashola)))},game.pooraf=function(e){if(!game.world.objectStillGood(e))return!1;mat=null==e?"cash":e.data.mat,kaching=game.render.text("Not enough "+mat+"!","redcash"),kaching.x=e.x,kaching.y=e.y,game.render.objectLayer.addChild(kaching),game.kachings.push(kaching),kaching=void 0},game.ouching=function(e){if(!game.world.objectStillGood(e))return!1;game.audio.sounds.spend.play(),kaching=game.render.text("$"+game.fCash(e.data.pay),"redcash"),kaching.x=e.x,kaching.y=e.y,game.render.objectLayer.addChild(kaching),game.kachings.push(kaching),kaching=void 0}};bootStrap.push(tool);tool=function(){game.ee.emitEvent("events-loaded"),game.ui.customerInfo=[],game.ui.hideCustomerInfo=function(e){for(var a=0;a<game.ui.customerInfo.length;a++)game.ui.customerInfo[a].destroy(),game.ui.customerInfo[a]=void 0;game.ui.customerInfo=[]},game.ui.showCustomerInfo=function(e){game.lifeClicked=!0,game.ui.hideCustomerInfo(),game.ui.hideStaffInfo(),void 0!==e.data.maxJobs&&(w=250,h=250,x=game.ui._VIEWPORT_RIGHT-w-15,y=game.ui._VIEWPORT_BOTTOM-h-15,game.ui.customerInfo.push(game.render.window(x,y,w,h,0,.8)),x+=15,y+=15,newText=game.render.text(e.data.job,"menu-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=35,clicked=function(e){e.status="destroy",game.ui.hideCustomerInfo(),game.ui.hideStaffInfo(),game.ui.notification("Fired staff member!")},newText=game.ui.greenButton("Fire",x,y,clicked,e),game.ui.customerInfo.push(newText[0]),game.ui.customerInfo.push(newText[1]),game.render.baseStage.addChild(newText[0]),game.render.baseStage.addChild(newText[1]),y+=35),void 0!==e.data.customerID&&(w=250,h=250,x=game.ui._VIEWPORT_RIGHT-w-15,y=game.ui._VIEWPORT_BOTTOM-h-15,game.ui.customerInfo.push(game.render.window(x,y,w,h,0,.8)),x+=15,y+=15,newText=game.render.text("Customer #"+e.data.customerID,"menu-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=35,newText=game.render.text(_LANG.BUDGET+" $"+e.data.cash,"smallcash"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,newText=game.render.text(_LANG.PERSONALITY+": "+e.data.personality,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,newText=game.render.text(_LANG.EXPERIENCE+": "+e.data.experience,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,void 0!==e.data.lastThought&&(newText=game.render.text("Last thought: "+e.data.lastThought,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20))},game.ui.hideStaffInfo=function(e){for(var a=0;a<game.ui.customerInfo.length;a++)game.ui.customerInfo[a].destroy(),game.ui.customerInfo[a]=void 0;game.ui.customerInfo=[]},game.ui.showStaffInfo=function(e){game.lifeClicked=!0,game.ui.hideCustomerInfo(),game.ui.hideStaffInfo(),void 0!==e.data.maxJobs&&(w=250,h=250,x=game.ui._VIEWPORT_RIGHT-w-15,y=game.ui._VIEWPORT_BOTTOM-h-15,game.ui.customerInfo.push(game.render.window(x,y,w,h,0,.8)),x+=15,y+=15,newText=game.render.text("Customer #"+e.data.customerID,"menu-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=35,newText=game.render.text(_LANG.BUDGET+" $"+e.data.cash,"smallcash"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,newText=game.render.text(_LANG.PERSONALITY+": "+e.data.personality,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,newText=game.render.text(_LANG.EXPERIENCE+": "+e.data.experience,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20,void 0!==e.data.lastThought&&!1!==game.settings.locked.readthoughts&&(newText=game.render.text("Last thought: "+e.data.lastThought,"standard-title"),newText.x=x,newText.y=y,game.ui.customerInfo.push(newText),game.render.baseStage.addChild(newText),y+=20))},game.events.clickLife=function(e){game.ui.showCustomerInfo(e)},game.events.clickFurni=function(e){}},tool=function(){game.track={},game.track.event=function(e,a){category="Game","undefined"!==ga&&!0!==game.dontTrack?ga("send","event",category,e,a):game.debug("No tracking available")},game.track.event("Game loaded "+game.lang,"Loaded: "+game.lang)};bootStrap.push(tool),bootStrap.push(function(){game.setMarketingSettings=function(){game.settings.marketing={},game.settings.marketing.custBudget=0,game.settings.marketing.increasePros=0,game.settings.marketing.decreaseRuffians=0,game.settings.marketing.maxBudget=250}}),bootStrap.push(function(){game.patients={},game.patients.availablePatients={},game.patientNames=["Hector","Jasper","Phil","Steph","Wensdi","Ladeda","Warwick","Theo","Jake","Demi","Zeti","Alexa","Dinlol","Pompo","El Pompo","Keybro","Gremblo","Shremblo","Balzack","Mizzy","Jizz","Wendle","Tidj","Tashybashi","Nico","Morgan","Jam","Jammy","Data","Dale","Luke","Pash","Anil"],game.patientBios=["Enjoys reading books","The life of the party!","The boring one","A very smart cookie","Super cool dude","Loves to play FPS games","The quiet one"],game.patientRandomJobs=["builder","miner","janitor","spare"],game.patients.newAvailablePatient=function(e){var a=game.rand(1,4),t=0;"builder"===e&&(t=a=0),"janitor"===e&&(a=0,t=1),"manager"===e&&(t=a=1),"researcher"===e&&(a=1,t=0);var i=game.rand(1,5),n=game.patientNames[game.rand(0,game.patientNames.length-1)],r=game.patientBios[game.rand(0,game.patientBios.length-1)];void 0===e&&(e=game.patientRandomJobs[game.rand(0,game.patientRandomJobs.length-1)]);var o=game.ai.createLifePhoto(1,a,t,3,i);o.data.body={},o.data.body.hat=3,o.data.body.head=i,o.data.body.across=1,o.data.body.down=a,o.data.female=t,pre="Nickname: ",o.data.patient={},o.data.patient.name=pre+n,o.data.patient.rawName=n,o.data.patient.bio=r,o.data.patient.love=100,o.data.patient.compliance=20,o.data.patient.creativity=100,o.data.patient.skill=e,o.data.patient.skillLevel=game.rand(0,20),game.gameLog("New staff are available"),null==game.patients.availablePatients[e]&&(game.patients.availablePatients[e]=[]),game.patients.availablePatients[e].push(o)},game.patients.addPatientToWorld=function(e,a){if(game.gameLog("Hired "+e),void 0===game.patients.availablePatients[e][a])return game.debug("Cant find that patient? "+a),!1;patient=game.patients.availablePatients[e][a],1==patient.data.female&&(patient.data.body.across+=4),game.patients.availablePatients[e].splice(a,1),newPatient=game.ai.createLife(300,300,patient.data.body.across,patient.data.body.down,!0,patient.data.female,patient.data.body.hat,patient.data.body.head,patient.data.patient.rawName),newPatient.data.patient=patient.data.patient,newPatient.data.body=patient.data.body,newPatient.data.female=patient.data.female,newPatient.giveJob(patient.data.patient.skill),newPatient.data.jobs=game.jobs.allJobs,newPatient.status="wait",newPatient.data.skillLevel=patient.data.skillLevel,newPatient.interactive=!0}}),bootStrap.push(function(){game.playerLog=[],game.ui.gameLogOpen=!1,game.ui.logRefresh=0,game.tickers.push(function(){if(!0!==game.ui.gameLogOpen)return!1;game.ui.logRefresh++,100<game.ui.logRefresh&&(game.ui.logRefresh=0,game.ui.refreshGameLog())}),game.settings.playerLogLimit=10,game.addPlayerLog=function(e,a){null==a&&(a="default"),logLimit=game.settings.playerLogLimit,game.playerLog.unshift([e,a]),game.playerLog.length>logLimit&&game.playerLog.pop()},game.addPlayerLog("Game started"),game.getPlayerLog=function(e){return game.playerLog},game.ui.gameLogContents=[],game.ui.refreshGameLog=function(){game.ui.destroyGameLog(),sx=0,sy=0,windowW=500,windowH=400,window1=game.render.window(0,0,windowW,windowH,_SETTINGS.ColorStyles.WindowMain,1,void 0,game.render.baseStage),window1.isCenter(),game.ui.gameLogContents.push(window1),btn=game.ui.closeButton(window1.x+window1.width-50,window1.y+10,function(){game.ui.hideGameLog()},game.render.baseStage),game.ui.gameLogContents.push(btn),windowTitle=game.render.text("History","menu-title-red"),windowTitle.x=window1.x+25,windowTitle.y=window1.y+10,game.ui.gameLogContents.push(windowTitle),game.render.baseStage.addChild(windowTitle),yOffset=window1.y+50;for(var e=0;e<game.playerLog.length;e++){yOffset+=30;var a=game.render.text(game.playerLog[e][0],"longerwhitedesc");a.x=window1.x+25,a.y=yOffset,game.ui.gameLogContents.push(a),game.render.baseStage.addChild(a)}},game.ui.showGameLog=function(){game.ui.gameLogOpen=!0,game.ui.refreshGameLog()},game.ui.hideGameLog=function(){game.ui.gameLogOpen=!1,game.ui.destroyGameLog()},game.ui.destroyGameLog=function(){for(var e=0;e<game.ui.gameLogContents.length;e++)void 0!==game.ui.gameLogContents[e].destroy?(game.ui.gameLogContents[e].destroy(),game.ui.gameLogContents[e]=void 0):game.debug("Undefined destroy");game.ui.gameLogContents=[]},game.gameLog=function(e,a,t,i){return game.addPlayerLog(e)},game.ee.on("hudupdate",game.ui.hideGameLog),game.ee.on("updateall",game.ui.hideGameLog),game.clearLog=function(){$("#game-log-contents").empty()}});tool=function(){game.bills={},game.bills.elecRate=25,game.bills.flatRate=500,game.paidLastBill=!0,game.calculateBill=function(){var e;if(!0!==game.started)return!1;if(!0===game.started){if(billText=_LANG.ELEC_BILL_1+"\n\n",unitsUsed=0,uniques={},void 0!==game.world.index.on){for(e in game.world.index.on)void 0!==game.world.index.on[e].data.elecUnits&&(unitsUsed+=game.world.index.on[e].data.elecUnits,null==uniques[game.world.index.on[e].readName]&&(uniques[game.world.index.on[e].readName]=0),uniques[game.world.index.on[e].readName]+=game.world.index.on[e].data.elecUnits);totalBill=unitsUsed*game.bills.elecRate}else totalBill=0;for(e in maxItems=7,start=0,uniques){if(start++,!(start<maxItems)){billText+="...(trimmed)\n";break}billText+=e+_LANG.ELEC_BILL_2+uniques[e]+"\n"}1===game.spend(totalBill,"cash",!0)?(billText+="\n"+_LANG.ELEC_BILL_3+" $"+game.bills.elecRate+"\n"+_LANG.ELEC_BILL_4+" "+unitsUsed+"\n\n"+_LANG.ELEC_BILL_5+" $"+totalBill+"\n\n ["+_LANG.ELEC_BILL_6+"]",game.paidLastBill=!0):!1===game.paidLastBill?game.lose("elecbill"):(game.paidLastBill=!1,billText+="\n\n"+_LANG.ELEC_BILL_5+" $"+totalBill+"\n ["+_LANG.ELEC_BILL_7+"]"),game.ui.largeNotification(billText)}},game.world.addTimeFunction(18,{},game.calculateBill),game.world.addTimeFunction(19,{},game.randomEvent.newEvent)};bootStrap.push(tool),bootStrap.push(function(){game.settings.failHappiness=25,game.settings.warnHappiness=30,game.checkFails=function(){!0===game.started&&(game.saves.save(),game.debug("Checking fail states"),game.settings.happyPeeps<game.settings.failHappiness&&game.ui.notification("Your happiness has hit an all time low! You really need to improve the happiness of your arcade or you risk failing!"),game.settings.happyPeeps<game.settings.warnHappiness&&game.ui.notification("Your happiness is very low! If it drops below {1}% then you will struggle to stay in business!".replace("{1}",game.settings.failHappiness)),game.cash<-1e3&&game.settings.happyPeeps<0&&game.ui.notification("Your cashflow and happiness is too low, you have failed to turn your Arcade into a success. You may continue but it will be hard to return to profit."))},game.world.addTimeFunction(0,{},game.checkFails),game.world.addTimeFunction(12,{},game.checkFails),game.world.power={},game.world.power.lastCheck=0,game.world.powerGrid={},game.world.powerChecksInt=0,game.world.power.checkCables=function(e){game.debug("Check cables for: "+e.id);var a=game.gridPos(e.x),t=game.gridPos(e.y+64);game.debug("Check cables at x:"+a+" y: "+t),game.world.powerChecksInt=0,game.world.power.checkPower(a,t,e)},game.world.power.toggleWire=function(e,a,t){void 0!==game.world.powerGrid[e+"-"+a]?void 0===game.world.powerGrid[e+"-"+a][2][t.id]&&(game.world.powerGrid[e+"-"+a][0]=t.powered,void 0===game.world.powerGrid[e+"-"+a][2][t.id]&&(game.world.powerGrid[e+"-"+a][1]+=t.data.watts,game.world.powerGrid[e+"-"+a][2][t.id]=t.data.watts)):(sources={},sources[t.id]=t.data.watts,game.world.powerGrid[e+"-"+a]=[t.powered,t.data.watts,sources])},game.world.power.checkPower=function(e,a,t,i){if(void 0!==game.world.powerGrid[e+"-"+a]&&void 0!==game.world.powerGrid[e+"-"+a][2][t.id])return game.world.power.toggleWire(e,a,t),!1;if(game.world.powerChecksInt++,game.grid.checkWire(e,a)){if(game.world.power.toggleWire(e,a,t),l=game.grid.checkWire(e-1,a),r=game.grid.checkWire(e+1,a),u=game.grid.checkWire(e,a-1),d=game.grid.checkWire(e,a+1),!(l||r||u||d))return!1;game.world.power.checkPower(e-1,a,t,"l"),game.world.power.checkPower(e+1,a,t,"r"),game.world.power.checkPower(e,a-1,t,"u"),game.world.power.checkPower(e,a+1,t,"d")}},game.world.power.runPowerCheck=function(){if($("#txt-x").html(game.cursor.x),$("#txt-y").html(game.cursor.y),$("#txt-gridx").html(game.gridPos(game.mouseX)),$("#txt-gridy").html(game.gridPos(game.mouseY)),void 0!==game.world.powerGrid[game.gridPos(game.mouseX)+"-"+game.gridPos(game.mouseY)]?($("#txt-power").html(game.world.powerGrid[game.gridPos(game.mouseX)+"-"+game.gridPos(game.mouseY)][0]),$("#txt-power").append("<br />"),$("#txt-power").append("W:"+game.world.powerGrid[game.gridPos(game.mouseX)+"-"+game.gridPos(game.mouseY)][1])):$("#txt-power").html("No"),doPowaCheck=!1,0===game.world.power.lastCheck&&(game.world.power.lastCheck=Date.now()),void 0===game.world.index.power||game.world.index.power.length<1)return doPowaCheck=!1;if(1e4<Date.now()-game.world.power.lastCheck&&(doPowaCheck=!0),!doPowaCheck)return!1;for(var e in game.world.powerGrid={},game.debug("Check powa"),game.world.power.lastCheck=Date.now(),powerItems=game.world.index.noPower,powerItems)pwr=powerItems[e],game.world.power.checkCables(pwr);for(e in powerItems=game.world.index.power,powerItems)pwr=powerItems[e],game.world.power.checkCables(pwr);game.grid.drawn=!1,game.grid.drawWalls()}})</script><script type="text/javascript" src="secret_sauce.js"></script><script type="text/javascript" src="core/nominify.js"></script><script id="pathFinder" type="javascript/worker">//PATHFINDING WORKER
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.PF=t()}}(function(){return function t(e,i,n){function o(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);throw new Error("Cannot find module '"+a+"'")}var h=i[a]={exports:{}};e[a][0].call(h.exports,function(t){var i=e[a][1][t];return o(i?i:t)},h,h.exports,t,e,i,n)}return i[a].exports}for(var r="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,i){e.exports=t("./lib/heap")},{"./lib/heap":2}],2:[function(t,e,i){(function(){var t,i,n,o,r,a,s,l,h,u,p,c,f,d,g;n=Math.floor,u=Math.min,i=function(t,e){return t<e?-1:t>e?1:0},h=function(t,e,o,r,a){var s;if(null==o&&(o=0),null==a&&(a=i),o<0)throw new Error("lo must be non-negative");for(null==r&&(r=t.length);o<r;)s=n((o+r)/2),a(e,t[s])<0?r=s:o=s+1;return[].splice.apply(t,[o,o-o].concat(e)),e},a=function(t,e,n){return null==n&&(n=i),t.push(e),d(t,0,t.length-1,n)},r=function(t,e){var n,o;return null==e&&(e=i),n=t.pop(),t.length?(o=t[0],t[0]=n,g(t,0,e)):o=n,o},l=function(t,e,n){var o;return null==n&&(n=i),o=t[0],t[0]=e,g(t,0,n),o},s=function(t,e,n){var o;return null==n&&(n=i),t.length&&n(t[0],e)<0&&(o=[t[0],e],e=o[0],t[0]=o[1],g(t,0,n)),e},o=function(t,e){var o,r,a,s,l,h;for(null==e&&(e=i),s=function(){h=[];for(var e=0,i=n(t.length/2);0<=i?e<i:e>i;0<=i?e++:e--)h.push(e);return h}.apply(this).reverse(),l=[],r=0,a=s.length;r<a;r++)o=s[r],l.push(g(t,o,e));return l},f=function(t,e,n){var o;if(null==n&&(n=i),o=t.indexOf(e),o!==-1)return d(t,0,o,n),g(t,o,n)},p=function(t,e,n){var r,a,l,h,u;if(null==n&&(n=i),a=t.slice(0,e),!a.length)return a;for(o(a,n),u=t.slice(e),l=0,h=u.length;l<h;l++)r=u[l],s(a,r,n);return a.sort(n).reverse()},c=function(t,e,n){var a,s,l,p,c,f,d,g,b,v;if(null==n&&(n=i),10*e<=t.length){if(p=t.slice(0,e).sort(n),!p.length)return p;for(l=p[p.length-1],g=t.slice(e),c=0,d=g.length;c<d;c++)a=g[c],n(a,l)<0&&(h(p,a,0,null,n),p.pop(),l=p[p.length-1]);return p}for(o(t,n),v=[],s=f=0,b=u(e,t.length);0<=b?f<b:f>b;s=0<=b?++f:--f)v.push(r(t,n));return v},d=function(t,e,n,o){var r,a,s;for(null==o&&(o=i),r=t[n];n>e&&(s=n-1>>1,a=t[s],o(r,a)<0);)t[n]=a,n=s;return t[n]=r},g=function(t,e,n){var o,r,a,s,l;for(null==n&&(n=i),r=t.length,l=e,a=t[e],o=2*e+1;o<r;)s=o+1,s<r&&!(n(t[o],t[s])<0)&&(o=s),t[e]=t[o],e=o,o=2*e+1;return t[e]=a,d(t,l,e,n)},t=function(){function t(t){this.cmp=null!=t?t:i,this.nodes=[]}return t.push=a,t.pop=r,t.replace=l,t.pushpop=s,t.heapify=o,t.updateItem=f,t.nlargest=p,t.nsmallest=c,t.prototype.push=function(t){return a(this.nodes,t,this.cmp)},t.prototype.pop=function(){return r(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return this.nodes.indexOf(t)!==-1},t.prototype.replace=function(t){return l(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return s(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return o(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return f(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return e=new t,e.nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),("undefined"!=typeof e&&null!==e?e.exports:void 0)?e.exports=t:window.Heap=t}).call(this)},{}],3:[function(t,e,i){var n={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4};e.exports=n},{}],4:[function(t,e,i){function n(t,e,i){var n;"object"!=typeof t?n=t:(e=t.length,n=t[0].length,i=t),this.width=n,this.height=e,this.nodes=this._buildNodes(n,e,i)}var o=t("./Node"),r=t("./DiagonalMovement");n.prototype._buildNodes=function(t,e,i){var n,r,a=new Array(e);for(n=0;n<e;++n)for(a[n]=new Array(t),r=0;r<t;++r)a[n][r]=new o(r,n);if(void 0===i)return a;if(i.length!==e||i[0].length!==t)throw new Error("Matrix size does not fit");for(n=0;n<e;++n)for(r=0;r<t;++r)i[n][r]&&(a[n][r].walkable=!1);return a},n.prototype.getNodeAt=function(t,e){return this.nodes[e][t]},n.prototype.isWalkableAt=function(t,e){return this.isInside(t,e)&&this.nodes[e][t].walkable},n.prototype.isInside=function(t,e){return t>=0&&t<this.width&&e>=0&&e<this.height},n.prototype.setWalkableAt=function(t,e,i){this.nodes[e][t].walkable=i},n.prototype.getNeighbors=function(t,e){var i=t.x,n=t.y,o=[],a=!1,s=!1,l=!1,h=!1,u=!1,p=!1,c=!1,f=!1,d=this.nodes;if(this.isWalkableAt(i,n-1)&&(o.push(d[n-1][i]),a=!0),this.isWalkableAt(i+1,n)&&(o.push(d[n][i+1]),l=!0),this.isWalkableAt(i,n+1)&&(o.push(d[n+1][i]),u=!0),this.isWalkableAt(i-1,n)&&(o.push(d[n][i-1]),c=!0),e===r.Never)return o;if(e===r.OnlyWhenNoObstacles)s=c&&a,h=a&&l,p=l&&u,f=u&&c;else if(e===r.IfAtMostOneObstacle)s=c||a,h=a||l,p=l||u,f=u||c;else{if(e!==r.Always)throw new Error("Incorrect value of diagonalMovement");s=!0,h=!0,p=!0,f=!0}return s&&this.isWalkableAt(i-1,n-1)&&o.push(d[n-1][i-1]),h&&this.isWalkableAt(i+1,n-1)&&o.push(d[n-1][i+1]),p&&this.isWalkableAt(i+1,n+1)&&o.push(d[n+1][i+1]),f&&this.isWalkableAt(i-1,n+1)&&o.push(d[n+1][i-1]),o},n.prototype.clone=function(){var t,e,i=this.width,r=this.height,a=this.nodes,s=new n(i,r),l=new Array(r);for(t=0;t<r;++t)for(l[t]=new Array(i),e=0;e<i;++e)l[t][e]=new o(e,t,a[t][e].walkable);return s.nodes=l,s},e.exports=n},{"./DiagonalMovement":3,"./Node":6}],5:[function(t,e,i){e.exports={manhattan:function(t,e){return t+e},euclidean:function(t,e){return Math.sqrt(t*t+e*e)},octile:function(t,e){var i=Math.SQRT2-1;return t<e?i*t+e:i*e+t},chebyshev:function(t,e){return Math.max(t,e)}}},{}],6:[function(t,e,i){function n(t,e,i){this.x=t,this.y=e,this.walkable=void 0===i||i}e.exports=n},{}],7:[function(t,e,i){function n(t){for(var e=[[t.x,t.y]];t.parent;)t=t.parent,e.push([t.x,t.y]);return e.reverse()}function o(t,e){var i=n(t),o=n(e);return i.concat(o.reverse())}function r(t){var e,i,n,o,r,a=0;for(e=1;e<t.length;++e)i=t[e-1],n=t[e],o=i[0]-n[0],r=i[1]-n[1],a+=Math.sqrt(o*o+r*r);return a}function a(t,e,i,n){var o,r,a,s,l,h,u=Math.abs,p=[];for(a=u(i-t),s=u(n-e),o=t<i?1:-1,r=e<n?1:-1,l=a-s;;){if(p.push([t,e]),t===i&&e===n)break;h=2*l,h>-s&&(l-=s,t+=o),h<a&&(l+=a,e+=r)}return p}function s(t){var e,i,n,o,r,s,l=[],h=t.length;if(h<2)return l;for(r=0;r<h-1;++r)for(e=t[r],i=t[r+1],n=a(e[0],e[1],i[0],i[1]),o=n.length,s=0;s<o-1;++s)l.push(n[s]);return l.push(t[h-1]),l}function l(t,e){var i,n,o,r,s,l,h,u,p,c,f,d=e.length,g=e[0][0],b=e[0][1],v=e[d-1][0],A=e[d-1][1];for(i=g,n=b,s=[[i,n]],l=2;l<d;++l){for(u=e[l],o=u[0],r=u[1],p=a(i,n,o,r),f=!1,h=1;h<p.length;++h)if(c=p[h],!t.isWalkableAt(c[0],c[1])){f=!0;break}f&&(lastValidCoord=e[l-1],s.push(lastValidCoord),i=lastValidCoord[0],n=lastValidCoord[1])}return s.push([v,A]),s}function h(t){if(t.length<3)return t;var e,i,n,o,r,a,s=[],l=t[0][0],h=t[0][1],u=t[1][0],p=t[1][1],c=u-l,f=p-h;for(r=Math.sqrt(c*c+f*f),c/=r,f/=r,s.push([l,h]),a=2;a<t.length;a++)e=u,i=p,n=c,o=f,u=t[a][0],p=t[a][1],c=u-e,f=p-i,r=Math.sqrt(c*c+f*f),c/=r,f/=r,c===n&&f===o||s.push([e,i]);return s.push([u,p]),s}i.backtrace=n,i.biBacktrace=o,i.pathLength=r,i.interpolate=a,i.expandPath=s,i.smoothenPath=l,i.compressPath=h},{}],8:[function(t,e,i){e.exports={Heap:t("heap"),Node:t("./core/Node"),Grid:t("./core/Grid"),Util:t("./core/Util"),DiagonalMovement:t("./core/DiagonalMovement"),Heuristic:t("./core/Heuristic"),AStarFinder:t("./finders/AStarFinder"),BestFirstFinder:t("./finders/BestFirstFinder"),BreadthFirstFinder:t("./finders/BreadthFirstFinder"),DijkstraFinder:t("./finders/DijkstraFinder"),BiAStarFinder:t("./finders/BiAStarFinder"),BiBestFirstFinder:t("./finders/BiBestFirstFinder"),BiBreadthFirstFinder:t("./finders/BiBreadthFirstFinder"),BiDijkstraFinder:t("./finders/BiDijkstraFinder"),IDAStarFinder:t("./finders/IDAStarFinder"),JumpPointFinder:t("./finders/JumpPointFinder")}},{"./core/DiagonalMovement":3,"./core/Grid":4,"./core/Heuristic":5,"./core/Node":6,"./core/Util":7,"./finders/AStarFinder":9,"./finders/BestFirstFinder":10,"./finders/BiAStarFinder":11,"./finders/BiBestFirstFinder":12,"./finders/BiBreadthFirstFinder":13,"./finders/BiDijkstraFinder":14,"./finders/BreadthFirstFinder":15,"./finders/DijkstraFinder":16,"./finders/IDAStarFinder":17,"./finders/JumpPointFinder":22,heap:1}],9:[function(t,e,i){function n(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.heuristic=t.heuristic||a.manhattan,this.weight=t.weight||1,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=s.OnlyWhenNoObstacles:this.diagonalMovement=s.IfAtMostOneObstacle:this.diagonalMovement=s.Never),this.diagonalMovement===s.Never?this.heuristic=t.heuristic||a.manhattan:this.heuristic=t.heuristic||a.octile}var o=t("heap"),r=t("../core/Util"),a=t("../core/Heuristic"),s=t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,a){var s,l,h,u,p,c,f,d,g=new o(function(t,e){return t.f-e.f}),b=a.getNodeAt(t,e),v=a.getNodeAt(i,n),A=this.heuristic,m=this.diagonalMovement,y=this.weight,k=Math.abs,M=Math.SQRT2;for(b.g=0,b.f=0,g.push(b),b.opened=!0;!g.empty();){if(s=g.pop(),s.closed=!0,s===v)return r.backtrace(v);for(l=a.getNeighbors(s,m),u=0,p=l.length;u<p;++u)h=l[u],h.closed||(c=h.x,f=h.y,d=s.g+(c-s.x===0||f-s.y===0?1:M),(!h.opened||d<h.g)&&(h.g=d,h.h=h.h||y*A(k(c-i),k(f-n)),h.f=h.g+h.h,h.parent=s,h.opened?g.updateItem(h):(g.push(h),h.opened=!0)))}return[]},e.exports=n},{"../core/DiagonalMovement":3,"../core/Heuristic":5,"../core/Util":7,heap:1}],10:[function(t,e,i){function n(t){o.call(this,t);var e=this.heuristic;this.heuristic=function(t,i){return 1e6*e(t,i)}}var o=t("./AStarFinder");n.prototype=new o,n.prototype.constructor=n,e.exports=n},{"./AStarFinder":9}],11:[function(t,e,i){function n(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.heuristic=t.heuristic||a.manhattan,this.weight=t.weight||1,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=s.OnlyWhenNoObstacles:this.diagonalMovement=s.IfAtMostOneObstacle:this.diagonalMovement=s.Never),this.diagonalMovement===s.Never?this.heuristic=t.heuristic||a.manhattan:this.heuristic=t.heuristic||a.octile}var o=t("heap"),r=t("../core/Util"),a=t("../core/Heuristic"),s=t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,a){var s,l,h,u,p,c,f,d,g=function(t,e){return t.f-e.f},b=new o(g),v=new o(g),A=a.getNodeAt(t,e),m=a.getNodeAt(i,n),y=this.heuristic,k=this.diagonalMovement,M=this.weight,W=Math.abs,w=Math.SQRT2,N=1,x=2;for(A.g=0,A.f=0,b.push(A),A.opened=N,m.g=0,m.f=0,v.push(m),m.opened=x;!b.empty()&&!v.empty();){for(s=b.pop(),s.closed=!0,l=a.getNeighbors(s,k),u=0,p=l.length;u<p;++u)if(h=l[u],!h.closed){if(h.opened===x)return r.biBacktrace(s,h);c=h.x,f=h.y,d=s.g+(c-s.x===0||f-s.y===0?1:w),(!h.opened||d<h.g)&&(h.g=d,h.h=h.h||M*y(W(c-i),W(f-n)),h.f=h.g+h.h,h.parent=s,h.opened?b.updateItem(h):(b.push(h),h.opened=N))}for(s=v.pop(),s.closed=!0,l=a.getNeighbors(s,k),u=0,p=l.length;u<p;++u)if(h=l[u],!h.closed){if(h.opened===N)return r.biBacktrace(h,s);c=h.x,f=h.y,d=s.g+(c-s.x===0||f-s.y===0?1:w),(!h.opened||d<h.g)&&(h.g=d,h.h=h.h||M*y(W(c-t),W(f-e)),h.f=h.g+h.h,h.parent=s,h.opened?v.updateItem(h):(v.push(h),h.opened=x))}}return[]},e.exports=n},{"../core/DiagonalMovement":3,"../core/Heuristic":5,"../core/Util":7,heap:1}],12:[function(t,e,i){function n(t){o.call(this,t);var e=this.heuristic;this.heuristic=function(t,i){return 1e6*e(t,i)}}var o=t("./BiAStarFinder");n.prototype=new o,n.prototype.constructor=n,e.exports=n},{"./BiAStarFinder":11}],13:[function(t,e,i){function n(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=r.OnlyWhenNoObstacles:this.diagonalMovement=r.IfAtMostOneObstacle:this.diagonalMovement=r.Never)}var o=t("../core/Util"),r=t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,r){var a,s,l,h,u,p=r.getNodeAt(t,e),c=r.getNodeAt(i,n),f=[],d=[],g=this.diagonalMovement,b=0,v=1;for(f.push(p),p.opened=!0,p.by=b,d.push(c),c.opened=!0,c.by=v;f.length&&d.length;){for(l=f.shift(),l.closed=!0,a=r.getNeighbors(l,g),h=0,u=a.length;h<u;++h)if(s=a[h],!s.closed)if(s.opened){if(s.by===v)return o.biBacktrace(l,s)}else f.push(s),s.parent=l,s.opened=!0,s.by=b;for(l=d.shift(),l.closed=!0,a=r.getNeighbors(l,g),h=0,u=a.length;h<u;++h)if(s=a[h],!s.closed)if(s.opened){if(s.by===b)return o.biBacktrace(s,l)}else d.push(s),s.parent=l,s.opened=!0,s.by=v}return[]},e.exports=n},{"../core/DiagonalMovement":3,"../core/Util":7}],14:[function(t,e,i){function n(t){o.call(this,t),this.heuristic=function(t,e){return 0}}var o=t("./BiAStarFinder");n.prototype=new o,n.prototype.constructor=n,e.exports=n},{"./BiAStarFinder":11}],15:[function(t,e,i){function n(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=r.OnlyWhenNoObstacles:this.diagonalMovement=r.IfAtMostOneObstacle:this.diagonalMovement=r.Never)}var o=t("../core/Util"),r=t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,r){var a,s,l,h,u,p=[],c=this.diagonalMovement,f=r.getNodeAt(t,e),d=r.getNodeAt(i,n);for(p.push(f),f.opened=!0;p.length;){if(l=p.shift(),l.closed=!0,l===d)return o.backtrace(d);for(a=r.getNeighbors(l,c),h=0,u=a.length;h<u;++h)s=a[h],s.closed||s.opened||(p.push(s),s.opened=!0,s.parent=l)}return[]},e.exports=n},{"../core/DiagonalMovement":3,"../core/Util":7}],16:[function(t,e,i){function n(t){o.call(this,t),this.heuristic=function(t,e){return 0}}var o=t("./AStarFinder");n.prototype=new o,n.prototype.constructor=n,e.exports=n},{"./AStarFinder":9}],17:[function(t,e,i){function n(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.heuristic=t.heuristic||o.manhattan,this.weight=t.weight||1,this.trackRecursion=t.trackRecursion||!1,this.timeLimit=t.timeLimit||1/0,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=t.heuristic||o.manhattan:this.heuristic=t.heuristic||o.octile}var o=(t("../core/Util"),t("../core/Heuristic")),r=t("../core/Node"),a=t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,o){var a,s,l,h=0,u=(new Date).getTime(),p=function(t,e){return this.heuristic(Math.abs(e.x-t.x),Math.abs(e.y-t.y))}.bind(this),c=function(t,e){return t.x===e.x||t.y===e.y?1:Math.SQRT2},f=function(t,e,i,n,a){if(h++,this.timeLimit>0&&(new Date).getTime()-u>1e3*this.timeLimit)return 1/0;var s=e+p(t,g)*this.weight;if(s>i)return s;if(t==g)return n[a]=[t.x,t.y],t;var l,d,b,v,A=o.getNeighbors(t,this.diagonalMovement);for(b=0,l=1/0;v=A[b];++b){if(this.trackRecursion&&(v.retainCount=v.retainCount+1||1,v.tested!==!0&&(v.tested=!0)),d=f(v,e+c(t,v),i,n,a+1),d instanceof r)return n[a]=[t.x,t.y],d;this.trackRecursion&&0===--v.retainCount&&(v.tested=!1),d<l&&(l=d)}return l}.bind(this),d=o.getNodeAt(t,e),g=o.getNodeAt(i,n),b=p(d,g);for(a=0;!0;++a){if(s=[],l=f(d,0,b,s,0),l===1/0)return[];if(l instanceof r)return s;b=l}return[]},e.exports=n},{"../core/DiagonalMovement":3,"../core/Heuristic":5,"../core/Node":6,"../core/Util":7}],18:[function(t,e,i){function n(t){o.call(this,t)}var o=t("./JumpPointFinderBase"),r=t("../core/DiagonalMovement");n.prototype=new o,n.prototype.constructor=n,n.prototype._jump=function(t,e,i,n){var o=this.grid,r=t-i,a=e-n;if(!o.isWalkableAt(t,e))return null;if(this.trackJumpRecursion===!0&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==r&&0!==a){if(o.isWalkableAt(t-r,e+a)&&!o.isWalkableAt(t-r,e)||o.isWalkableAt(t+r,e-a)&&!o.isWalkableAt(t,e-a))return[t,e];if(this._jump(t+r,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==r){if(o.isWalkableAt(t+r,e+1)&&!o.isWalkableAt(t,e+1)||o.isWalkableAt(t+r,e-1)&&!o.isWalkableAt(t,e-1))return[t,e]}else if(o.isWalkableAt(t+1,e+a)&&!o.isWalkableAt(t+1,e)||o.isWalkableAt(t-1,e+a)&&!o.isWalkableAt(t-1,e))return[t,e];return this._jump(t+r,e+a,t,e)},n.prototype._findNeighbors=function(t){var e,i,n,o,a,s,l,h,u=t.parent,p=t.x,c=t.y,f=this.grid,d=[];if(u)e=u.x,i=u.y,n=(p-e)/Math.max(Math.abs(p-e),1),o=(c-i)/Math.max(Math.abs(c-i),1),0!==n&&0!==o?(f.isWalkableAt(p,c+o)&&d.push([p,c+o]),f.isWalkableAt(p+n,c)&&d.push([p+n,c]),f.isWalkableAt(p+n,c+o)&&d.push([p+n,c+o]),f.isWalkableAt(p-n,c)||d.push([p-n,c+o]),f.isWalkableAt(p,c-o)||d.push([p+n,c-o])):0===n?(f.isWalkableAt(p,c+o)&&d.push([p,c+o]),f.isWalkableAt(p+1,c)||d.push([p+1,c+o]),f.isWalkableAt(p-1,c)||d.push([p-1,c+o])):(f.isWalkableAt(p+n,c)&&d.push([p+n,c]),f.isWalkableAt(p,c+1)||d.push([p+n,c+1]),f.isWalkableAt(p,c-1)||d.push([p+n,c-1]));else for(a=f.getNeighbors(t,r.Always),l=0,h=a.length;l<h;++l)s=a[l],d.push([s.x,s.y]);return d},e.exports=n},{"../core/DiagonalMovement":3,"./JumpPointFinderBase":23}],19:[function(t,e,i){function n(t){o.call(this,t)}var o=t("./JumpPointFinderBase"),r=t("../core/DiagonalMovement");n.prototype=new o,n.prototype.constructor=n,n.prototype._jump=function(t,e,i,n){var o=this.grid,r=t-i,a=e-n;if(!o.isWalkableAt(t,e))return null;if(this.trackJumpRecursion===!0&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==r&&0!==a){if(o.isWalkableAt(t-r,e+a)&&!o.isWalkableAt(t-r,e)||o.isWalkableAt(t+r,e-a)&&!o.isWalkableAt(t,e-a))return[t,e];if(this._jump(t+r,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==r){if(o.isWalkableAt(t+r,e+1)&&!o.isWalkableAt(t,e+1)||o.isWalkableAt(t+r,e-1)&&!o.isWalkableAt(t,e-1))return[t,e]}else if(o.isWalkableAt(t+1,e+a)&&!o.isWalkableAt(t+1,e)||o.isWalkableAt(t-1,e+a)&&!o.isWalkableAt(t-1,e))return[t,e];return o.isWalkableAt(t+r,e)||o.isWalkableAt(t,e+a)?this._jump(t+r,e+a,t,e):null},n.prototype._findNeighbors=function(t){var e,i,n,o,a,s,l,h,u=t.parent,p=t.x,c=t.y,f=this.grid,d=[];if(u)e=u.x,i=u.y,n=(p-e)/Math.max(Math.abs(p-e),1),o=(c-i)/Math.max(Math.abs(c-i),1),0!==n&&0!==o?(f.isWalkableAt(p,c+o)&&d.push([p,c+o]),f.isWalkableAt(p+n,c)&&d.push([p+n,c]),(f.isWalkableAt(p,c+o)||f.isWalkableAt(p+n,c))&&d.push([p+n,c+o]),!f.isWalkableAt(p-n,c)&&f.isWalkableAt(p,c+o)&&d.push([p-n,c+o]),!f.isWalkableAt(p,c-o)&&f.isWalkableAt(p+n,c)&&d.push([p+n,c-o])):0===n?f.isWalkableAt(p,c+o)&&(d.push([p,c+o]),f.isWalkableAt(p+1,c)||d.push([p+1,c+o]),f.isWalkableAt(p-1,c)||d.push([p-1,c+o])):f.isWalkableAt(p+n,c)&&(d.push([p+n,c]),f.isWalkableAt(p,c+1)||d.push([p+n,c+1]),f.isWalkableAt(p,c-1)||d.push([p+n,c-1]));else for(a=f.getNeighbors(t,r.IfAtMostOneObstacle),l=0,h=a.length;l<h;++l)s=a[l],d.push([s.x,s.y]);return d},e.exports=n},{"../core/DiagonalMovement":3,"./JumpPointFinderBase":23}],20:[function(t,e,i){function n(t){o.call(this,t)}var o=t("./JumpPointFinderBase"),r=t("../core/DiagonalMovement");n.prototype=new o,n.prototype.constructor=n,n.prototype._jump=function(t,e,i,n){var o=this.grid,r=t-i,a=e-n;if(!o.isWalkableAt(t,e))return null;if(this.trackJumpRecursion===!0&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==r&&0!==a){if(this._jump(t+r,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==r){if(o.isWalkableAt(t,e-1)&&!o.isWalkableAt(t-r,e-1)||o.isWalkableAt(t,e+1)&&!o.isWalkableAt(t-r,e+1))return[t,e]}else if(0!==a&&(o.isWalkableAt(t-1,e)&&!o.isWalkableAt(t-1,e-a)||o.isWalkableAt(t+1,e)&&!o.isWalkableAt(t+1,e-a)))return[t,e];return o.isWalkableAt(t+r,e)&&o.isWalkableAt(t,e+a)?this._jump(t+r,e+a,t,e):null},n.prototype._findNeighbors=function(t){var e,i,n,o,a,s,l,h,u=t.parent,p=t.x,c=t.y,f=this.grid,d=[];if(u)if(e=u.x,i=u.y,n=(p-e)/Math.max(Math.abs(p-e),1),o=(c-i)/Math.max(Math.abs(c-i),1),0!==n&&0!==o)f.isWalkableAt(p,c+o)&&d.push([p,c+o]),f.isWalkableAt(p+n,c)&&d.push([p+n,c]),f.isWalkableAt(p,c+o)&&f.isWalkableAt(p+n,c)&&d.push([p+n,c+o]);else{var g;if(0!==n){g=f.isWalkableAt(p+n,c);var b=f.isWalkableAt(p,c+1),v=f.isWalkableAt(p,c-1);g&&(d.push([p+n,c]),b&&d.push([p+n,c+1]),v&&d.push([p+n,c-1])),b&&d.push([p,c+1]),v&&d.push([p,c-1])}else if(0!==o){g=f.isWalkableAt(p,c+o);var A=f.isWalkableAt(p+1,c),m=f.isWalkableAt(p-1,c);g&&(d.push([p,c+o]),A&&d.push([p+1,c+o]),m&&d.push([p-1,c+o])),A&&d.push([p+1,c]),m&&d.push([p-1,c])}}else for(a=f.getNeighbors(t,r.OnlyWhenNoObstacles),l=0,h=a.length;l<h;++l)s=a[l],d.push([s.x,s.y]);return d},e.exports=n},{"../core/DiagonalMovement":3,"./JumpPointFinderBase":23}],21:[function(t,e,i){function n(t){o.call(this,t)}var o=t("./JumpPointFinderBase"),r=t("../core/DiagonalMovement");n.prototype=new o,n.prototype.constructor=n,n.prototype._jump=function(t,e,i,n){var o=this.grid,r=t-i,a=e-n;if(!o.isWalkableAt(t,e))return null;if(this.trackJumpRecursion===!0&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==r){if(o.isWalkableAt(t,e-1)&&!o.isWalkableAt(t-r,e-1)||o.isWalkableAt(t,e+1)&&!o.isWalkableAt(t-r,e+1))return[t,e]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(t-1,e)&&!o.isWalkableAt(t-1,e-a)||o.isWalkableAt(t+1,e)&&!o.isWalkableAt(t+1,e-a))return[t,e];if(this._jump(t+1,e,t,e)||this._jump(t-1,e,t,e))return[t,e]}return this._jump(t+r,e+a,t,e)},n.prototype._findNeighbors=function(t){var e,i,n,o,a,s,l,h,u=t.parent,p=t.x,c=t.y,f=this.grid,d=[];if(u)e=u.x,i=u.y,n=(p-e)/Math.max(Math.abs(p-e),1),o=(c-i)/Math.max(Math.abs(c-i),1),0!==n?(f.isWalkableAt(p,c-1)&&d.push([p,c-1]),f.isWalkableAt(p,c+1)&&d.push([p,c+1]),f.isWalkableAt(p+n,c)&&d.push([p+n,c])):0!==o&&(f.isWalkableAt(p-1,c)&&d.push([p-1,c]),f.isWalkableAt(p+1,c)&&d.push([p+1,c]),f.isWalkableAt(p,c+o)&&d.push([p,c+o]));else for(a=f.getNeighbors(t,r.Never),l=0,h=a.length;l<h;++l)s=a[l],d.push([s.x,s.y]);return d},e.exports=n},{"../core/DiagonalMovement":3,"./JumpPointFinderBase":23}],22:[function(t,e,i){function n(t){return t=t||{},t.diagonalMovement===o.Never?new r(t):t.diagonalMovement===o.Always?new a(t):t.diagonalMovement===o.OnlyWhenNoObstacles?new s(t):new l(t)}var o=t("../core/DiagonalMovement"),r=t("./JPFNeverMoveDiagonally"),a=t("./JPFAlwaysMoveDiagonally"),s=t("./JPFMoveDiagonallyIfNoObstacles"),l=t("./JPFMoveDiagonallyIfAtMostOneObstacle");e.exports=n},{"../core/DiagonalMovement":3,"./JPFAlwaysMoveDiagonally":18,"./JPFMoveDiagonallyIfAtMostOneObstacle":19,"./JPFMoveDiagonallyIfNoObstacles":20,"./JPFNeverMoveDiagonally":21}],23:[function(t,e,i){function n(t){t=t||{},this.heuristic=t.heuristic||a.manhattan,this.trackJumpRecursion=t.trackJumpRecursion||!1}var o=t("heap"),r=t("../core/Util"),a=t("../core/Heuristic");t("../core/DiagonalMovement");n.prototype.findPath=function(t,e,i,n,a){var s,l=this.openList=new o(function(t,e){return t.f-e.f}),h=this.startNode=a.getNodeAt(t,e),u=this.endNode=a.getNodeAt(i,n);for(this.grid=a,h.g=0,h.f=0,l.push(h),h.opened=!0;!l.empty();){if(s=l.pop(),s.closed=!0,s===u)return r.expandPath(r.backtrace(u));this._identifySuccessors(s)}return[]},n.prototype._identifySuccessors=function(t){var e,i,n,o,r,s,l,h,u,p,c=this.grid,f=this.heuristic,d=this.openList,g=this.endNode.x,b=this.endNode.y,v=t.x,A=t.y,m=Math.abs;Math.max;for(e=this._findNeighbors(t),o=0,r=e.length;o<r;++o)if(i=e[o],n=this._jump(i[0],i[1],v,A)){if(s=n[0],l=n[1],p=c.getNodeAt(s,l),p.closed)continue;h=a.octile(m(s-v),m(l-A)),u=t.g+h,(!p.opened||u<p.g)&&(p.g=u,p.h=p.h||f(m(s-g),m(l-b)),p.f=p.g+p.h,p.parent=t,p.opened?d.updateItem(p):(d.push(p),p.opened=!0))}},e.exports=n},{"../core/DiagonalMovement":3,"../core/Heuristic":5,"../core/Util":7,heap:1}]},{},[8])(8)});
var finder = new PF.AStarFinder({
allowDiagonal: true,
dontCrossCorners: true,
weight:0
});
var grid = {};
var blocks = [];
onmessage = function(e) {
try {
action = e.data[0];
returndata=[];
switch(action) {
case "creategrid":
grid = new PF.Grid(e.data[1]);
returndata = grid;
break;
case "updategrid":
grid.setWalkableAt(e.data[1],e.data[2], e.data[3]);
break;
case "calcpath":
//Pased non-numbers (e.g. a destroyed item)
if(isNaN(e.data[1]) || isNaN(e.data[2]) || isNaN(e.data[3]) || isNaN(e.data[4])) {
console.error("Error in Pathfinder. [calcpath] (passed NaN)");
console.error(e);
returndata = [e.data[5], [], true];
postMessage(['failpathnan', returndata, e.data]);
break;
}
//If outside canvas
if(e.data[1] < 0 || e.data[2] < 0 || e.data[3] < 0 ||e.data[4] < 0) {
returndata = [e.data[5], [], false];
postMessage(['failpathoutside', returndata, e.data]);
break;
}
//If same square
if(e.data[1] == e.data[3] && e.data[2] == e.data[4] ) {
returndata = [e.data[5], [], true];
postMessage(['samesquare', returndata]);
break;
}
path = finder.findPath(e.data[1],e.data[2], e.data[3], e.data[4], grid.clone());
if(path.length>0) {
returndata = [e.data[5], PF.Util.compressPath(path), true];
} else {
returndata = [e.data[5], [], false];
}
//returndata = e.data;
break;
case "getgrid":
returndata = grid.clone();
break;
case "getgridnow":
returndata = grid.clone();
break;
case "savescreeny":
//var request = new XMLHttpRequest();
//request.open('POST', 'http://coplat.jamdonut.com/test/saveScreenshotRaw.php', true);
//request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
//request.send("image="+e.data[1]);
returndata = [];
break;
}
postMessage([action, returndata]);
} catch (err) {
console.debug("Error in pathfinder: "+err);
}
}</script><script>!function(e,a,t,n,g,c,o){e.GoogleAnalyticsObject=g,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,c=a.createElement(t),o=a.getElementsByTagName(t)[0],c.async=1,c.src="https://www.google-analytics.com/analytics.js",o.parentNode.insertBefore(c,o)}(window,document,"script",0,"ga"),ga("create","UA-97854526-1","auto"),ga("send","pageview")</script></body></html>