var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return bf/e){var h=e;e*=g;b.scale.setGameSize(h,e);b.scale.displaySize.resize(c,c*g)}else h=f/g,e=f,b.scale.setGameSize(f/g,f),b.scale.displaySize.resize(d/g,d);window.bottleScreen&&window.bottleScreen.react2NewSize(h,e)}};b.clearBeforeRender=!1;window.game=b;window.addEventListener("resize",function(a){b&& b.resize(window.innerWidth,window.innerHeight)},!1);window.portalWrapper=new PortalInteractionWrapper;window.portalWrapper.onInit();window.manualSizeChecker={lastW:0,lastH:window.innerHeight,timer:setInterval(function(){window.innerWidth==window.manualSizeChecker.lastW&&window.innerHeight==window.manualSizeChecker.lastH||!window.bottleScreen||(window.game.resize(window.innerWidth,window.innerHeight),window.manualSizeChecker.lastW=window.innerWidth,window.manualSizeChecker.lastH=window.innerHeight)}, 100)}};var PortalInteractionWrapper=function(){this.hasPreloadedRewarded=this.hasPreloadedInterstitial=!1;this.preparedReward=null;this.lastAdsShowMoment=0;this.minTimeBetweenAds=12E4;this.lastPreloadAdsMoment=0};PortalInteractionWrapper.prototype.onInit=function(a){this.preloadInterstitial();this.preloadRewarded()};PortalInteractionWrapper.prototype.onLevelComplete=function(a){};PortalInteractionWrapper.prototype.preloadInterstitial=function(){}; PortalInteractionWrapper.prototype.preloadRewarded=function(){this.hasPreloadedRewarded||"undefined"===gdsdk||"undefined"===gdsdk.preloadAd||(this.lastPreloadAdsMoment=Date.now(),gdsdk.preloadAd("rewarded").then(function(a){window.portalWrapper.hasPreloadedRewarded=!0}).catch(function(a){}))}; PortalInteractionWrapper.prototype.isRewardedAdReady=function(){if("undefined"!==gdsdk&&"undefined"!==gdsdk.showAd&&Date.now()-this.lastAdsShowMoment>=this.minTimeBetweenAds){if(this.hasPreloadedRewarded)return!0;12E4<=Date.now()-this.lastPreloadAdsMoment&&this.preloadRewarded()}return!1};PortalInteractionWrapper.prototype.isInterstitialAdReady=function(){return!0}; PortalInteractionWrapper.prototype.showInterstitial=function(a){if("undefined"!==typeof gdsdk&&"undefined"!==gdsdk.showAd){gdsdk.showAd();this.hasPreloadedInterstitial=!1;this.preloadInterstitial();this.lastAdsShowMoment=Date.now();var b="none";a&&a.hasOwnProperty("statsCode")&&(b=a.statsCode);window.bottleScreen.statsWrapper.sendEvent("interstitial_view_gd",b,1)}}; PortalInteractionWrapper.prototype.showRewarded=function(a,b){"undefined"!==typeof gdsdk&&"undefined"!==gdsdk.showAd&&(gdsdk.showAd("rewarded"),this.preparedReward=b,window.bottleScreen.showAdSpinner(),this.hasPreloadedRewarded=!1,this.preloadRewarded(),this.lastAdsShowMoment=Date.now(),b="none",a&&a.hasOwnProperty("statsCode")&&(b=a.statsCode),window.bottleScreen.statsWrapper.sendEvent("rewarded_view_gd",b,1),setTimeout(this.givePreparedReward.bind(this),5E3))}; PortalInteractionWrapper.prototype.givePreparedReward=function(){window.bottleScreen.world.giveReward(this.preparedReward)};BottleScreen=function(a,b){this.config={mustClearSave:!1,completeStoreyQuickly:!1,cheapBricks:!1,hideAllUpgradeButtons:!1,tradeArtfactsForBricks:!0};window.bottleScreen=this;window.addEventListener("blur",this.onDeactivate,!1);window.addEventListener("beforeunload",this.onJustClose,!1);window.lastDeactivationMoment=0;this.utils=new Utils;this.game=a;this.scene=b;this.grp=this.bgd=null;this.grps=[];this.hudGrp=null;this.gameHeight=this.gameWidth=this.h0=this.w0=1200;this.topMargin=this.leftMargin= 0;this.screenZeroX=this.w0/2;this.screenZeroY=this.h0/2;this.screenVisHalfW=this.w0/2;this.screenVisHalfH=this.h0/2;this.guiController=new GUIController(this);this.lastUpdateMoment=0}; BottleScreen.prototype={init:function(){this.statsWrapper=new StatsWrapper;this.bgd=this.game.add.image(0,0,"allGraphics2","w000_tmpSquare4new0000");this.bgd.tint=6737151;this.grp=this.game.add.container();this.bgd.displayWidth=this.w0;this.bgd.displayHeight=this.h0;this.bgd.x=this.bgd.displayWidth/2;this.bgd.y=this.bgd.displayHeight/2;this.grp.add(this.bgd);var a=this.game.add.image(0,0,"allGraphics2","w000_smallScreenButtons4new0000");this.grp.add(a);a=this.game.add.image(this.w0,0,"allGraphics2", "w000_smallScreenButtons4new0000");this.grp.add(a);a=this.game.add.image(0,this.h0,"allGraphics2","w000_smallScreenButtons4new0000");this.grp.add(a);a=this.game.add.image(this.w0,this.h0,"allGraphics2","w000_smallScreenButtons4new0000");this.grp.add(a);this.grps.push(this.grp);for(a=0;2>a;a++){var b=this.game.add.container();this.grps.push(b)}this.hudGrp=this.game.add.container();this.world=new BabelWorld(this,BabelHUD,BabelBallanser,BabelPurchaser);this.world.hud.showStartScreen();this.worldTime4Control= 0;this.isWaiting4ActualUpdateEvent=!0;this.reserveInterval=1E4;setInterval(this.checkWorldUpdate,this.reserveInterval);setInterval(this.doOncePerMinute,6E4);this.adsSpinner=new AdsSpinner(this,this.game,this.hudGrp)},checkWorldUpdate:function(){var a=window.bottleScreen;a.lastUpdateMoment>a.worldTime4Control+.5*a.reserveInterval||a.update(a.worldTime4Control+a.reserveInterval,a.reserveInterval);a.worldTime4Control=a.lastUpdateMoment},doOncePerMinute:function(){window.bottleScreen.saveCurrentWorld()}, saveCurrentWorld:function(){this.world&&this.world.doSaving()},update:function(a,b){0!=this.lastUpdateMoment&&(b=a-this.lastUpdateMoment,0>b&&(b=0));this.lastUpdateMoment=a;this.isWaiting4ActualUpdateEvent&&(this.worldTime4Control=this.lastUpdateMoment,this.isWaiting4ActualUpdateEvent=!1);this.world&&(3E4a){for(b=""+Math.floor(a%1E3);3>b.length;)b="0"+b;return""+Math.floor(a/1E3)+"."+b+"s"}if(6E4>a)return""+Math.floor(a/1E3)+"s";a=Math.round(a);b=[];for(var c=[1E3,60,60,24,7,4.35,12],d="ms;s;m;h; days; weeks; months; years".split(";"),e=0;ea)return"-"+this.showNumberAsText(-a);if(1>a).0049999999>a?a="0":(a=(Math.round(100*a)/100).toString(),4a)a=this.convertSmallNumber2String(a);else{var b=Math.floor(Math.log10(a)/3);a=this.convertSmallNumber2String(a/Math.pow(10,3*b));a=b<=this.bigNumbersEndings.length?a+this.bigNumbersEndings[b-1]:a+("e"+3*b)}return a}; Utils.prototype.convertSmallNumber2String=function(a){a=(Math.round(100*a)/100).toString();4a[c];)if(b-=a[c],c++,c>=a.length){c=a.length-1;break}return c}; Utils.prototype.sendEmailWithCaptionAndText=function(a,b){window.open("mailto:general@cardswars.com?subject="+a+"&body="+b)};Utils.prototype.openLink=function(a){window.open(a)}; var SoundPlayer=function(){this.isSoundEnabled=!0;this.isTemporarilyMuted=!1;this.soundsList=[{code:"buttonDown",num:2,config:{volume:1}},{code:"buttonUp",num:2,config:{volume:1}},{code:"coinDrop",num:5,config:{volume:1}},{code:"hammerHit",num:5,config:{volume:1}},{code:"knockWood",num:5,config:{volume:1}},{code:"oreLoad",num:4,config:{volume:.5}},{code:"pumpSound",num:5,config:{volume:1}},{code:"chopSound",num:5,config:{volume:.25}},{code:"drum",num:4,config:{volume:1}},{code:"winchLong",num:4,config:{volume:1}}, {code:"winchShort",num:7,config:{volume:1}},{code:"waterFlush",num:3,config:{volume:.5}},{code:"thunderbolt",num:1,config:{volume:1}},{code:"hoseWater",num:5,config:{volume:.25}},{code:"rain",num:4,config:{volume:1}},{code:"windmillMechanism",num:4,config:{volume:1}},{code:"saw",num:7,config:{volume:.25}},{code:"woodSaw",num:7,config:{volume:1}},{code:"cogTick",num:4,config:{volume:1}},{code:"cannon",num:4,config:{volume:.25}}];this.createdSounds={};this.myGame=null;this.numsOfCodes={};this.configsOfCodes= {};for(var a=0;a select all), copy (long press -> copy) and send in email to the developer: general@cardswar.com",ru:"\u0426\u0435\u043d\u044e \u0432\u0430\u0448\u0443 \u043f\u043e\u043c\u043e\u0449\u044c! \u042d\u0442\u043e \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e (\u0434\u043e\u043b\u0433\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 -> \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435), \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 (\u0434\u043e\u043b\u0433\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 -> \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c) \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443: general@cardswar.com", uk:"\u0426\u0456\u043d\u0443\u044e \u0432\u0430\u0448\u0443 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u0443! \u0426\u0435 \u0432\u0430\u0448\u0456 \u0434\u0430\u043d\u0456 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u0441\u0435 \u0446\u0435 (\u0434\u043e\u0432\u0433\u0438\u0439 \u0433\u043d\u0456\u0437\u0434\u043e -> \u0432\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435), \u0441\u043a\u043e\u043f\u0456\u044e\u0439\u0442\u0435 (\u0434\u043e\u0432\u0433\u0438\u0439 \u0433\u043d\u0456\u0437\u0434\u043e -> \u0441\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438) \u0456 \u043d\u0430\u0434\u0456\u0448\u043b\u0456\u0442\u044c \u043b\u0438\u0441\u0442\u0430 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u044e \u043f\u043e\u0448\u0442\u043e\u044e \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0443: general@cardswar.com", de:"Sch\u00e4tze deine Hilfe! Das ist Ihre Daten speichern. Bitte w\u00e4hlen Sie alles (lang dr\u00fccken -> alles ausw\u00e4hlen), kopiert (lang dr\u00fccken -> kopieren) und in E-Mail an den Entwickler senden: general@cardswar.com",es:"\u00a1Aprecio tu ayuda! Esta es su guardar datos. Por favor, seleccione todo (pulsaci\u00f3n larga -> seleccionar todo), copiar (pulsaci\u00f3n larga -> copiar) y enviar correo electr\u00f3nico al desarrollador: general@cardswar.com",fr:"Appr\u00e9cier ton aide! Ceci est votre sauvegarde des donn\u00e9es. S'il vous pla\u00eet, s\u00e9lectionnez tout (appui long -> S\u00e9lectionner tout), copier (appui long -> copier) et envoyer par courrier \u00e9lectronique au d\u00e9veloppeur: general@cardswar.com", pl:"Doceniam Twoj\u0105 pomoc! To jest Tw\u00f3j zapisa\u0107 dane. Prosz\u0119 wybra\u0107 to wszystko (d\u0142ugie naci\u015bni\u0119cie -> Zaznacz wszystko), skopiuj (d\u0142ugie naci\u015bni\u0119cie -> kopia) i wys\u0142a\u0107 e-mail do autora: general@cardswar.com",tr:"Yard\u0131m\u0131n\u0131za minnettar olurum! Bu verileri kaydetmek senin oldu\u011funu. Kopyalamak - t\u00fcm (> t\u00fcm\u00fcn\u00fc se\u00e7mek uzun bas\u0131n) onu se\u00e7iniz (uzun bas\u0131n - copy>) ve geli\u015ftirici e-posta g\u00f6ndermek: general@cardswar.com", it:"Apprezzare il vostro aiuto! Questo \u00e8 il vostro salvataggio dei dati. Si prega di selezionare tutto (pressione lunga -> Seleziona tutto), copiare (premere a lungo -> copia) e inviare in email allo sviluppatore: general@cardswar.com",cs:"Oce\u0148uji tvoj\u00ed pomoc! Toto je va\u0161e save dat. Pros\u00edm, vyberte v\u0161echny (dlouh\u00fd stisk -> vybrat v\u0161e), kop\u00edrovat (dlouh\u00fd stisk -> kop\u00edrovat) a poslat e-mail pro v\u00fdvoj\u00e1\u0159e: general@cardswar.com",pt:"Agrade\u00e7o sua ajuda! Esta \u00e9 a sua poupan\u00e7a de dados. Por favor, selecione tudo (press\u00e3o longa -> Selecionar tudo), copiar (press\u00e3o longa -> copiar) e enviar e-mail para o desenvolvedor: general@cardswar.com", ms:"Menghargai bantuan anda! Ini adalah anda save data. Sila, pilih semua (tekan lama -> pilih semua), menyalin (tekan lama -> salinan) dan hantar dalam e-mel kepada pemaju: general@cardswar.com"};this.allPhrases.TXID_SEND={en:"Looks like the game crashed last time. You can try loading this save again or send the data to the developer. We will look at it and fix as soon as possible. You can also completely restart the game if you don't want to wait",ru:"\u041f\u043e\u0445\u043e\u0436\u0435, \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u0438\u0433\u0440\u0430 \u0432\u044b\u043b\u0435\u0442\u0435\u043b\u0430. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0442\u043e \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u0440\u0435\u0435. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0433\u0440\u0443, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0436\u0434\u0430\u0442\u044c", uk:"\u0421\u0445\u043e\u0436\u0435, \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u0433\u043e \u0440\u0430\u0437\u0443 \u0431\u0443\u0432 \u0437\u0431\u0456\u0439. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043f\u0440\u043e\u0431\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0446\u0435 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0449\u0435 \u0440\u0430\u0437 \u0430\u0431\u043e \u043d\u0430\u0434\u0456\u0441\u043b\u0430\u0442\u0438 \u0434\u0430\u043d\u0456 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0443. \u041c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u0446\u0435 \u0456 \u044f\u043a\u043d\u0430\u0439\u0448\u0432\u0438\u0434\u0448\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e. \u0412\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0432\u043d\u0456\u0441\u0442\u044e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0433\u0440\u0443, \u044f\u043a\u0449\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0435 \u0447\u0435\u043a\u0430\u0442\u0438", de:"Sieht aus wie das Spiel abgest\u00fcrzt beim letzten Mal. Sie k\u00f6nnen versuchen, diese wieder speichern Laden oder die Daten an den Entwickler senden. Wir werden so schnell wie m\u00f6glich an ihn und fix aussehen. Sie k\u00f6nnen auch das Spiel komplett neu starten, wenn Sie wollen nicht warten",es:"Parece que el juego se colgaba la \u00faltima vez. Usted puede intentar cargar este ahorro de nuevo o enviar los datos al desarrollador. Vamos a mirar y fijar tan pronto como sea posible. Tambi\u00e9n puede reiniciar por completo el juego si no quiere esperar", fr:"On dirait que le jeu se sont \u00e9cras\u00e9s derni\u00e8re fois. Vous pouvez le charger \u00e0 nouveau cette sauvegarde ou envoyer les donn\u00e9es au d\u00e9veloppeur. Nous allons examiner et fixer le plus t\u00f4t possible. Vous pouvez \u00e9galement red\u00e9marrer compl\u00e8tement le jeu si vous ne voulez pas attendre",pl:"Wygl\u0105da gra rozbi\u0142 si\u0119 po raz ostatni. Mo\u017cna pr\u00f3bowa\u0107 \u0142adowania to zaoszcz\u0119dzi\u0107 ponownie lub wys\u0142a\u0107 dane do dewelopera. B\u0119dziemy patrze\u0107 na niego i naprawi\u0107 jak najszybciej. Mo\u017cna r\u00f3wnie\u017c ca\u0142kowicie ponownie uruchomi\u0107 gr\u0119, je\u015bli nie chcesz czeka\u0107", tr:"oyun gibi g\u00f6r\u00fcn\u00fcyor son kez \u00e7\u00f6kt\u00fc. Yine tasarrufu bu y\u00fcklemeyi deneyin veya geli\u015ftirici veri g\u00f6nderebilir. Biz en k\u0131sa s\u00fcrede kendisine ve d\u00fczeltme bakaca\u011f\u0131z. Beklemek istemiyorsan\u0131z tamamen de oyunu yeniden ba\u015flatabilirsiniz",it:"Sembra che il gioco si \u00e8 bloccato l'ultima volta. Si pu\u00f2 provare a caricare questo salvataggio di nuovo o di inviare i dati allo sviluppatore. Prenderemo in esame e correzione al pi\u00f9 presto possibile. Potete anche completamente riavviare il gioco se non si vuole aspettare", cs:"Vypad\u00e1 to, \u017ee hra se z\u0159\u00edtil minule. M\u016f\u017eete zkusit nahr\u00e1t tento z\u00e1krok znovu nebo odes\u00edl\u00e1n\u00ed dat pro v\u00fdvoj\u00e1\u0159e. Pod\u00edv\u00e1me se na to a opravit co nejd\u0159\u00edve. M\u016f\u017eete tak\u00e9 zcela restartovat hru, pokud nechcete \u010dekat,",pt:"Parece que o jogo caiu \u00faltima vez. Voc\u00ea pode tentar carregar este salvar novamente ou enviar os dados para o desenvolvedor. Vamos olhar para ele e corre\u00e7\u00e3o o mais r\u00e1pido poss\u00edvel. Voc\u00ea tamb\u00e9m pode reiniciar completamente o jogo, se voc\u00ea n\u00e3o quiser esperar", ms:"Nampaknya permainan terhempas kali terakhir. Anda boleh cuba memuatkan ini jimat lagi atau menghantar data kepada pemaju. Kita akan melihat dan menetapkan secepat mungkin. Anda juga boleh sama sekali memulakan semula permainan jika anda tidak mahu menunggu"};this.allPhrases.TXID_SEND_BABELTOWERVICTORY={en:"We have completed the Babel Tower!",ru:"\u041c\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0438 \u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u043a\u0443\u044e \u0431\u0430\u0448\u043d\u044e!", uk:"\u041c\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0438 \u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u044c\u043a\u0443 \u0432\u0435\u0436\u0443!",de:"Wir haben den Turm zu Babel abgeschlossen!",es:"Hemos completado la Torre de Babel!",fr:"Nous avons termin\u00e9 la Tour de Babel!",pl:"Zako\u0144czyli\u015bmy Wie\u017ca Babel!",tr:"Biz Babil Kulesi'ni tamamlad\u0131k!",it:"Abbiamo completato la Torre di Babele!",cs:"Dokon\u010dili jsme Babel Tower!",pt:"N\u00f3s completamos a Torre de Babel!", ms:"Kami telah menyiapkan Menara Babel!"};this.allPhrases.TXID_SEND_SPACEMACHINESCAP={en:"Space machines for Babel Tower!",ru:"\u041a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0434\u043b\u044f \u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u043a\u043e\u0439 \u0411\u0430\u0448\u043d\u0438!",uk:"\u041a\u043e\u0441\u043c\u0456\u0447\u043d\u0456 \u043c\u0430\u0448\u0438\u043d\u0438 \u0434\u043b\u044f \u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u044c\u043a\u043e\u0457 \u0432\u0435\u0436\u0456!", de:"Weltraummaschinen f\u00fcr die Babel-Turm!",es:"M\u00e1quinas del espacio para Torre de Babel!",fr:"machines de l'espace pour la Tour de Babel!",pl:"Maszyny przestrze\u0144 do Wie\u017cy Babel!",tr:"Babel Kulesi i\u00e7in Uzay makineleri!",it:"macchine di spazio per Torre di Babele!",cs:"Space stroje pro Babel v\u011b\u017ee!",pt:"m\u00e1quinas de espa\u00e7o para a Torre de Babel!",ms:"Mesin ruang untuk Babel Tower!"};this.allPhrases.TXID_SEND_SPACEMACHINESTEXT={en:"My ideas for the next floors:", ru:"\u041c\u043e\u0438 \u0438\u0434\u0435\u0438 \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0430\u0436\u0435\u0439:",uk:"\u041c\u043e\u0457 \u0456\u0434\u0435\u0457 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0445 \u043f\u043e\u0432\u0435\u0440\u0445\u0456\u0432:",de:"Meine Ideen f\u00fcr die n\u00e4chsten Etagen:",es:"Mis ideas para las pr\u00f3ximas plantas:",fr:"Mes id\u00e9es pour les prochains \u00e9tages:",pl:"Moje pomys\u0142y na kolejne pi\u0119tra:", tr:"Bir sonraki katlar i\u00e7in My fikirler:",it:"Le mie idee per i prossimi piani:",cs:"M\u00e9 my\u0161lenky pro p\u0159\u00ed\u0161t\u00ed podlahy:",pt:"Minhas id\u00e9ias para os pr\u00f3ximos pisos:",ms:"idea-idea saya untuk tingkat seterusnya:"};this.allPhrases.TXID_SENDREPORT={en:"Send report",ru:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0447\u0451\u0442",uk:"\u0412\u0456\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u0437\u0432\u0456\u0442",de:"Bericht senden", es:"Enviar reportaje",fr:"Envoyer un rapport",pl:"Wy\u015blij raport",tr:"Rapor g\u00f6nder",it:"Spedisci il rapporto",cs:"Poslat zpr\u00e1vu",pt:"Enviar relat\u00f3rio",ms:"Hantar laporan"};this.allPhrases.TXID_SOMETHINGWRONG={en:"Something went wrong...",ru:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a...",uk:"\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a...",de:"Etwas ist schief gelaufen...",es:"Algo sali\u00f3 mal...", fr:"Quelque chose a mal tourn\u00e9 ...",pl:"Co\u015b posz\u0142o nie tak...",tr:"Bir \u015feyler yanl\u0131\u015f gitti...",it:"Qualcosa \u00e8 andato storto...",cs:"N\u011bco se pokazilo...",pt:"Algo deu errado ...",ms:"Ada sesuatu yang tidak kena ..."};this.allPhrases.TXID_STARTNEW={en:"Complete reset",ru:"\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u0431\u0440\u043e\u0441",uk:"\u041f\u043e\u0432\u043d\u0438\u0439 \u0437\u0431\u0440\u043e\u0441 \u0433\u0440\u0438",de:"Komplett-Reset",es:"reseteo completo", fr:"compl\u00e8te remise \u00e0 z\u00e9ro",pl:"Kompletna zresetowane",tr:"Komple s\u0131f\u0131rlama",it:"reset completo",cs:"kompletn\u00ed resetov\u00e1n\u00ed",pt:"redefini\u00e7\u00e3o completa",ms:"reset lengkap"};this.allPhrases.TXID_SUCCESS={en:"Success!",ru:"\u0413\u043e\u0442\u043e\u0432\u043e!",uk:"\u0413\u043e\u0442\u043e\u0432\u043e!",de:"Erfolg!",es:"\u00a1\u00c9xito!",fr:"Succ\u00e8s!",pl:"Sukces!",tr:"Ba\u015far\u0131!",it:"Successo!",cs:"\u00dasp\u011bch!",pt:"Sucesso!",ms:"Kejayaan!"}; this.allPhrases.TXID_TIMEUNIT_DAY={en:"days",ru:"\u0434\u043d\u0435\u0439",uk:"\u0434\u043d\u0456\u0432",de:"Tage",es:"dias",fr:"journ\u00e9es",pl:"dni",tr:"g\u00fcnler",it:"giorni",cs:"dny",pt:"dias",ms:"hari"};this.allPhrases.TXID_TIMEUNIT_HOUR={en:"hour",ru:"\u0447\u0430\u0441",uk:"\u0433\u043e\u0434\u0438\u043d\u0443",de:"Stunde",es:"hora",fr:"heure",pl:"godzina",tr:"saat",it:"ora",cs:"hodina",pt:"hora",ms:"jam"};this.allPhrases.TXID_TIMEUNIT_MIN={en:"m",ru:"\u043c\u0438\u043d",uk:"\u0445\u0432", de:"m",es:"metro",fr:"m",pl:"m",tr:"m",it:"m",cs:"m",pt:"m",ms:"m"};this.allPhrases.TXID_TIMEUNIT_MONTH={en:"month",ru:"\u043c\u0435\u0441\u044f\u0446",uk:"\u043c\u0456\u0441\u044f\u0446\u044c",de:"Monat",es:"mes",fr:"mois",pl:"miesi\u0105c",tr:"ay",it:"mese",cs:"M\u011bs\u00edc",pt:"m\u00eas",ms:"bulan"};this.allPhrases.TXID_TIMEUNIT_MS={en:"ms",ru:"\u043c\u0441",uk:"\u043c\u0441",de:"Frau",es:"em",fr:"SP",pl:"SM",tr:"Han\u0131m",it:"SM",cs:"sle\u010dna",pt:"em",ms:"Cik"};this.allPhrases.TXID_TIMEUNIT_SEC= {en:"s",ru:"\u0441\u0435\u043a",uk:"\u0441\u0435\u043a",de:"s",es:"s",fr:"s",pl:"s",tr:"s",it:"S",cs:"s",pt:"s",ms:"s"};this.allPhrases.TXID_TIMEUNIT_WEEK={en:"week",ru:"\u043d\u0435\u0434\u0435\u043b\u044e",uk:"\u0442\u0438\u0436\u0434\u0435\u043d\u044c",de:"Woche",es:"semana",fr:"la semaine",pl:"tydzie\u0144",tr:"hafta",it:"settimana",cs:"t\u00fdden",pt:"semana",ms:"minggu"};this.allPhrases.TXID_TIMEUNIT_YEAR={en:"year",ru:"\u0433\u043e\u0434",uk:"\u0440\u0456\u043a",de:"Jahr",es:"a\u00f1o",fr:"an", pl:"rok",tr:"y\u0131l",it:"anno",cs:"rok",pt:"ano",ms:"tahun"};this.allPhrases.TXID_TRANSLATORTHANKS={en:"",de:"Fielen Dank an MoonlightShadowz aus ArmorGames!",es:"Muchas gracias por la traducci\u00f3n a Roy Clark aka Blokus52 desde ArmorGames",fr:"Auto translated. If you'd like to help and improve it, please, email to general@cardswars.com We appreciate your help!",pl:"Wielkie podzi\u0119kowania dla \u0141ukasza Gazdy za t\u0142umaczenie na j\u0119zyk polski",tr:"Auto translated. If you'd like to help and improve it, please, email to general@cardswars.com We appreciate your help!", it:"Auto translated. If you'd like to help and improve it, please, email to general@cardswars.com We appreciate your help!",cs:"Auto translated. If you'd like to help and improve it, please, email to general@cardswars.com We appreciate your help!",pt:"Muito obrigado a Andr\u00e9 Caldeira para a vers\u00e3o em Portugu\u00eas!",ms:"Terima kasih banyak kepada Fortnesslily0707 atas terjemahannya"};this.allPhrases.TXID_TRYAGAIN={en:"Please, try again later",ru:"\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u043f\u043e\u0437\u0436\u0435", uk:"\u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u0456\u0437\u043d\u0456\u0448\u0435",de:"Bitte versuchen Sie es sp\u00e4ter noch einmal",es:"Por favor, int\u00e9ntelo de nuevo m\u00e1s tarde",fr:"Veuillez r\u00e9essayer plus tard",pl:"Spr\u00f3buj ponownie p\u00f3\u017aniej",tr:"L\u00fctfen daha sonra tekrar deneyiniz",it:"Per favore riprova pi\u00f9 tardi",cs:"Pros\u00edm zkuste to znovu pozd\u011bji",pt:"Por favor, tente novamente mais tarde", ms:"Sila cuba sebentar lagi"};this.allPhrases.TXID_TRYLOADAGAIN={en:"Load save",ru:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0439\u0432",uk:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0441\u0435\u0439\u0432",de:"Laden speichern",es:"Cargar guarda",fr:"Chargement de la sauvegarde",pl:"Za\u0142adowa\u0107 bezpiecznie",tr:"Y\u00fckle kaydet",it:"Carica Salva",cs:"zat\u00ed\u017een\u00ed save",pt:"carga save",ms:"beban jimat"};this.allPhrases.TXID_UNITS_COINSEACH= {en:"coins/ea",ru:"\u043c\u043e\u043d\u0435\u0442\u044b / \u0448\u0442",uk:"\u043c\u043e\u043d\u0435\u0442\u0438 / \u0448\u0442",de:"M\u00fcnzen / st",es:"monedas / ea",fr:"pi\u00e8ces / ch",pl:"monety / ea",tr:"paralar / ea",it:"monete / ea",cs:"mince / ea",pt:"moedas / ea",ms:"syiling / ea"};this.allPhrases.TXID_UPGRNAME_BERTH={en:"Money from tourists",ru:"\u0414\u0435\u043d\u0435\u0433 \u0441 \u0442\u0443\u0440\u0438\u0441\u0442\u043e\u0432",uk:"\u0413\u0440\u043e\u0448\u0435\u0439 \u0437 \u0442\u0443\u0440\u0438\u0441\u0442\u0456\u0432", de:"Geld von Touristen",es:"Dinero de turistas",fr:"L'argent des touristes",pl:"Pieni\u0105dze od turyst\u00f3w",tr:"turistlerden para",it:"Soldi da turisti",cs:"Pen\u00edze od turist\u016f",pt:"Dinheiro dos turistas",ms:"Wang daripada pelancong"};this.allPhrases.TXID_UPGRNAME_BRICKNUMBER={en:"Number of bricks created",ru:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043a\u0438\u0440\u043f\u0438\u0447\u0435\u0439",uk:"\u0432\u0438\u0440\u043e\u0431\u043b\u044f\u0454 \u0446\u0435\u0433\u043b\u0438", de:"Anzahl erstellter Steine",es:"N\u00famero de ladrillos creados",fr:"Nombre de briques cr\u00e9\u00e9",pl:"Ilo\u015b\u0107 cegie\u0142 stworzony",tr:"tu\u011fla say\u0131s\u0131 yaratt\u0131",it:"Numero di mattoni creato",cs:"Po\u010det cihel vytvo\u0159il",pt:"N\u00famero de tijolos criado",ms:"Beberapa batu bata dicipta"};this.allPhrases.TXID_UPGRNAME_BRICKTIME={en:"Brick processing time",ru:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043a\u0438\u0440\u043f\u0438\u0447\u0430", uk:"\u0427\u0430\u0441 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u0430 \u0446\u0435\u0433\u043b\u0438",de:"Ziegel Herstelldauer",es:"tiempo de procesamiento de ladrillo",fr:"temps de traitement brique",pl:"Czas przetwarzania ceg\u0142a",tr:"Tu\u011fla i\u015fleme s\u00fcresi",it:"Brick tempo di elaborazione",cs:"Doba zpracov\u00e1n\u00ed Brick",pt:"tempo de processamento tijolo",ms:"Brick masa pemprosesan"};this.allPhrases.TXID_UPGRNAME_BUNGEEMONEY={en:"Money in the window",ru:"\u0414\u0435\u043d\u044c\u0433\u0438 \u0432 \u043e\u043a\u043d\u0430\u0445", uk:"\u0413\u0440\u043e\u0448\u0456 \u0432 \u0432\u0456\u043a\u043d\u0430\u0445",de:"Geld im Fenster",es:"Dinero en la ventana",fr:"L'argent dans la fen\u00eatre",pl:"Pieni\u0105dze w oknie",tr:"penceresinde Para",it:"Il denaro nella finestra",cs:"Pen\u00edze v okn\u011b",pt:"Dinheiro na janela",ms:"Wang dalam tetingkap"};this.allPhrases.TXID_UPGRNAME_BUNGEETIME={en:"Time between window opens",ru:"\u0412\u0440\u0435\u043c\u044f \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\u043c\u0438 \u043e\u043a\u043e\u043d", uk:"\u0427\u0430\u0441 \u043c\u0456\u0436 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0442\u044f\u043c\u0438 \u0432\u0456\u043a\u043e\u043d",de:"Zeit zwischen Fenster ge\u00f6ffnet",es:"Tiempo entre la ventana se abre",fr:"Le temps entre la fen\u00eatre ouvre",pl:"Czas pomi\u0119dzy oknem otwiera",tr:"Pencerenin aras\u0131ndaki s\u00fcre a\u00e7\u0131l\u0131r",it:"Tempo tra finestra si apre",cs:"Doba mezi otev\u0159e okno",pt:"Tempo entre a janela abre",ms:"Masa antara tetingkap dibuka"};this.allPhrases.TXID_UPGRNAME_CARAWANPRICE= {en:"Market prices increase",ru:"\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043d \u043d\u0430 \u0440\u044b\u043d\u043a\u0435",uk:"\u0417\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0446\u0456\u043d \u043d\u0430 \u0440\u0438\u043d\u043a\u0443",de:"Die Marktpreise erh\u00f6hen",es:"Los precios de mercado aumentan",fr:"Les prix du march\u00e9 augmentation",pl:"Wzrost cen na rynku",tr:"Piyasa fiyatlar\u0131n\u0131n art\u0131\u015f",it:"aumento i prezzi di mercato", cs:"Zv\u00fd\u0161en\u00ed ceny na trhu",pt:"aumento dos pre\u00e7os de mercado",ms:"harga pasaran peningkatan"};this.allPhrases.TXID_UPGRNAME_CHOPPERS={en:"Choppers",ru:"\u041b\u0435\u0441\u043e\u0440\u0443\u0431\u044b",uk:"\u043b\u0456\u0441\u043e\u0440\u0443\u0431\u0438",de:"Holzf\u00e4ller",es:"cortadores",fr:"Choppers",pl:"Choppers",tr:"Helikopterler",it:"Choppers",cs:"Choppers",pt:"Helic\u00f3pteros",ms:"Choppers"};this.allPhrases.TXID_UPGRNAME_CLOCKSPEED={en:"Time speed-up bonus",ru:"\u0411\u043e\u043d\u0443\u0441 \u043a \u0445\u043e\u0434\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438", uk:"\u0411\u043e\u043d\u0443\u0441 \u0434\u043e \u0445\u043e\u0434\u0443 \u0447\u0430\u0441\u0443",de:"Zeitbeschleunigungs-Bonus",es:"Bonificaci\u00f3n de tiempo de aceleraci\u00f3n",fr:"Temps de bonus vitesse-up",pl:"Czas premia przy\u015bpieszenie",tr:"Zaman h\u0131z bonusu",it:"Tempo speed-up bonus",cs:"Doba zrychlen\u00ed bonus",pt:"Tempo b\u00f4nus de velocidade-up",ms:"Masa bonus kelajuan-up"};this.allPhrases.TXID_UPGRNAME_CLOUDPOWER={en:"Cloud growth speed",ru:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u043e\u0441\u0442\u0430 \u041e\u0431\u043b\u0430\u043a\u0430", uk:"\u0428\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f \u0425\u043c\u0430\u0440\u0438",de:"Wachstumsgeschwindigkeit der Wolke",es:"velocidad de crecimiento de la nube",fr:"la vitesse de croissance Cloud",pl:"Szybko\u015b\u0107 wzrostu chmura",tr:"Bulut b\u00fcy\u00fcme h\u0131z\u0131",it:"velocit\u00e0 di crescita nuvola",cs:"Cloud rychlost r\u016fstu",pt:"velocidade de crescimento Nuvem",ms:"kelajuan pertumbuhan awan"};this.allPhrases.TXID_UPGRNAME_DRUMPOWER= {en:"Speed Increasing power",ru:"\u0421\u0438\u043b\u0430 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f",uk:"\u0441\u0438\u043b\u0430 \u043f\u0440\u0438\u0441\u043a\u043e\u0440\u0435\u043d\u043d\u044f",de:"Zunehmende Geschwindigkeit",es:"poder de incremento de velocidad",fr:"Vitesse Augmentation de puissance",pl:"Zwi\u0119kszenie pr\u0119dko\u015bci moc",tr:"H\u0131z Art\u0131rma g\u00fc\u00e7",it:"Velocit\u00e0 potere Aumentare",cs:"Zv\u00fd\u0161en\u00ed v\u00fdkonu rychlost",pt:"poder aumentar a velocidade", ms:"Kelajuan Meningkatkan kuasa"};this.allPhrases.TXID_UPGRNAME_FIELD={en:"Grass from tap",ru:"\u0422\u0440\u0430\u0432\u044b \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435",uk:"\u0422\u0440\u0430\u0432\u0438 \u0437\u0430 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u043d\u044f",de:"Grass pro Klick",es:"Hierba por toque",fr:"L'herbe du robinet",pl:"Trawy z kranu",tr:"musluktan \u00c7im",it:"Erba dal rubinetto",cs:"Grass z kohoutku",pt:"Grama da torneira",ms:"Rumput dari paip"};this.allPhrases.TXID_UPGRNAME_GALILEO= {en:"Science generation",ru:"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0443\u043a\u0438",uk:"\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0456\u044f \u043d\u0430\u0443\u043a\u0438",de:"Wissenschaft Generation",es:"produccion de la ciencia",fr:"g\u00e9n\u00e9ration scientifique",pl:"generacja nauka",tr:"Bilim nesil",it:"generazione Scienza",cs:"Science generace",pt:"gera\u00e7\u00e3o de ci\u00eancia",ms:"generasi sains"};this.allPhrases.TXID_UPGRNAME_GEMSPROB={en:"Probability to find a ruby", ru:"\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0440\u0443\u0431\u0438\u043d",uk:"\u0412\u0456\u0440\u043e\u0433\u0456\u0434\u043d\u0456\u0441\u0442\u044c \u0437\u043d\u0430\u0439\u0442\u0438 \u0440\u0443\u0431\u0456\u043d",de:"Wahrscheinlichkeit einen Rubin zu finden",es:"Probabilidad de encontrar un rub\u00ed",fr:"Probabilit\u00e9 de trouver un rubis",pl:"Prawdopodobie\u0144stwo znalezienia rubin",tr:"Olas\u0131l\u0131k bir yakut bulmak i\u00e7in", it:"Probabilit\u00e0 di trovare un rubino",cs:"Pravd\u011bpodobnost naj\u00edt rub\u00edn",pt:"Probabilidade de encontrar um rubi",ms:"Kebarangkalian untuk mencari ruby"};this.allPhrases.TXID_UPGRNAME_GUNPOWDERPROD={en:"Gunpowder production",ru:"\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u0440\u043e\u0445\u0430",uk:"\u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u043e \u043f\u043e\u0440\u043e\u0445\u0443",de:"Gunpowder Produktion",es:"la producci\u00f3n de la p\u00f3lvora", fr:"production Gunpowder",pl:"produkcja prochu",tr:"barut \u00fcretimi",it:"la produzione di polvere da sparo",cs:"v\u00fdroba st\u0159eln\u00fd prach",pt:"produ\u00e7\u00e3o de p\u00f3lvora",ms:"pengeluaran serbuk letupan"};this.allPhrases.TXID_UPGRNAME_GUNPOWDERSIMLOADS={en:"Number of simultaneous productions",ru:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432", uk:"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u0447\u0430\u0441\u043d\u0438\u0445 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432",de:"Anzahl der gleichzeitigen Produktionen",es:"N\u00famero de producciones simult\u00e1neas",fr:"Nombre de productions simultan\u00e9es",pl:"Liczba jednoczesnych produkcjach",tr:"e\u015f zamanl\u0131 \u00fcretim say\u0131s\u0131",it:"Numero di produzioni simultanei",cs:"Po\u010det sou\u010dasn\u00fdch inscenac\u00ed", pt:"N\u00famero de produ\u00e7\u00f5es simult\u00e2neas",ms:"Jumlah pengeluaran serentak"};this.allPhrases.TXID_UPGRNAME_HELIBOOMPOWER={en:"Explosion power",ru:"\u0421\u0438\u043b\u0430 \u0432\u0437\u0440\u044b\u0432\u0430",uk:"\u0441\u0438\u043b\u0430 \u0432\u0438\u0431\u0443\u0445\u0443",de:"Explosionsleistung",es:"fuerza de explosi\u00f3n",fr:"puissance d'explosion",pl:"moc eksplozji",tr:"Patlama g\u00fcc\u00fc",it:"esplosione di potenza",cs:"exploze energie",pt:"poder de explos\u00e3o",ms:"kuasa letupan"}; this.allPhrases.TXID_UPGRNAME_HELIBOOMS={en:"Number of explosions",ru:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0440\u044f\u0434\u043e\u0432",uk:"\u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0437\u0430\u0440\u044f\u0434\u0456\u0432",de:"Anzahl der Explosionen",es:"N\u00famero de explosiones",fr:"Nombre d'explosions",pl:"Liczba wybuch\u00f3w",tr:"patlamalar\u0131n say\u0131s\u0131",it:"Numero di esplosioni",cs:"Po\u010det v\u00fdbuch\u016f",pt:"N\u00famero de explos\u00f5es", ms:"Beberapa letupan"};this.allPhrases.TXID_UPGRNAME_IRRIGATORBOOST={en:"Grass production increase",ru:"\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u0431\u043e\u0440\u0430 \u0442\u0440\u0430\u0432\u044b",uk:"\u0417\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0437\u0431\u043e\u0440\u0443 \u0442\u0440\u0430\u0432\u0438",de:"Grass Produktionssteigerung",es:"Aumento de la producci\u00f3n de hierba",fr:"L'herbe augmentation de la production",pl:"Trawa wzrost produkcji", tr:"\u00c7im \u00fcretim art\u0131\u015f\u0131",it:"aumento la produzione di erba",cs:"Zv\u00fd\u0161en\u00ed produkce Grass",pt:"Grama aumento de produ\u00e7\u00e3o",ms:"Rumput peningkatan pengeluaran"};this.allPhrases.TXID_UPGRNAME_MINERS={en:"Miners",ru:"\u0428\u0430\u0445\u0442\u0435\u0440\u044b",uk:"\u0448\u0430\u0445\u0442\u0430\u0440\u0456",de:"Minenarbeiter",es:"mineros",fr:"mineurs",pl:"G\u00f3rniczy",tr:"Madenciler",it:"minatori",cs:"horn\u00edk\u016f",pt:"mineiros",ms:"Miners"};this.allPhrases.TXID_UPGRNAME_MOONSTAIRSPROD= {en:"Moon stone production",ru:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u041b\u0443\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043c\u043d\u044f",uk:"\u0412\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u043e \u041c\u0456\u0441\u044f\u0447\u043d\u043e\u0433\u043e \u043a\u0430\u043c\u0435\u043d\u044e",de:"Mond Steinproduktion",es:"producci\u00f3n de piedra de luna",fr:"la production de pierre de lune",pl:"Wydobycie kamienia ksi\u0119\u017cyc",tr:"Ay ta\u015f\u0131 \u00fcretimi", it:"produzione di pietra di luna",cs:"V\u00fdroba Moon stone",pt:"produ\u00e7\u00e3o de pedra da lua",ms:"Moon pengeluaran batu"};this.allPhrases.TXID_UPGRNAME_MOWERS={en:"Mowers",ru:"\u041a\u043e\u0441\u0430\u0440\u0438",uk:"\u041a\u043e\u0441\u0430\u0440\u0456",de:"Bauern",es:"cortacespedes",fr:"tondeuses",pl:"Kosiarki",tr:"Bi\u00e7me Makineleri",it:"falciatrici",cs:"seka\u010dky",pt:"Cortadores",ms:"Pemotong rumput"};this.allPhrases.TXID_UPGRNAME_PLANKSTIME={en:"Number of planks created",ru:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0434\u043e\u0441\u043e\u043a", uk:"\u0432\u0438\u0440\u043e\u0431\u043b\u044f\u0454 \u0434\u043e\u0449\u043e\u043a",de:"Anzahl erstellter Bretter",es:"N\u00famero de tablones creados",fr:"Nombre de planches cr\u00e9\u00e9",pl:"Ilo\u015b\u0107 desek stworzona",tr:"kalaslar\u0131n say\u0131s\u0131 yaratt\u0131",it:"Numero di assi creato",cs:"Po\u010det prken vytvo\u0159ena",pt:"N\u00famero de pranchas criado",ms:"Beberapa papan dicipta"};this.allPhrases.TXID_UPGRNAME_PROPAGANDA_POWER={en:"Production boost",ru:"\u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430", uk:"\u0437\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u0430",de:"Produktionsschub",es:"impulsar la producci\u00f3n",fr:"coup de fouet \u00e0 la production",pl:"zwi\u0119kszenia produkcji",tr:"\u00dcretim art\u0131\u015f\u0131",it:"aumentare la produzione",cs:"produkce boost",pt:"aumentar a produ\u00e7\u00e3o",ms:"rangsangan pengeluaran"};this.allPhrases.TXID_UPGRNAME_PROPAGANDA_TIME={en:"Work time",ru:"\u0420\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f", uk:"\u0420\u043e\u0431\u043e\u0447\u0438\u0439 \u0447\u0430\u0441",de:"Arbeitszeit",es:"Tiempo de trabajo",fr:"Temps de travail",pl:"Czas pracy",tr:"\u00c7al\u0131\u015fma zaman\u0131",it:"Tempo di lavoro",cs:"Pracovn\u00ed doba",pt:"Tempo de trabalho",ms:"Masa kerja"};this.allPhrases.TXID_UPGRNAME_PROPBOOSTCOEF={en:"Boost power",ru:"\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438",uk:"\u043f\u0456\u0434\u0432\u0438\u0449\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u0443\u0436\u043d\u043e\u0441\u0442\u0456", de:"Boost-Leistung",es:"Refuerzo de potencia",fr:"puissance Boost",pl:"moc do\u0142adowania",tr:"Boost g\u00fc\u00e7",it:"Power Boost",cs:"boost v\u00fdkon",pt:"poder impulso",ms:"kuasa rangsangan"};this.allPhrases.TXID_UPGRNAME_PROPBOOSTTIME={en:"Boost duration",ru:"\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043d\u0438\u044f",uk:"\u0442\u0440\u0438\u0432\u0430\u043b\u0456\u0441\u0442\u044c \u043f\u0456\u0434\u0448\u0442\u043e\u0432\u0445\u0443\u0432\u0430\u043d\u043d\u044f", de:"Boostdauer",es:"duraci\u00f3n de impulso",fr:"Dur\u00e9e Boost",pl:"czas trwania do\u0142adowania",tr:"Boost s\u00fcresi",it:"durata Boost",cs:"doba trv\u00e1n\u00ed boost",pt:"dura\u00e7\u00e3o impulso",ms:"tempoh Boost"};this.allPhrases.TXID_UPGRNAME_PUMPPOWER={en:"Water pumping power",ru:"\u041c\u043e\u0449\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u043a\u0430\u0447\u043a\u0438 \u0432\u043e\u0434\u044b",uk:"\u041f\u043e\u0442\u0443\u0436\u043d\u0456\u0441\u0442\u044c \u043d\u0430\u043a\u0430\u0447\u0443\u0432\u0430\u043d\u043d\u044f \u0432\u043e\u0434\u0438", de:"Wasserpumpleistung",es:"potencia de bombeo de agua",fr:"puissance de pompage de l'eau",pl:"Woda pompowana moc",tr:"Su pompalama g\u00fcc\u00fc",it:"Acqua potenza di pompaggio",cs:"\u010derpac\u00ed v\u00fdkon Voda",pt:"\u00c1gua pot\u00eancia de bombeamento",ms:"Air kuasa mengepam"};this.allPhrases.TXID_UPGRNAME_RESTARTFLOORS={en:"Floors after restart",ru:"\u042d\u0442\u0430\u0436\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0430",uk:"\u041f\u043e\u0432\u0435\u0440\u0445\u0456\u0432 \u043f\u0456\u0441\u043b\u044f \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0443", de:"Fu\u00dfboden nach einem Neustart",es:"Pisos despu\u00e9s de reinicio",fr:"\u00c9tages apr\u00e8s red\u00e9marrage",pl:"Pod\u0142oga po restarcie",tr:"yeniden ba\u015flat\u0131ld\u0131ktan sonra Katlar",it:"Pavimenti dopo il riavvio",cs:"Podlahy po restartu",pt:"Pisos ap\u00f3s a reinicializa\u00e7\u00e3o",ms:"Tingkat selepas restart"};this.allPhrases.TXID_UPGRNAME_RESTARTGB={en:"Additional Golden Bricks bonus after restart",ru:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441 \u0417\u043e\u043b\u043e\u0442\u044b\u0445 \u041a\u0438\u0440\u043f\u0438\u0447\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430", uk:"\u0414\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u0431\u043e\u043d\u0443\u0441 \u0417\u043e\u043b\u043e\u0442\u0438\u0445 \u041a\u0438\u0440\u043f\u0438\u0447\u0435\u0439 \u043f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0443",de:"Zus\u00e4tzliche Goldene Bricks Bonus nach dem Neustart",es:"Bono adicional de ladrillos de oro despu\u00e9s de reiniciar",fr:"Briques d'or bonus suppl\u00e9mentaire apr\u00e8s le red\u00e9marrage",pl:"Dodatkowa premia Z\u0142oty Ceg\u0142a po restarcie", tr:"yeniden ba\u015flat\u0131ld\u0131ktan sonra ek Alt\u0131n Tu\u011fla ikramiye",it:"Ulteriori oro Mattoni bonus dopo il riavvio",cs:"Dodate\u010dn\u00fd bonus Golden Cihly po restartu",pt:"Adicional b\u00f4nus de Ouro Bricks ap\u00f3s a reinicializa\u00e7\u00e3o",ms:"Bricks bonus Golden tambahan selepas restart"};this.allPhrases.TXID_UPGRNAME_RESTARTMONEY={en:"Money left after restart",ru:"\u0414\u0435\u043d\u0435\u0433 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438", uk:"\u0413\u0440\u043e\u0448\u0435\u0439 \u043f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f",de:"Geld \u00fcbrig nach dem Neustart",es:"Dinero que queda despu\u00e9s de reiniciar",fr:"Argent apr\u00e8s red\u00e9marrage",pl:"Pieni\u0105dze w lewo po restarcie",tr:"Para yeniden ba\u015flat\u0131ld\u0131ktan sonra sol",it:"Soldi a sinistra dopo il riavvio",cs:"Pen\u00edze ode\u0161el po restartu",pt:"Dinheiro deixado ap\u00f3s o rein\u00edcio", ms:"Wang yang tinggal selepas restart"};this.allPhrases.TXID_UPGRNAME_RESTARTTIME={en:"Offline time bonus after restart",ru:"\u0411\u043e\u043d\u0443\u0441\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430",uk:"\u0411\u043e\u043d\u0443\u0441\u043d\u043e\u0433\u043e \u0447\u0430\u0441\u0443 \u043f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0443", de:"Offline-Zeit-Bonus nach dem Neustart",es:"bono de tiempo sin conexi\u00f3n despu\u00e9s de reiniciar",fr:"Hors ligne bonus de temps apr\u00e8s le red\u00e9marrage",pl:"Offline premia czas po restarcie",tr:"yeniden ba\u015flat\u0131ld\u0131ktan sonra \u00c7evrim s\u00fcresi ikramiye",it:"bonus di tempo non in linea dopo il riavvio",cs:"Offline \u010das bonus po restartu",pt:"b\u00f4nus de tempo offline ap\u00f3s a reinicializa\u00e7\u00e3o",ms:"bonus masa luar talian selepas restart"};this.allPhrases.TXID_UPGRNAME_SCIENCEBOOST= {en:"Science gathering bonus",ru:"\u0411\u043e\u043d\u0443\u0441 \u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u041d\u0430\u0443\u043a\u0438",uk:"\u0411\u043e\u043d\u0443\u0441 \u0434\u043e \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u0430 \u041d\u0430\u0443\u043a\u0438",de:"Wissenschaft Versammlung Bonus",es:"bono produccion de Ciencia",fr:"bonus rassemblement scientifique",pl:"gromadzenie premia nauka",tr:"Bilim toplama ikramiye",it:"bonus raduno Scienza", cs:"bonus setk\u00e1n\u00ed Science",pt:"b\u00f4nus encontro Ci\u00eancia",ms:"bonus perhimpunan sains"};this.allPhrases.TXID_UPGRNAME_STONE={en:"Stone from tap",ru:"\u041a\u0430\u043c\u043d\u044f \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435",uk:"\u041a\u0430\u043c\u0435\u043d\u044e \u0437\u0430 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u043d\u044f",de:"Stein pro Klick",es:"Piedra por toque",fr:"Pierre du robinet",pl:"Kamiennego z kranu",tr:"musluktan Ta\u015f",it:"Pietra dal rubinetto", cs:"K\u00e1men z kohoutku",pt:"Pedra da torneira",ms:"Batu dari paip"};this.allPhrases.TXID_UPGRNAME_TELESCOPE={en:"Science generation",ru:"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0443\u043a\u0438",uk:"\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0456\u044f \u043d\u0430\u0443\u043a\u0438",de:"Wissenschaft Generation",es:"produccion de la ciencia",fr:"g\u00e9n\u00e9ration scientifique",pl:"generacja nauka",tr:"Bilim nesil",it:"generazione Scienza",cs:"Science generace", pt:"gera\u00e7\u00e3o de ci\u00eancia",ms:"generasi sains"};this.allPhrases.TXID_UPGRNAME_TRANSPORT={en:"Transport capacity",ru:"\u041e\u0431\u044a\u0435\u043c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438",uk:"\u043e\u0431\u0441\u044f\u0433 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f",de:"Transportkapazit\u00e4t",es:"capacidad de transporte",fr:"capacit\u00e9 de transport",pl:"przepustowo\u015b\u0107",tr:"Ta\u015f\u0131ma kapasitesi", it:"capacit\u00e0 di trasporto",cs:"kapacita doprava",pt:"capacidade de transporte",ms:"kapasiti pengangkutan"};this.allPhrases.TXID_UPGRNAME_UFOCAPACITY={en:"UFO transport capacity",ru:"\u0413\u0440\u0443\u0437\u043e\u043f\u043e\u0434\u044a\u0451\u043c\u043d\u043e\u0441\u0442\u044c \u041d\u041b\u041e",uk:"\u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0430 \u0437\u0434\u0430\u0442\u043d\u0456\u0441\u0442\u044c \u041d\u041b\u041e",de:"UFO Transportkapazit\u00e4t",es:"la capacidad de transporte del UFO", fr:"capacit\u00e9 de transport UFO",pl:"UFO przepustowo\u015b\u0107",tr:"UFO ta\u015f\u0131ma kapasitesi",it:"capacit\u00e0 di trasporto UFO",cs:"UFO p\u0159epravn\u00ed kapacita",pt:"capacidade de transporte UFO",ms:"kapasiti pengangkutan UFO"};this.allPhrases.TXID_UPGRNAME_UFOCHARGETIME={en:"Time of UFO charging",ru:"\u0412\u0440\u0435\u043c\u044f \u0437\u0430\u0440\u044f\u0434\u043a\u0438 \u041d\u041b\u041e",uk:"\u0427\u0430\u0441 \u0437\u0430\u0440\u044f\u0434\u043a\u0438 \u041d\u041b\u041e", de:"Zeit der UFO Lade",es:"Tiempo de carga UFO",fr:"Temps de charge UFO",pl:"Czas \u0142adowania UFO",tr:"UFO \u015farj zaman\u0131",it:"Tempo di ricarica UFO",cs:"Doba nab\u00edjen\u00ed UFO",pt:"Hora do UFO carregamento",ms:"Masa UFO pengecasan"};this.allPhrases.TXID_UPGRNAME_UFONUMFLIGHT={en:"Number of transports on a single charge",ru:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0438\u0440\u043e\u0432\u043e\u043a \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u0440\u044f\u0434\u043a\u0435", uk:"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u044c \u043d\u0430 \u043e\u0434\u043d\u0456\u0439 \u0437\u0430\u0440\u044f\u0434\u0446\u0456",de:"Anzahl der Transporte auf einer einzigen Ladung",es:"N\u00famero de transportes con una sola carga",fr:"Nombre de transports sur une seule charge",pl:"Liczba transport\u00f3w na jednym \u0142adowaniu",tr:"Tek bir \u015farjla ta\u015f\u0131ma say\u0131s\u0131",it:"Numero di trasporti con una singola carica", cs:"Po\u010det transport\u016f na jedno nabit\u00ed",pt:"N\u00famero de transportes com uma \u00fanica carga",ms:"Bilangan pengangkutan atas tuduhan yang sama"};this.allPhrases.TXID_UPGRNAME_WATEREXTRACTION={en:"Water extraction",ru:"\u0434\u043e\u0431\u044b\u0447\u0430 \u0432\u043e\u0434\u044b",uk:"\u0432\u0438\u0434\u043e\u0431\u0443\u0442\u043e\u043a \u0432\u043e\u0434\u0438",de:"Wassergewinnung",es:"extracci\u00f3n de agua",fr:"extraction de l'eau",pl:"Wydobywanie wody",tr:"Su \u00e7\u0131karma", it:"estrazione dell'acqua",cs:"odb\u011br vody",pt:"extrac\u00e7\u00e3o de \u00e1gua",ms:"pengambilan air"};this.allPhrases.TXID_UPGRNAME_WOOD={en:"Wood from tap",ru:"\u0414\u0435\u0440\u0435\u0432\u0430 \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435",uk:"\u0414\u0435\u0440\u0435\u0432\u0430 \u0437\u0430 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u043d\u044f",de:"Holz pro Klick",es:"La madera por toque",fr:"Bois du robinet",pl:"Drewno z kranu",tr:"musluktan Ah\u015fap",it:"Legno dal rubinetto", cs:"D\u0159evo z kohoutku",pt:"Madeira a partir da torneira",ms:"Kayu dari paip"};this.allPhrases.TXID_UPGRNAME_WOODTIME={en:"Wood processing time",ru:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u0414\u043e\u0441\u043a\u0438",uk:"\u0427\u0430\u0441 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u0430 \u0414\u043e\u0448\u043a\u0438",de:"Holzabbaugeschwindigkeit",es:"tiempo de procesamiento de la madera",fr:"temps de traitement du bois", pl:"Czas obr\u00f3bki drewna",tr:"A\u011fa\u00e7 i\u015fleme s\u00fcresi",it:"Legno tempo di elaborazione",cs:"Doba zpracov\u00e1n\u00ed d\u0159eva",pt:"tempo de processamento de madeira",ms:"Wood masa pemprosesan"};this.allPhrases.TXID_UPGRUNITS_SEC={en:"sec",ru:"\u0441\u0435\u043a",uk:"\u0441\u0435\u043a",de:"Sekunde",es:"segundo",fr:"seconde",pl:"s",tr:"sek",it:"secondo",cs:"sekunda",pt:"seg",ms:"sec"};this.allPhrases.TXID_UPGRUNITS_WATERPERSEC={en:"w/sec",ru:"\u0432\u043e\u0434\u044b / \u0441\u0435\u043a", uk:"\u0432\u043e\u0434\u0438 / \u0441\u0435\u043a",de:"w / sec",es:"a / seg",fr:"w / sec",pl:"m / s",tr:"a\u011f\u0131rl\u0131k / sn",it:"w / sec",cs:"m / sec",pt:"w / seg",ms:"w / sec"};this.allPhrases.TXID_WATERFLOW={en:"Water flow",ru:"\u041f\u043e\u0442\u043e\u043a \u0432\u043e\u0434\u044b",uk:"\u041f\u043e\u0442\u0456\u043a \u0432\u043e\u0434\u0438",de:"Wasserfluss",es:"Flujo de agua",fr:"L'\u00e9coulement de l'eau",pl:"Przep\u0142yw wody",tr:"Su ak\u0131\u015f\u0131",it:"Flusso d'acqua",cs:"Pr\u016ftok vody", pt:"Fluxo de \u00e1gua",ms:"aliran air"};this.allPhrases.TXID_WATERINCLOUD={en:"Water inside the cloud",ru:"\u0412\u043e\u0434\u044b \u0432 \u043e\u0431\u043b\u0430\u043a\u0435",uk:"\u0412\u043e\u0434\u0438 \u0432 \u0445\u043c\u0430\u0440\u0456",de:"Wasser im Inneren der Wolke",es:"El agua dentro de la nube",fr:"Eau \u00e0 l'int\u00e9rieur du nuage",pl:"Wody w chmurze",tr:"bulutun i\u00e7ine su",it:"L'acqua all'interno della nube",cs:"Voda uvnit\u0159 mraku",pt:"\u00c1gua no interior da nuvem",ms:"Air di dalam awan"}; this.allPhrases.TXID_WATERINCLOUDINFLOW={en:"Cloud growth speed",ru:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u043e\u0441\u0442\u0430 \u043e\u0431\u043b\u0430\u043a\u0430",uk:"\u0428\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f \u0445\u043c\u0430\u0440\u0438",de:"Cloud Wachstumsgeschwindigkeit",es:"la velocidad de crecimiento de la nube",fr:"la vitesse de croissance Cloud",pl:"Szybko\u015b\u0107 wzrostu chmura",tr:"Bulut b\u00fcy\u00fcme h\u0131z\u0131", it:"velocit\u00e0 di crescita nuvola",cs:"Cloud rychlost r\u016fstu",pt:"velocidade de crescimento Nuvem",ms:"kelajuan pertumbuhan awan"};this.allPhrases.TXID_WATERINCLOUDOUTFLOW={en:"Rain outflow from the cloud",ru:"\u0412\u044b\u0442\u0435\u043a\u0430\u043d\u0438\u0435 \u0434\u043e\u0436\u0434\u044f \u0438\u0437 \u043e\u0431\u043b\u0430\u043a\u0430",uk:"\u0412\u0438\u0442\u0456\u043a\u0430\u043d\u043d\u044f \u0434\u043e\u0449\u0443 \u0437 \u0445\u043c\u0430\u0440\u0438",de:"Regen Abfluss aus der Wolke", es:"Lluvia flujo de salida desde la nube",fr:"\u00e9coulement de pluie \u00e0 partir du nuage",pl:"Deszcz odp\u0142yw z chmury",tr:"Buluttan Ya\u011fmur \u00e7\u0131k\u0131\u015f",it:"La pioggia deflusso dalla nube",cs:"De\u0161\u0165ov\u00fd odtok z mraku",pt:"sa\u00edda de chuva a partir da nuvem",ms:"aliran keluar hujan dari awan"};this.allPhrases.TXID_WATERINCLOUDTIME={en:"Time till the next rain",ru:"\u0412\u0440\u0435\u043c\u044f \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u0436\u0434\u044f", uk:"\u0427\u0430\u0441\u0443 \u0434\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0434\u043e\u0449\u0443",de:"Zeit bis zum n\u00e4chsten Regen",es:"Tiempo hasta la pr\u00f3xima lluvia",fr:"Temps jusqu'\u00e0 la prochaine pluie",pl:"Czas do nast\u0119pnego deszczu",tr:"Bir sonraki ya\u011fmur kadar Zaman",it:"Il tempo fino alla prossima pioggia",cs:"\u010cas do p\u0159\u00ed\u0161t\u00edho de\u0161ti",pt:"Tempo at\u00e9 a pr\u00f3xima chuva",ms:"Masa sehingga hujan seterusnya"}; this.allPhrases.TXID_WATERINWELL={en:"Water in the water well",ru:"\u0412\u043e\u0434\u044b \u0432 \u043a\u043e\u043b\u043e\u0434\u0446\u0435",uk:"\u0412\u043e\u0434\u0438 \u0432 \u043a\u043e\u043b\u043e\u0434\u044f\u0437\u0456",de:"Das Wasser im Brunnen",es:"El agua en el pozo de agua",fr:"L'eau dans l'eau de puits",pl:"Woda w studni",tr:"Suda Su kuyusu",it:"L'acqua in acqua di pozzo",cs:"Voda ve vod\u011b dob\u0159e",pt:"\u00c1gua na \u00e1gua bem",ms:"Air di dalam air dengan baik"};this.allPhrases.TXID_WATERWELLRESTORATION= {en:"Water restoration speed",ru:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043e\u0434\u044b",uk:"\u0428\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0432\u0456\u0434\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0438",de:"Wassersanierung Geschwindigkeit",es:"velocidad de la restauraci\u00f3n del agua",fr:"Vitesse de restauration de l'eau",pl:"Woda pr\u0119dko\u015b\u0107 przywr\u00f3cenie", tr:"Su restorasyon h\u0131z\u0131",it:"Velocit\u00e0 di ripristino dell'acqua",cs:"Rychlost obnoven\u00ed vody",pt:"velocidade de restaura\u00e7\u00e3o de \u00e1gua",ms:"kelajuan pemulihan air"};this.allPhrases.TXID_WORD_COINS={en:"coins",ru:"\u043c\u043e\u043d\u0435\u0442",uk:"\u043c\u043e\u043d\u0435\u0442",de:"M\u00fcnzen",es:"monedas",fr:"Monnaie",pl:"monety",tr:"madeni para",it:"monete",cs:"mince",pt:"moedas",ms:"syiling"};this.allPhrases.TXID_WORLDDESC_BABELTOWER={en:"Build the tower to the sky and beyond!", ru:"\u041f\u043e\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0431\u0430\u0448\u043d\u044e \u0434\u043e \u043d\u0435\u0431\u0430 \u0438 \u0432\u044b\u0448\u0435!",uk:"\u041f\u043e\u0431\u0443\u0434\u0443\u0439\u0442\u0435 \u0432\u0435\u0434\u0443 \u0434\u043e \u043d\u0435\u0431\u0430 \u0432\u0438\u0449\u0435!",de:"Bauen Sie den Turm in den Himmel und dar\u00fcber hinaus!",es:"Construir la torre hacia el cielo y m\u00e1s all\u00e1!",fr:"Construire la tour vers le ciel et au-del\u00e0!",pl:"Zbudowa\u0107 wie\u017c\u0119 do nieba i poza ni\u0105!", tr:"g\u00f6ky\u00fcz\u00fc ve \u00f6telere kule in\u015fa!",it:"Costruire la torre verso il cielo e oltre!",cs:"Stav\u011bt v\u011b\u017ee k nebi a je\u0161t\u011b d\u00e1l!",pt:"Construir a torre para o c\u00e9u e al\u00e9m!",ms:"Membina menara ke langit dan seterusnya!"};this.allPhrases.TXID_WORLDNAME_BABELTOWER={en:"Babel Tower",ru:"\u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u043a\u0430\u044f \u0431\u0430\u0448\u043d\u044f",uk:"\u0412\u0430\u0432\u0438\u043b\u043e\u043d\u0441\u044c\u043a\u0430 \u0432\u0435\u0436\u0430", de:"Turm zu Babel",es:"Torre de Babel",fr:"Tour de Babel",pl:"Wie\u017ca Babel",tr:"Babil Kulesi",it:"Torre di Babele",cs:"Babel Tower",pt:"Torre de Babel",ms:"Menara Babel"};this.updatedButtons=[];var a=localStorage.getItem("lang");a=this.availableLangs.indexOf(a);-1==a?(this.langCode="en",localStorage.setItem("lang",this.langCode)):this.langCode=this.availableLangs[a]};Translator.prototype.registerButton=function(a){this.updatedButtons.push(a)}; Translator.prototype.changeLanguage=function(a){if(a!=this.langCode){this.langCode=a;for(a=0;aa&&(c=!1)));return c}; NewsReader.prototype.loadCurrentNews2Show=function(){if(0==this.newsArray.length)return null;-1==this.lastReadNewsId&&(this.lastReadNewsId=0);this.lastReadNewsId>=this.newsArray.length&&(this.lastReadNewsId=this.newsArray.length-1);localStorage.setItem("newsId",this.lastReadNewsId);return this.newsArray[this.lastReadNewsId]}; NewsReader.prototype.setPrevNewsId=function(){for(var a=this.lastReadNewsId,b=!1;0this.lastSecondUpdateMoment+1||this.currentMomentInGamethis.myWorld.myBottleScreen.leftMargin+this.allowedWorldMovements.right&&(a=this.myWorld.myBottleScreen.leftMargin+this.allowedWorldMovements.right);bthis.myWorld.myBottleScreen.topMargin+this.allowedWorldMovements.bottom&&(b=this.myWorld.myBottleScreen.topMargin+this.allowedWorldMovements.bottom);this.myWorld.setCoords(a,b)};var HUD=function(a,b){this.myWorld=a;this.grp=b;this.scene=this.myWorld.scene;this.timedEvent=this.scene.time.addEvent({delay:500,callback:this.updateView,callbackScope:this,loop:!0,paused:!1});this.msgBoxes=[];this.screens=[];this.giftsScreen=this.createScreen(GiftsScreen)}; HUD.prototype.createScreen=function(a){a=new a(this.scene,this.grp);a.myHud=this;a.myWorld=this.myWorld;this.screens.push(a);a.visible=!1;return a};HUD.prototype.hasSomethingOpen=function(){for(var a=!1,b=0;b=this.timeOfNextGift&&(this.queuedRewardObject=this.createNthRewardObject(this.numGiftsAlreadyGiven));!this.hasAlreadySaidAboutGift&&this.queuedRewardObject&&15this.timePassedSinceLastCheck&&(this.timePassedSinceLastCheck=0);this.lastCalculatedGameMoment=a};VeryBasicGameObject.prototype.actualizeVisuals=function(a){this.visual&&this.visual.doAnimations(a)};VeryBasicGameObject.prototype.moveHigherOnLayer=function(){this.visual&&this.visual.moveHigherOnLayer()}; VeryBasicGameObject.prototype.initProperties=function(a){this.x=a[0];this.y=a[1];return 2};VeryBasicGameObject.prototype.initVisuals=function(){};VeryBasicGameObject.prototype.distributeVisuals4Layers=function(){this.visual&&this.visual.distribute4Layers(this.grps)};VeryBasicGameObject.prototype.react2Move=function(a,b){return!1};VeryBasicGameObject.prototype.react2Down=function(a,b){};VeryBasicGameObject.prototype.react2Up=function(a,b){};VeryBasicGameObject.prototype.react2Out=function(){}; VeryBasicGameObject.prototype.setPosition=function(a,b){this.x=a;this.y=b;this.visual&&(this.visual.x=this.x,this.visual.y=this.y)};VeryBasicGameObject.prototype.onJustCreated=function(){};VeryBasicGameObject.prototype.setCreatedAndCurrentMoment=function(a){this.lastCalculatedGameMoment=a};VeryBasicGameObject.prototype.getPrepared4Deletion=function(){this.isInDeleteQueue=!0};VeryBasicGameObject.prototype.getFullyRemoved=function(){this.visual&&this.visual.getRemoved()}; VeryBasicGameObject.prototype.save2Ar=function(a,b){a[b+0]=this.myWorld.machinesClasses.indexOf(this.myClass);a[b+1]="AID:"+this.arId;a[b+2]=this.x;a[b+3]=this.y;a[b+4]=this.lastCalculatedGameMoment;return b+5};VeryBasicGameObject.prototype.loadFromAr=function(a,b){this.arId=a[b+1];this.x=a[b+2];this.y=a[b+3];this.lastCalculatedGameMoment=a[b+4];return b+5};VeryBasicGameObject.prototype.afterLoadFunction=function(){}; var BasicGameObject=function(a,b,c){VeryBasicGameObject.call(this,a,b,c);this.gatheredPhiInCurrentState=0;this.phi4FullCycle=2*Math.PI;this.ownPhiGeneration=this.currentLevel=0;this.levelCap=-1;this.totalProcessingsMade=this.numCyclesCompletedAfterLastCheck=0;this.incomingConnections=[];this.outgoingConnections=[];this.outgoingProcessedConnections=[];this.upgradedParams=[];this.upgradePriceFunction=null;this.upgradeCurrency="money";this.autoClicker=null;this.lastAdditionalParamsUpdateMoment=0;this.updAdditionalParamsDt= .5;this.moneyFraction2ShowUpgradeButton=.1;this.soundPlayer=null};$jscomp.inherits(BasicGameObject,VeryBasicGameObject);BasicGameObject.prototype.playSound=function(a,b,c){null==this.soundPlayer&&(this.soundPlayer=new ObjectSoundPlayer(this));this.soundPlayer.playSound(a,b,c)};BasicGameObject.prototype.createAutoClicker=function(){return this.autoClicker=new AutoClicker(this)}; BasicGameObject.prototype.calcStateAtGameMoment=function(a){VeryBasicGameObject.prototype.calcStateAtGameMoment.call(this,a);this.autoClicker&&this.autoClicker.doStep(a);this.receivePhi(this.getOwnPhiGeneration()*this.timePassedSinceLastCheck);this.phiAddedSinceLastCheck4Anim=this.gatheredPhiInCurrentState-this.lastPhi;this.numCyclesCompletedAfterLastCheck=0;this.gatheredPhiInCurrentState>=this.phi4FullCycle&&(this.handleCurrentStateCompletion(),this.numCyclesCompletedAfterLastCheck=0);if(this.lastCalculatedGameMoment- this.lastAdditionalParamsUpdateMoment>=this.updAdditionalParamsDt||this.lastCalculatedGameMoment=this.visual.updInterfaceDt||this.lastCalculatedGameMoment=b?"active":a>=this.moneyFraction2ShowUpgradeButton*b?"inactive":0=c)&&(this.currentLevel+=a,b||this.myWorld.receiveResource(this.upgradeCurrency,-c))};BasicGameObject.prototype.getNameStr=function(){var a=this.myWorld.machinesClasses.indexOf(this.myClass);return-1!=a?this.myWorld.machinesNames[a]:""}; BasicGameObject.prototype.getNumUpgrades4Mode=function(a){if(this.upgradePriceFunction){var b=0;switch(a){case "x1":b=1;break;case "x10":b=10;break;case "Max":case "0.01%":b=this.myWorld.getResourceVal(this.upgradeCurrency);"0.01%"==a&&(b*=1E-4);a=1;for(var c=this.upgradePriceFunction(this.currentLevel+0);c<=b;){var d=this.upgradePriceFunction(this.currentLevel+a+0);if(c+d<=b)c+=d,a++;else break}b=a;break;case "Next":b=!1;for(a=1;1E4>a;a++){for(c=0;c=a}; BasicGameObject.prototype.canBUpgraded4Mode=function(a){var b=this.myWorld.getResourceVal(this.upgradeCurrency);a=this.getUpgradePrice4Mode(a);return-1!=a&&b>=a};BasicGameObject.prototype.clickEffect=function(){};BasicGameObject.prototype.react2Down=function(a,b){VeryBasicGameObject.prototype.react2Down.call(this,a,b);this.autoClicker&&this.autoClicker.startClicking()};BasicGameObject.prototype.react2Up=function(a,b){VeryBasicGameObject.prototype.react2Up.call(this,a,b);this.autoClicker&&this.autoClicker.stopClicking()}; BasicGameObject.prototype.react2Out=function(){VeryBasicGameObject.prototype.react2Out.call(this);this.autoClicker&&this.autoClicker.stopClicking()};BasicGameObject.prototype.save2Ar=function(a,b){b=VeryBasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.gatheredPhiInCurrentState;a[b+1]=this.phi4FullCycle;a[b+2]=this.currentLevel;a[b+3]=this.ownPhiGeneration;a[b+4]=this.numCyclesCompletedAfterLastCheck;a[b+5]=this.totalProcessingsMade;return b+6}; BasicGameObject.prototype.loadFromAr=function(a,b){b=VeryBasicGameObject.prototype.loadFromAr.call(this,a,b);this.gatheredPhiInCurrentState=a[b+0];this.phi4FullCycle=a[b+1];this.currentLevel=a[b+2];this.ownPhiGeneration=a[b+3];this.numCyclesCompletedAfterLastCheck=a[b+4];this.totalProcessingsMade=a[b+5];this.lastPhi=this.gatheredPhiInCurrentState;return b+6}; var BasicConnection=function(a,b,c){VeryBasicGameObject.call(this,a,b,c);this.obTo=this.obFrom=null;this.coef=1;this.obToPinId=this.obFromPinId=-1;this.obToPin=this.obFromPin=null};$jscomp.inherits(BasicConnection,VeryBasicGameObject); BasicConnection.prototype.initProperties=function(a){this.obFrom=this.myWorld.getObjectOfId(a[0]);this.obTo=this.myWorld.getObjectOfId(a[1]);this.coef=a[2];this.obFromPinId=a[3];this.obToPinId=a[4];this.obFromPin=this.obFrom.getPinOfId(this.obFromPinId);this.obToPin=this.obTo.getPinOfId(this.obToPinId);this.obFrom.registerOutgoingConnection(this,!0);this.obTo.registerIncomingConnection(this,!0);return 5}; BasicConnection.prototype.getPrepared4Deletion=function(){VeryBasicGameObject.prototype.getPrepared4Deletion.call(this);this.obFrom.removeOutgoingConnection(this);this.obTo.removeIncomingConnection(this)};BasicConnection.prototype.save2Ar=function(a,b){b=VeryBasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.obFrom.arId;a[b+1]=this.obTo.arId;a[b+2]=this.coef;a[b+3]=this.obFromPinId;a[b+4]=this.obToPinId;return b+5}; BasicConnection.prototype.loadFromAr=function(a,b){b=VeryBasicGameObject.prototype.loadFromAr.call(this,a,b);this.obFrom=this.myWorld.getObjectOfId(a[b+0]);this.obTo=this.myWorld.getObjectOfId(a[b+1]);this.coef=a[b+2];this.obFromPinId=a[b+3];this.obToPinId=a[b+4];this.obFromPin=this.obFrom.getPinOfId(this.obFromPinId);this.obToPin=this.obTo.getPinOfId(this.obToPinId);this.obFrom.registerOutgoingConnection(this,!1);this.obTo.registerIncomingConnection(this,!1);return b+5}; var UpgradedParam=function(a,b,c,d,e,f,g,h,k,n){this.paramName=a;this.ownerMachine=b;this.paramExplanation=d;this.paramUnits=e;this.coef2VisualizeUnits=f;this.valAt0=c;this.isLevelANodeFunc=g;this.simpleValIncFunc=h;this.nodeValIncFunc=k;this.cachedLevel=-1;this.cachedValue=0;this.isReciprocal4Show=n;this.masterCoef=1;this.levelCap=-1}; UpgradedParam.prototype.getValue4Level=function(a){a!=this.cachedLevel&&(this.cachedValue=this.updateCachedValue4Level(a),this.cachedLevel=a);return this.cachedValue*this.masterCoef};UpgradedParam.prototype.getValue2Show4Level=function(a){a=this.getValue4Level(a);this.isReciprocal4Show&&(a=1/a);return a*=this.coef2VisualizeUnits}; UpgradedParam.prototype.updateCachedValue4Level=function(a){for(var b=this.valAt0,c=0,d=1;d<=a;d++)this.isLevelANodeFunc(d)?(b=this.nodeValIncFunc(b,c),c++):b=this.simpleValIncFunc(b,c,d);return b};UpgradedParam.prototype.clone4Machine=function(a){return new UpgradedParam(this.paramName,a,this.valAt0,this.paramExplanation,this.paramUnits,this.coef2VisualizeUnits,this.isLevelANodeFunc,this.simpleValIncFunc,this.nodeValIncFunc,this.isReciprocal4Show)}; UpgradedParam.prototype.willHaveNodeInNext=function(a){for(var b=!1,c=this.ownerMachine.currentLevel+1;c<=this.ownerMachine.currentLevel+a;c++)if(this.isLevelANodeFunc(c)){b=!0;break}return b}; UpgradedParam.prototype.buildCurrentStringAsAr=function(a){a||(a=0);var b=this.getValue2Show4Level(this.ownerMachine.currentLevel);b=[this.paramName+": ",window.bottleScreen.utils.showNumberAsText(b)+" "+this.paramUnits];0 ","("+window.bottleScreen.utils.showNumberAsText(a)+")"));return b}; UpgradedParam.prototype.showEffectString=function(a){var b=this.getValue2Show4Level(this.ownerMachine.currentLevel);a=this.getValue2Show4Level(this.ownerMachine.currentLevel+a);return window.bottleScreen.utils.showNumberAsText(b)+" -> "+window.bottleScreen.utils.showNumberAsText(a)};UpgradedParam.prototype.willHaveNodeInNextWoMachine=function(a,b){for(var c=!1,d=a+1;d<=a+b;d++)if(this.isLevelANodeFunc(d)){c=!0;break}return c}; UpgradedParam.prototype.buildCurrentStringAsArWoMachine=function(a,b){b||(b=0);var c=this.getValue2Show4Level(a);c=[this.paramName+": ",window.bottleScreen.utils.showNumberAsText(c)+" "+this.paramUnits];0 ","("+window.bottleScreen.utils.showNumberAsText(a)+")"));return c}; UpgradedParam.prototype.showEffectStringWoMachine=function(a,b){var c=this.getValue2Show4Level(a);a=this.getValue2Show4Level(a+b);return window.bottleScreen.utils.showNumberAsText(c)+" -> "+window.bottleScreen.utils.showNumberAsText(a)}; var Slot4MachinePurchase=function(a,b,c){BasicGameObject.call(this,a,b,c);this.purchasedClass=null;this.stringCodeInPurchaser="PURCH_CODE";this.idInPurchaser=-1;this.purchasedRecord=null;this.purchasePriceFunction=this.myWorld.ballanser.calcPurchasePrice4Slot;this.purchaseCurrency="money";this.onPurchaseMadeIncomingConnections=[];this.onPurchaseMadeOutgoingConnections=[]};$jscomp.inherits(Slot4MachinePurchase,BasicGameObject); Slot4MachinePurchase.prototype.initProperties=function(a){var b=BasicGameObject.prototype.initProperties.call(this,a);this.stringCodeInPurchaser=a[b+0];this.idInPurchaser=this.myWorld.purchaser.getIdOfCode(this.stringCodeInPurchaser);this.purchasedRecord=this.myWorld.purchaser.purhasedObjects[this.idInPurchaser];var c=a[b+1];b+=2;for(var d=0;d=b?"active":a>=.1*b?"inactive":"hidden");window.bottleScreen.config.hideAllUpgradeButtons&&(a="hidden");this.visual.setUpgradeButtonProp(a)}}; Slot4MachinePurchase.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new Slot4MachinePurchaseVisual(this.scene,this.grp,this.x,this.y);this.visual.createUpgradeButton(this,"purchase")};Slot4MachinePurchase.prototype.getPurchasedMachineDescStr=function(){return this.purchasedRecord?this.purchasedRecord.purchDesc:""};Slot4MachinePurchase.prototype.getPurchasedMachineNameStr=function(){return this.purchasedRecord?this.purchasedRecord.purchName:""}; Slot4MachinePurchase.prototype.getPurchasePrice=function(){return this.purchasePriceFunction?this.purchasePriceFunction(this):-1}; Slot4MachinePurchase.prototype.performPurchase=function(a,b){if(this.purchasedRecord){if(!a){var c=a=this.getPurchasePrice();b&&(c=a*b);this.myWorld.receiveResource(this.purchaseCurrency,-c)}b=this.purchasedRecord.mainObjClass;a=this.purchasedRecord.mainObjParams.slice();a[0]+=this.x;a[1]+=this.y;b=this.myWorld.createObject(b,a);for(a=0;athis.timeBetweenClicks||0>a)&&this.doClickOnObject())};AutoClicker.prototype.startClicking=function(){this.isClicking=!0;this.doClickOnObject()};AutoClicker.prototype.stopClicking=function(){this.isClicking=!1}; AutoClicker.prototype.doClickOnObject=function(){this.ownerObject.clickEffect();this.lastClickMoment=this.lastCalculatedGameMoment};var ObjectSoundPlayer=function(a){this.myMachine=a;this.timeWhenNextSoundAllowed=0};ObjectSoundPlayer.prototype.playSound=function(a,b,c){if(c||this.myMachine.lastCalculatedGameMoment>=this.timeWhenNextSoundAllowed)window.mySoundPlayer.playSound(a),this.timeWhenNextSoundAllowed=this.myMachine.lastCalculatedGameMoment+b};var UnmovableBGD=function(a,b,c){this.myWorld=a;this.scene=b;this.grp=c};UnmovableBGD.prototype.updateSize=function(a){};UnmovableBGD.prototype.getFullyRemoved=function(){};UnmovableBGD.prototype.doStep=function(a){};var BasicMachineVisual=function(a,b,c,d){var e=Phaser.GameObjects.Container.call(this,a)||this;e.distributedSprites=[];e.imageModifiers=[];e.embeddedVisuals=[];e.touchRect=new Phaser.Geom.Rectangle(-50,-50,100,100);e.scene=a;e.x=c;e.y=d;e.grp=b;e.grp.add(e);e.upgBtnCoords={x:0,y:0};e.updInterfaceDt=.25+.1*Math.random();e.lastInterfaceUpdateMoment=0;e.hasUpgradeButton=!1;return e};$jscomp.inherits(BasicMachineVisual,Phaser.GameObjects.Container); BasicMachineVisual.prototype.doAnimations=function(a){for(var b=0;b a;a++)this.modifiedProperties[a]=!1};ImageModifier.prototype.registerDob=function(a,b){this.affectedDob=a;this.phiCycleLength=b;this.viewsSnapshots.length=0;a=new DobViewSnapshot;a.fromDob(0,this.affectedDob);this.viewsSnapshots.push(a);a=new DobViewSnapshot;a.fromDob(1,this.affectedDob);this.viewsSnapshots.push(a)};ImageModifier.prototype.changeDob=function(a){this.affectedDob=a}; ImageModifier.prototype.getDobPropertyId=function(a){switch(a){case 0:return this.affectedDob.x;case 1:return this.affectedDob.y;case 2:return this.affectedDob.rotation;case 3:return this.affectedDob.scaleX;case 4:return this.affectedDob.scaleY;case 5:return this.affectedDob.skewX;case 6:return this.affectedDob.skewY;case 7:return this.affectedDob.alpha;case 8:return this.affectedDob.visible?1:0}return 0}; ImageModifier.prototype.addAnimNode=function(a,b,c,d,e,f,g,h,k,n){b=void 0===b?0:b;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?1:e;f=void 0===f?1:f;g=void 0===g?0:g;h=void 0===h?0:h;k=void 0===k?1:k;n=void 0===n?1:n;var m=new DobViewSnapshot;m.fromData(a,b,c,d,e,f,g,h,k,n);for(b=0;ba)this.viewsSnapshots[b]=this.viewsSnapshots[b-1];else{this.viewsSnapshots[b]=m;break}else 1==a?this.viewsSnapshots[this.viewsSnapshots.length-1]=m:this.viewsSnapshots[0]=m};ImageModifier.prototype.startAnimation=function(a,b){!this.affectedDob||2>this.viewsSnapshots.length||(this.cyclesMade=0,this.maxNumCycles=a,-1!=b&&(this.phiGathered=b),this.isAnimating=!0,this.hasCycleCompleted=!1)}; ImageModifier.prototype.doAnimStep=function(a){this.hasCycleCompleted=!1;0>a&&(a=0);if(this.isAnimating){var b=!1;this.phiGathered+=a;this.phiGathered>=this.phiCycleLength&&(a=Math.floor(this.phiGathered/this.phiCycleLength),this.phiGathered%=this.phiCycleLength,this.cyclesMade+=a,0=this.maxNumCycles&&(b=!0),this.hasCycleCompleted=!0);b?(b=this.lambdaAfterAnimCompletion,this.isAnimating=!1):b=this.phiGathered/this.phiCycleLength;this.preLastLambda=this.lastLambda; this.lastLambda=b;this.setDobPropertiesByLambda(b)}};ImageModifier.prototype.setLambdaDirectly=function(a){this.setPhiGatheredDirectly(a*this.phiCycleLength)};ImageModifier.prototype.interpolate2Lambda=function(a,b){this.setPhiGatheredDirectly(this.phiGathered*(1-b)+a*this.phiCycleLength*b)};ImageModifier.prototype.stopAfterThisRun=function(){this.maxNumCycles=this.cyclesMade+1;this.setLambdaDirectly(.999)}; ImageModifier.prototype.setPhiGatheredDirectly=function(a){this.phiGathered=a;0>this.phiGathered&&(this.phiGathered=0);this.setDobPropertiesByLambda(this.phiGathered>=this.phiCycleLength?1:this.phiGathered/this.phiCycleLength)};ImageModifier.prototype.doBackwardsAnimStep=function(a){a%=this.phiCycleLength;this.doAnimStep(this.phiCycleLength-a)};ImageModifier.prototype.setCycle=function(a,b){this.phiGathered=a;this.phiCycleLength=b}; ImageModifier.prototype.setDobPropertiesByLambda=function(a){this.timeRunFunction&&(a=this.timeRunFunction(a));for(var b=0;b=a);b++);b!=this.viewsSnapshots.length-1?this.interpolateDobStateBetween(this.viewsSnapshots[b],this.viewsSnapshots[b+1],a):this.interpolateDobStateBetween(this.viewsSnapshots[this.viewsSnapshots.length-1],this.viewsSnapshots[this.viewsSnapshots.length-1],0)}; ImageModifier.prototype.interpolateDobStateBetween=function(a,b,c){c=(c-a.momentLambda)/(b.momentLambda-a.momentLambda);for(var d=0;da;a++)this.modifiedProperties[a]=!1};ImageModifier.prototype.modCycleLength=function(a){this.phiCycleLength*=a};ImageModifier.prototype.addRandomPush2PhiGathered=function(){this.phiGathered+=(this.phiCycleLength-this.phiGathered)*Math.random()}; ImageModifier.prototype.pauseAnimation=function(){this.isAnimating=!1};ImageModifier.prototype.resulmeAnimation=function(){this.isAnimating=!0};ImageModifier.prototype.hasJustCrossedLambda=function(a){var b=!1;this.preLastLambda<=a&&(this.lastLambda>=a?b=!0:this.lastLambda>16&255,a>>8&255,a&255);this.h0=a[0];this.s0=a[1];this.v0=a[2]/255*100};ImageColorChanger.prototype.createNewColor=function(){var a=this.convertHSV2RGB(360*Math.random(),this.s0,this.v0);return a[0]<<16|a[1]<<8|a[2]}; ImageColorChanger.prototype.convertHSV2RGB=function(a,b,c){360==a&&(a=0);b=(100-b)*c/100;var d=a%60*(c-b)/60,e=b+d;d=c-d;var f=0,g=0,h=0;switch(Math.floor(a/60)){case 0:f=c;g=e;h=b;break;case 1:f=d;g=c;h=b;break;case 2:f=b;g=c;h=e;break;case 3:f=b;g=d;h=c;break;case 4:f=e;g=b;h=c;break;case 5:f=c,g=b,h=d}return[Math.round(2.55*f),Math.round(2.55*g),Math.round(2.55*h)]}; ImageColorChanger.prototype.convertRGB2HSV=function(a,b,c){var d=0,e=0,f=Math.min(a,b,c),g=Math.max(a,b,c);f==g?a=f:(d=60*((a==f?3:c==f?1:5)-(a==f?b-c:c==f?a-b:c-a)/(g-f)),e=(g-f)/g,a=g);return[Math.round(d),Math.round(100*e),Math.round(a)]};var DobMover=function(a){this.distsAr=[];this.totalDist=0;this.mustAlphaAtEnd=!1;this.labmda2Fade=.1;this.trajectoryAr=a;for(a=1;ab&&(b=0);1this.distsAr[d]&&(c-=this.distsAr[d],d++,d!=this.distsAr.length-1););c/=this.distsAr[d];a.x=this.trajectoryAr[d].x+c*(this.trajectoryAr[d+1].x-this.trajectoryAr[d].x);a.y=this.trajectoryAr[d].y+c*(this.trajectoryAr[d+1].y-this.trajectoryAr[d].y);this.mustAlphaAtEnd&&!a.wasTouched&&(a.alpha=b1-this.labmda2Fade?(1-b)/this.labmda2Fade:1)}; var WaveMover=function(a){this.imgs=a;this.currentImageId=-1;this.totalPhi=0;this.animationSpeedCoef=20;this.sectionSizeAddCoef=.1;this.isAnimationRunning=!0};WaveMover.prototype.startAnimation=function(){this.currentImageId=-1;this.totalPhi=0;this.isAnimationRunning=!0}; WaveMover.prototype.doStep=function(a){if(this.isAnimationRunning){this.totalPhi+=a*this.animationSpeedCoef;a=Math.floor(this.totalPhi);var b=this.totalPhi-a,c=1-b;0<=a&&a=this.imgs.length&& (this.isAnimationRunning=!1))}};var StatsWrapper=function(){this.playerUID="";this.gameCode=2;var a=localStorage.getItem("Tower_id");if("null"!=a&&null!=a&&""!=a)this.playerUID=a,this.sendEvent("next_open",""+window.game.config.gameVersion,1);else{a="HPL_"+window.location.host+"_G_"+this.gameCode+"_"+(new Date).valueOf()+"_";for(var b=""+Math.floor(1E3*Math.random());3>b.length;)b="0"+b;this.playerUID=a+b;this.sendEvent("first_open",""+window.game.config.gameVersion,1)}localStorage.setItem("Tower_id",this.playerUID)}; StatsWrapper.prototype.sendEvent=function(a,b,c){gtag&>ag("event",a,{event_category:this.playerUID,event_label:b,value:c})};var MyVector=function(a,b){this.y=this.x=0;this.setValue(a,b)};MyVector.prototype.setValue=function(a,b){this.x=a;this.y=b};MyVector.prototype.addValue=function(a,b){this.x+=a;this.y+=b};MyVector.prototype.getMyLengthSq=function(){return this.x*this.x+this.y*this.y};MyVector.prototype.getMyLength=function(){return Math.sqrt(this.getMyLengthSq())};MyVector.prototype.multBy=function(a){this.x*=a;this.y*=a}; MyVector.prototype.setLengthOf=function(a){var b=this.getMyLength();1E-7%@|'\u00bf\u00a1AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz\u00c0\u00e0\u00c9\u00e9\u00cb\u00eb\u00cf\u00ef\u0132\u0133\u00c1\u00e1\u00ca\u00ea\u00c8\u00e8\u00cd\u00ed\u00ce\u00ee\u00d4\u00f4\u00d3\u00f3\u00da\u00fa\u00db\u00fb\u00c6\u00e6\u00d8\u00f8\u00c5\u00e5\u00c4\u00e4\u00d6\u00f6\u0160\u0161\u017d\u017e\u00d5\u00f5\u00dc\u00fc\u00df\u0102\u0103\u00c2\u00e2\u015e\u015f\u0162\u0163\u00c7\u00e7\u011e\u011f\u0130\u0131\u0150\u0151\u0170\u0171\u0152\u0153\u00d9\u00f9\u0178\u00ff\u00c3\u00e3\u00d1\u00f1\u00cc\u00ec\u00d2\u00f2\u0104\u0105\u0141\u0142\u0143\u0144\u017b\u017c\u0106\u0107\u0118\u0119\u015a\u015b\u0179\u017a\u010c\u010d\u0110\u0111\u010e\u010f\u011a\u011b\u0147\u0148\u0158\u0159\u0164\u0165\u016e\u016f\u00dd\u00fd\u013d\u013e\u0139\u013a\u0154\u0155\u0100\u0101\u0112\u0113\u0122\u0123\u012a\u012b\u0136\u0137\u013b\u013c\u0145\u0146\u014c\u014d\u0156\u0157\u016a\u016b\u0116\u0117\u012e\u012f\u0172\u0173\u0410\u0430\u0411\u0431\u0412\u0432\u0413\u0433\u0414\u0434\u0415\u0435\u0416\u0436\u0417\u0437\u0418\u0438\u041a\u043a\u041b\u043b\u041c\u043c\u041d\u043d\u041e\u043e\u041f\u043f\u0420\u0440\u0421\u0441\u0422\u0442\u0423\u0443\u0424\u0444\u0425\u0445\u0426\u0446\u0427\u0447\u0428\u0448\u0419\u0439\u0429\u0449\u042c\u044c\u042e\u044e\u042f\u044f\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\u042a\u044a\u0401\u0451\u042d\u044d\u042b\u044b\u040e\u045e\u0409\u0459\u040a\u045a\u040f\u045f\u0408\u0458\u040b\u045b\u0402\u0452\u0403\u0453\u040c\u045c\u0405\u0455\u04c1\u04c2\u021b\u0219\u021a\u0218\"\u00ab\u00bb\u201e\u201c\u201d\u00a9";this.scene= a;this.x=d;this.y=e;this.cx=d;this.cy=e;this.textHeight=30;this.group4Letters=this.grp=b;this.untranslatedText=this.text="";this.letters=[];this.myTint=16777215;this.myAlign="center";this.myFontScale=1;this.myStringWidth=900;this.showText(c)};TFOnParentGroup.prototype.setLettersScale=function(a){this.myFontScale=a};TFOnParentGroup.prototype.setStringWidth=function(a){this.myStringWidth=a};TFOnParentGroup.prototype.setMustTranslate=function(a){this.mustTranslateShownTex=a}; TFOnParentGroup.prototype.changeTint=function(a){if(a!=this.myTint)for(this.myTint=a,a=0;a=c[b+2]&&(b+=2);var t=c[b+1];-1==t&&(t=this.myTint);p.tint=t;p.setScale(this.myFontScale);p.x=d;p.y=e;p.visible=-1!=r;d+=(p.frame.cutWidth+2)*this.myFontScale;if("\n"==q)d=this.cx+0,e+=45*this.myFontScale,k.push({from:n,to:l-1}),n=l+1,m=d;else if(l==f-1)k.push({from:n,to:l});else if(d-m>this.myStringWidth)if(m= a.charAt(l+1),-1==this.westernSymbols.indexOf(m))d=this.cx+0,e+=45*this.myFontScale,k.push({from:n,to:l}),n=l+1,m=d;else{q=l;for(m=l-1;m>n;m--)if(r=a.charAt(m),-1==this.westernSymbols.indexOf(r)){q=m;break}e+=45*this.myFontScale;for(m=q+1;m<=l;m++)this.letters[m].y=e;m=qa){var c=this.letters[a].x,d=this.letters[b].x;switch(this.myAlign){case "left":var e=this.cx-c;break;case "center":e=this.cx-(d+c)/2;break;case "right":e=this.cx-d}for(;a<=b;a++)this.letters[a].x+=e}};TFOnParentGroup.prototype.getNumString4Tag=function(a){for(a=""+a;4>a.length;)a="0"+a;return a}; var ButtonWithText=function(a,b,c,d,e){var f=TextField.call(this,a,b,c,d,e)||this;f.hasAltTorFrame=!1;f.bgdIm=f.scene.add.image(0,-20,"allGraphics2","w000_longButtonUp4new0000");f.bgdIm.setOrigin(.5,.5);f.add(f.bgdIm);f.x=d;f.y=e;for(a=0;a=1E3*d&&a.performPurchase(!1,0);for(b=0;bthis.numRestarts&&this.showMessage("TXID_MSGCAP_TUT_CRANENEEDED",["TXID_MSGANS_OK"],[{func:this.moveScreenBy.bind(this,-800,0)}],null);var b=this.createObject(Crane,[a.x+664,a.y]),c=this.createObject(Forest,[a.x+1058,a.y+15]),d=this.createObject(Lumbermill,[a.x+782,a.y+169]),e=this.createObject(WoodStorage,[a.x+1268,c.y+165]),f=this.createObject(PlanksStorage, [a.x+622,a.y+223]),g=this.createObject(WheelBarrowTransporter,[d.x+125,d.y,"wood",e.x-d.x-167,e.y-d.y]);this.createObject(SimpleConnection,[b.arId,a.arId,1,-1,-1]);this.createObject(SimpleConnection,[f.arId,b.arId,1,-1,-1]);this.createObject(SimpleConnection,[d.arId,f.arId,1,-1,-1]);this.createObject(SimpleConnection,[g.arId,d.arId,1,-1,-1]);this.createObject(SimpleConnection,[e.arId,g.arId,1,-1,-1]);this.createObject(SimpleConnection,[c.arId,e.arId,1,-1,-1])}2==a.numStoriesBuilt&&(this.expandDraggableArea({left:-300, right:0,top:0,bottom:0}),b=this.createObject(WaterWell,[a.x+1602,a.y+122]),c=this.findObjectOfClass({cls:Forest}),this.createObject(Slot4MachinePurchase,[b.x-126,b.y-72,"PURCH_WATERPUMP",1,b.arId,1,c.arId]));if(3==a.numStoriesBuilt){c=[];for(b=0;b ","x"+window.bottleScreen.utils.showNumberAsText(g),"\nTXID_MSGCAP_BOOSTNAME_PROD: ","x"+window.bottleScreen.utils.showNumberAsText(e)," => ","x"+window.bottleScreen.utils.showNumberAsText(b),"\nTXID_MSGCAP_BOOSTNAME_PRICE: ","x"+window.bottleScreen.utils.showNumberAsText(c)," => ","x"+window.bottleScreen.utils.showNumberAsText(f), "\n\nTXID_MSGCAP_RESTART_QUESTION"],arOfColors:[-1,6750054,-1,-1,16777096,-1,-1,-1,-1,16777096,6750054,-1,-1,16777096,6750054,-1,-1,16777096,6750054,-1]},["TXID_MSGANS_NO","TXID_CAP_RESTART"],[null,{func:this.initiateRestartSequence.bind(this)}],null)}; BabelWorld.prototype.getPrestigeAdditionAfterRestart=function(a){a||(a=0);var b=this.findObjectOfClass({cls:MainBabelTower}),c=0;b&&(a=b.numStoriesBuilt+a,2<=a&&(c=(a-1)*(a-1),a>this.maxTowerHeight||c>=this.prestige||(c=Math.max(Math.ceil(c/this.prestige*c),Math.ceil((a-1)/2)))));return c=Math.round(c*this.getAfterRestartBricksCoef())}; BabelWorld.prototype.getMasterPriceCoef=function(a){a||(a=this.prestige);a=1+.1*a;0=this.offlineTimeBonus&&(a=this.isSpeedingTime=!1);return a};BabelWorld.prototype.startNormalPlayRate=function(){this.isSpeedingTime=!1};BabelWorld.prototype.startFastFoward=function(){0=this.offlineTimeBonus&&(this.offlineTimeBonus=0,this.startNormalPlayRate()));this.isRestartPlanned&&(this.countdownTillRestart-=a,0>=this.countdownTillRestart&&(this.doRestart(),this.isRestartPlanned=!1,this.countdownTillRestart=0))}; BabelWorld.prototype.createBGDs=function(){World.prototype.createBGDs.call(this);var a=new SkyBGD(this,this.scene,this.containerGroup,this.midLine,this.myBottleScreen.screenZeroY);this.unmovableBGDs.push(a);a=new SpaceBGD(this,this.scene,this.containerGroup,this.midLine,this.groundLevel-2200);this.unmovableBGDs.push(a);a=new GroundBGD(this,this.scene,this.containerGroup,this.midLine,this.groundLevel);this.unmovableBGDs.push(a);a=new UnderGroundBGD(this,this.scene,this.containerGroup,this.midLine, this.groundLevel+450);this.unmovableBGDs.push(a)};BabelWorld.prototype.createThunderstorm=function(){var a=new ThunderstormEffect(this,this.scene,this.containerGroup);this.unmovableBGDs.push(a);window.mySoundPlayer.playSound("thunderbolt")}; BabelWorld.prototype.initiateRestartSequence=function(){this.createThunderstorm();this.isRestartPlanned=!0;this.countdownTillRestart=1;window.portalWrapper.showInterstitial({statsCode:"fromRestart"});var a=this.findObjectOfClass({cls:MainBabelTower});a?window.bottleScreen.statsWrapper.sendEvent("restart_tower_level_"+this.numRestarts,""+a.numStoriesBuilt,1):window.bottleScreen.statsWrapper.sendEvent("restart_tower_level_"+this.numRestarts,"-1",0)}; BabelWorld.prototype.receiveResource=function(a,b){World.prototype.receiveResource.call(this,a,b);"stone"==a&&(this.stone+=b);"science"==a&&this.additionalParamsStorage&&(this.additionalParamsStorage.science+=b)};BabelWorld.prototype.getResourceVal=function(a){var b=World.prototype.getResourceVal.call(this,a);"stone"==a&&(b=this.stone);"science"==a&&(b=this.additionalParamsStorage?this.additionalParamsStorage.science:0);return b}; BabelWorld.prototype.getNameOfGoodsOfCode=function(a){a=this.goodsList.indexOf(a);return-1!=a?this.goodsNamesList[a]:""};BabelWorld.prototype.getListOfStoragesWithGoods=function(a){a=[];for(var b=0;b=a.findObjectOfClass({cls:QuarryMine}).totalProcessingsMade?1:2}; BabelWorld.prototype.tapTriggerResult=function(){var a=this.controller.myWorld,b=a.findObjectOfClass({cls:QuarryMine});a.myTutController.createTutor(TutPointingHand,b,a.tutQuarrTapped.bind(b));a.showMessage("TXID_MSGCAP_TUT_MINE",["TXID_MSGANS_OK"],[])};BabelWorld.prototype.tutQuarrTapped=function(){return 3=c.totalProcessingsMade?1:2);return a}; BabelWorld.prototype.forestTriggerResult=function(){var a=this.controller.myWorld,b=a.findObjectOfClass({cls:Forest});a.myTutController.createTutor(TutPointingHand,b,a.tutForestTapped.bind(b));a.showMessage("TXID_MSGCAP_TUT_CHOP",["TXID_MSGANS_OK"],[])};BabelWorld.prototype.tutForestTapped=function(){return 2<=this.totalProcessingsMade}; BabelWorld.prototype.dragWoodTriggerCondition=function(){var a=0,b=this.controller.myWorld;if(b.myTutController.hasActiveTutorial()||b.hud.hasSomethingOpen())return 0;(b=b.findObjectOfClass({cls:WoodStorage}))&&5=a?this.scienceInformer.visible=!1:(this.scienceInformer.visible=!0,this.scienceInformer.showText("TXID_CAP_INF_SCIENCE: "+window.bottleScreen.utils.showNumberAsText(a)));this.gameSpeedController.updateView()}; BabelHUD.prototype.menuBtnHandler=function(){this.ownerPanel.showMenuPanel(this.myWorld);window.portalWrapper.showInterstitial({statsCode:"fromMenu"})};BabelHUD.prototype.soundOnBtnHandler=function(){window.mySoundPlayer.switchSound(!0);this.ownerPanel.sndOnBtn.visible=!window.mySoundPlayer.isSoundEnabled;this.ownerPanel.sndOffBtn.visible=window.mySoundPlayer.isSoundEnabled}; BabelHUD.prototype.soundOffBtnHandler=function(){window.mySoundPlayer.switchSound(!1);this.ownerPanel.sndOnBtn.visible=!window.mySoundPlayer.isSoundEnabled;this.ownerPanel.sndOffBtn.visible=window.mySoundPlayer.isSoundEnabled};BabelHUD.prototype.langBtnHandler=function(){this.ownerPanel.showLangScreen()};BabelHUD.prototype.marketBtnHandler=function(){this.ownerPanel.showSellPanel(this.myWorld);window.portalWrapper.showInterstitial({statsCode:"marketFromScreen"})}; BabelHUD.prototype.boostsBtnHandler=function(){this.ownerPanel.showBoostPanel(this.myWorld);window.portalWrapper.showInterstitial({statsCode:"fromBoosts"})}; BabelHUD.prototype.updateLayoutOnScreen=function(a){HUD.prototype.updateLayoutOnScreen.call(this,a);this.moneyInformer.x=a.gameWidth/2;this.moneyInformer.y=50;this.scienceInformer.x=a.gameWidth/2;this.scienceInformer.y=120;this.marketBtn.x=this.moneyInformer.x+340;this.marketBtn.y=70;this.boostBtn.x=this.moneyInformer.x-340;this.boostBtn.y=70;this.menuBtn.x=a.gameWidth-50;this.menuBtn.y=50;this.sndOnBtn.x=this.menuBtn.x;this.sndOnBtn.y=this.menuBtn.y+95;this.sndOffBtn.x=this.menuBtn.x;this.sndOffBtn.y= this.menuBtn.y+95;this.langBtn.x=this.sndOffBtn.x;this.langBtn.y=this.sndOffBtn.y+95;this.gameSpeedController.x=50;this.gameSpeedController.y=50};BabelHUD.prototype.showSettingsPanel4Carawan=function(a){this.carawanSettingsPanel.showForMachine(a);this.setVisibleScreen(this.carawanSettingsPanel)};BabelHUD.prototype.showSettingsPanel4Laboratory=function(a){this.labSettingsPanel.showForMachine(a);this.setVisibleScreen(this.labSettingsPanel)}; BabelHUD.prototype.showMachineUpgradePanel=function(a){this.upgrPanel.showForMachine(a);this.setVisibleScreen(this.upgrPanel)};BabelHUD.prototype.showMachinePurchasePanel=function(a){this.purchPanel.showForSlot(a);this.setVisibleScreen(this.purchPanel)};BabelHUD.prototype.showSellPanel=function(a){this.sellPanel.showForWorld(a);this.setVisibleScreen(this.sellPanel)};BabelHUD.prototype.showBoostPanel=function(a){this.boostsScreen.showForWorld(a);this.setVisibleScreen(this.boostsScreen)}; BabelHUD.prototype.showMenuPanel=function(a){this.menuScreen.showForWorld(a);this.setVisibleScreen(this.menuScreen)};BabelHUD.prototype.showStartScreen=function(){this.startScreen.showForWorld(this.myWorld);this.setVisibleScreen(this.startScreen)};BabelHUD.prototype.showLangScreen=function(){this.setVisibleScreen(this.langScreen)};BabelHUD.prototype.showArtifactsScreen=function(){this.artifactsScreen.showForWorld(this.myWorld);this.setVisibleScreen(this.artifactsScreen)}; BabelHUD.prototype.showNewsScreen=function(){this.setVisibleScreen(this.newsScreen)};BabelHUD.prototype.handleOut=function(a,b){return this.autoTapMarker.visible=!1};BabelHUD.prototype.handleDown=function(a,b){this.autoTapMarker.x=a;this.autoTapMarker.y=b;this.autoTapMarker.visible=!0;return!1};BabelHUD.prototype.handleUp=function(a,b){return this.autoTapMarker.visible=!1};BabelHUD.prototype.handleMove=function(a,b){this.autoTapMarker.visible&&(this.autoTapMarker.x=a,this.autoTapMarker.y=b);return!1}; BabelHUD.prototype.doAnimStep=function(a){this.autoTapMarker.visible&&this.autoTapMarker.doAnimStep(a)};BabelHUD.prototype.animTap=function(){this.autoTapMarker.showTick2Center()}; var AutoTapMarker=function(a,b,c){var d=Phaser.GameObjects.Container.call(this,b)||this;d.myWorld=a;d.scene=b;d.grp=c;d.grp.add(d);d.botIm=d.scene.add.image(0,50,"allGraphics2","w000_triangleMarker4new0000").setOrigin(.5,1);d.topIm=d.scene.add.image(0,-50,"allGraphics2","w000_triangleMarker4new0000").setOrigin(.5,1);d.topIm.rotation=Math.PI;d.rightIm=d.scene.add.image(50,0,"allGraphics2","w000_triangleMarker4new0000").setOrigin(.5,1);d.rightIm.rotation=-Math.PI/2;d.leftIm=d.scene.add.image(-50,0, "allGraphics2","w000_triangleMarker4new0000").setOrigin(.5,1);d.leftIm.rotation=Math.PI/2;d.add(d.botIm);d.add(d.topIm);d.add(d.rightIm);d.add(d.leftIm);d.mods=[];a=new ImageModifier;a.registerDob(d.botIm,.2);a.addAnimNode(.3,d.botIm.x,d.botIm.y-30,d.botIm.rotation);d.mods.push(a);a=new ImageModifier;a.registerDob(d.topIm,.2);a.addAnimNode(.3,d.topIm.x,d.topIm.y+30,d.topIm.rotation);d.mods.push(a);a=new ImageModifier;a.registerDob(d.rightIm,.2);a.addAnimNode(.3,d.rightIm.x-30,d.rightIm.y,d.rightIm.rotation); d.mods.push(a);a=new ImageModifier;a.registerDob(d.leftIm,.2);a.addAnimNode(.3,d.leftIm.x+30,d.leftIm.y,d.leftIm.rotation);d.mods.push(a);return d};$jscomp.inherits(AutoTapMarker,Phaser.GameObjects.Container);AutoTapMarker.prototype.doAnimStep=function(a){for(var b=0;b= this.mySlot.getPurchasePrice()?6750054:16744982,-1],!0);this.mchCap.showText(this.mchName);this.descCap.showText(this.mchDesc);this.priceCap.setY(this.descCap.y+this.descCap.getTextHeight()+50);this.purcBtn.y=this.priceCap.y+this.priceCap.getTextHeight()+50;this.openMarketHintTxt.setY(this.purcBtn.y);this.marketBtn.y=this.openMarketHintTxt.y+this.openMarketHintTxt.getTextHeight()+50;var a=this.mySlot.getPurchasePrice(),b=.5*a;this.mySlot.myWorld.getResourceVal(this.mySlot.purchaseCurrency)>=a?(this.purcBtn.visible= !0,this.marketBtn.visible=!1,this.openMarketHintTxt.visible=!1,this.bgIm.setScale(10.4,(this.purcBtn.y+50)/100)):(this.purcBtn.visible=!1,this.openMarketHintTxt.visible=!0,this.bgIm.setScale(10.4,(this.marketBtn.y+50)/100),"money"==this.mySlot.purchaseCurrency?(this.openMarketHintTxt.showTextsOfDifferentColors(["TXID_CAP_INF_NOTENOGHMONEY\n","TXID_CAP_INF_USEMARKET_BEG ","TXID_CAP_INF_USEMARKET_MID"," TXID_CAP_INF_USEMARKET_END"],[16744982,-1,7798623,-1]),this.marketBtn.visible=!0):(this.openMarketHintTxt.showTextsOfDifferentColors(["TXID_CAP_INF_NOTENOUGHRES"], [16744982]),this.marketBtn.visible=!1));this.mySlot.myWorld.getResourceVal(this.mySlot.purchaseCurrency)>=b?window.portalWrapper.isRewardedAdReady()?(this.purcDiscountBtn.visible=!0,this.purcBtn.visible?(this.purcDiscountBtn.x=-300,this.purcDiscountBtn.y=this.purcBtn.y,this.purcBtn.x=300):(this.purcDiscountBtn.x=-300,this.purcDiscountBtn.y=this.marketBtn.y,this.marketBtn.x=300)):(this.purcDiscountBtn.visible=!1,this.purcBtn.x=0,this.marketBtn.x=0):(this.purcDiscountBtn.visible=!1,this.purcBtn.x=0, this.marketBtn.x=0)}; var MachineUpgradePanel=function(a,b){a=UpdatedPropertyPanel.call(this,a,b)||this;a.bgIm=a.scene.add.image(0,0,"allGraphics2","w000_panelBase4new0000");a.add(a.bgIm);a.bgIm.setOrigin(.5,0);a.bgIm.setScale(10.4,5.5);a.mchCap=new TextField(a.scene,a,"Machine",0,80);a.paramCaps=[];a.priceCap=new TextField(a.scene,a,"Price",0,350);a.upBtn=new ButtonWithText(a.scene,a,"TXID_CAP_UPGRADE",0,500);a.upBtn.registerHandler(a.upgBtnHandler);a.upBtn.myPanel=a;a.upFreeBtn=new ButtonWithText(a.scene,a,"TXID_CAP_FREE! +1", 0,500);a.upFreeBtn.registerHandler(a.upgFreeBtnHandler);a.upFreeBtn.myPanel=a;a.upFreeBtn.addIconFrame("w000_iconAds4new0000");a.closeBtn=new ButtonWithIcon(a.scene,a,"w000_closeIcon4new0000",500,30);a.closeBtn.myPanel=a;a.closeBtn.registerHandler(a.closeBtnHandler);a.upgrModeButton=new ButtonWithIcon(a.scene,a,"w000_iconModex14new0000",400,30);a.upgrModeButton.myPanel=a;a.upgrModeButton.registerHandler(a.changeUpgrMode);a.upgrModeButton.upgrMode="x1";a.openMarketHintTxt=new TextField(a.scene,a,"Market", 0,500);a.openMarketHintTxt.showTextsOfDifferentColors(["TXID_CAP_INF_NOTENOGHMONEY\n","TXID_CAP_INF_USEMARKET_BEG ","TXID_CAP_INF_USEMARKET_MID"," TXID_CAP_INF_USEMARKET_END"],[16744982,-1,7798623,-1]);a.marketBtn=new ButtonWithText(a.scene,a,"TXID_CAP_MARKET",0,600);a.marketBtn.registerHandler(a.marketBtnHandler);a.marketBtn.myPanel=a;a.myMachine=null;return a};$jscomp.inherits(MachineUpgradePanel,UpdatedPropertyPanel); MachineUpgradePanel.prototype.marketBtnHandler=function(){this.myPanel.myMachine.myWorld.hud.showSellPanel(this.myPanel.myMachine.myWorld);window.portalWrapper.showInterstitial({statsCode:"marketFromUpgrade"})};MachineUpgradePanel.prototype.upgFreeBtnHandler=function(){window.portalWrapper.showRewarded({statsCode:"upgrade"},{rewardType:"freeUpgrade",machine:this.myPanel.myMachine,numLevels:1});this.visible=!1}; MachineUpgradePanel.prototype.upgBtnHandler=function(){this.myPanel.myMachine.performUpgrade4Mode(this.myPanel.upgrModeButton.upgrMode,!1);this.myPanel.showForMachine(this.myPanel.myMachine)};MachineUpgradePanel.prototype.changeUpgrMode=function(){var a=["x1","x10","Max","Next"],b=(a.indexOf(this.upgrMode)+1)%a.length;this.upgrMode=a[b];this.myPanel.updateView();this.setIconFrame(["w000_iconModex14new0000","w000_iconModex104new0000","w000_iconModeMax4new0000","w000_iconModeNext4new0000"][b])}; MachineUpgradePanel.prototype.closeBtnHandler=function(){this.myPanel.hide()};MachineUpgradePanel.prototype.showForMachine=function(a){this.myMachine=a;this.show()};MachineUpgradePanel.prototype.show=function(){UpdatedPropertyPanel.prototype.show.call(this)}; MachineUpgradePanel.prototype.updateView=function(){UpdatedPropertyPanel.prototype.updateView.call(this);for(var a=0;aa)var d= this.paramCaps[a];else d=new TextField(this.scene,this,"Param",0,250),this.paramCaps.push(d);d.visible=!0;d.y=b;b+=50;d.showTextsOfDifferentColors(this.myMachine.upgradedParams[a].buildCurrentStringAsAr(c),[-1,-1,this.myMachine.upgradedParams[a].willHaveNodeInNext(c)?16777096:-1,this.myMachine.canBUpgraded(c)?7798623:16744982],!0)}b+=100;this.priceCap.y=b;this.priceCap.showTextsOfDifferentColors(["---== TXID_CAP_UPGRADEPRICE: ",window.bottleScreen.utils.showNumberAsText(this.myMachine.getUpgradePrice4Mode(this.upgrModeButton.upgrMode)), " "+this.myMachine.myWorld.ballanser.getName4Currency(this.myMachine.upgradeCurrency)+" ==---"],[-1,this.myMachine.canBUpgraded4Mode(this.upgrModeButton.upgrMode)?7798623:16744982,-1],!0);b+=100;this.upBtn.y=b;this.upgrModeButton.y=this.priceCap.y-30;this.openMarketHintTxt.setY(b);this.marketBtn.y=this.openMarketHintTxt.y+this.openMarketHintTxt.getTextHeight()+50;this.myMachine.canBUpgraded4Mode(this.upgrModeButton.upgrMode)?(this.upBtn.visible=!0,this.marketBtn.visible=!1,this.openMarketHintTxt.visible= !1,this.bgIm.setScale(10.4,(this.upBtn.y+50)/100)):(this.upBtn.visible=!1,this.openMarketHintTxt.visible=!0,this.bgIm.setScale(10.4,(this.marketBtn.y+50)/100),"money"==this.myMachine.upgradeCurrency?(this.openMarketHintTxt.showTextsOfDifferentColors(["TXID_CAP_INF_NOTENOGHMONEY\n","TXID_CAP_INF_USEMARKET_BEG ","TXID_CAP_INF_USEMARKET_MID"," TXID_CAP_INF_USEMARKET_END"],[16744982,-1,7798623,-1]),this.marketBtn.visible=!0):(this.openMarketHintTxt.showTextsOfDifferentColors(["TXID_CAP_INF_NOTENOUGHRES"], [16744982]),this.marketBtn.visible=!1));window.portalWrapper.isRewardedAdReady()?(this.upFreeBtn.visible=!0,this.upBtn.visible?(this.upFreeBtn.x=-300,this.upFreeBtn.y=this.upBtn.y,this.upBtn.x=300):(this.upFreeBtn.x=-300,this.upFreeBtn.y=this.marketBtn.y,this.marketBtn.x=300)):(this.upFreeBtn.visible=!1,this.upBtn.x=0,this.marketBtn.x=0)};MachineUpgradePanel.prototype.hide=function(){UpdatedPropertyPanel.prototype.hide.call(this);this.myMachine=null}; var ArtifactInfo=function(a,b){a=Phaser.GameObjects.Container.call(this,a)||this;a.grp=b;a.grp.add(a);a.isInPool=!0;a.visible=!1;a.myArtifact=null;a.myPanel=null;b=a.scene.add.image(0,70,"allGraphics2","w000_tmpSquare4new0000").setOrigin(.5,.5).setScale(4.8,2.4);b.alpha=.8;b.tint=1996465;a.add(b);b=a.scene.add.image(-240,-50,"allGraphics2","w001_cornerIm4new0000").setOrigin(0,0);a.add(b);b=a.scene.add.image(240,-50,"allGraphics2","w001_cornerIm4new0000").setOrigin(0,0).setScale(-1,1);a.add(b);b=a.scene.add.image(-240, 190,"allGraphics2","w001_cornerIm4new0000").setOrigin(0,0).setScale(1,-1);a.add(b);b=a.scene.add.image(240,190,"allGraphics2","w001_cornerIm4new0000").setOrigin(0,0).setScale(-1,-1);a.add(b);a.capTxt=new TFOnParentGroup(a.scene,a,"cap",0,0);a.capTxt.changeAlign("center");a.descTxt=new TFOnParentGroup(a.scene,a,"desc",0,50);a.descTxt.changeAlign("center");a.ownTxt=new TFOnParentGroup(a.scene,a,"Owned",0,130);a.iconIm=a.scene.add.image(-170,110,"allGraphics2","w001_artifactsSymbols4new0000").setOrigin(.5, .5);a.add(a.iconIm);a.buyBtn=new ButtonWithIcon(a.scene,a,"w000_sellIcon4new0000",170,110);a.buyBtn.myInfo=a;a.buyBtn.registerHandler(a.buyBtnHandler);a.priceTxt=new TFOnParentGroup(a.scene,a,"$$$",0,130);a.priceTxt.changeTint(6750054);a.priceTxt.setStringWidth(200);return a};$jscomp.inherits(ArtifactInfo,Phaser.GameObjects.Container); ArtifactInfo.prototype.showForArtifact=function(a){this.myArtifact=a;this.capTxt.showText(this.myArtifact.name);this.descTxt.showText(this.myArtifact.desc);this.iconIm.setTexture("allGraphics2",this.myArtifact.txtKey);this.ownTxt.showText("TXID_PHRASE_OWNED:"+this.myArtifact.quantityAvailable);this.priceTxt.showText("$"+this.myArtifact.price);window.bottleScreen.config.tradeArtfactsForBricks&&this.priceTxt.showText(window.bottleScreen.utils.showNumberAsText(this.myArtifact.sciencePrice)+" TXID_CAP_INF_SCIENCE"); 0=a?this.myInfo.myPanel.myWorld.showMessage("TXID_MSG_BRICKSBUYCONFIRMATION_BEG "+window.bottleScreen.utils.showNumberAsText(a)+" TXID_MSG_BRICKSBUYCONFIRMATION_MIDALT "+this.myInfo.myArtifact.name+" TXID_MSG_BRICKSBUYCONFIRMATION_END?",["TXID_MSGANS_YES","TXID_MSGANS_NO"],[{func:this.myInfo.buyAfterConfirmation.bind(this.myInfo)}, null],null):this.myInfo.myPanel.myWorld.showMessage("TXID_MSG_NOTENOUGHSCIENCE",["TXID_MSGANS_OK"],[],null)}else this.myInfo.myPanel.myWorld.showMessage("Placeholder function for buying Artifact\n"+this.myInfo.myArtifact.name,["OK"],[],null)}; ArtifactInfo.prototype.buyAfterConfirmation=function(){window.bottleScreen.world.artifactsController.purchaseArtifactOfUID(this.myArtifact.uid,"science");this.showForArtifact(this.myArtifact);window.bottleScreen.statsWrapper.sendEvent("artifact_purchase_science",this.myArtifact.effectCode)}; var NewsScreen=function(a,b){a=UpdatedPropertyPanel.call(this,a,b)||this;a.myWorld=null;a.bgIm=a.scene.add.image(0,0,"allGraphics2","w000_panelBase4new0000");a.add(a.bgIm);a.bgIm.setOrigin(.5,0);a.bgIm.setScale(11.48,7.8);a.cap=new TextField(a.scene,a,"TXID_CAP_NEWS",0,120);a.newsCap=new TextField(a.scene,a,"newsCap",0,220);a.newsCap.changeTint(7798623);a.newsText=new TextField(a.scene,a,"newsText",0,320);a.newsText.setStringWidth(1050);a.closeBtn=new ButtonWithIcon(a.scene,a,"w000_closeIcon4new0000", 500,30);a.closeBtn.myPanel=a;a.closeBtn.registerHandler(a.closeBtnHandler);a.nxtBtn=new ButtonWithIcon(a.scene,a,"w000_rightArrIcon4new0000",200,80);a.nxtBtn.myPanel=a;a.nxtBtn.registerHandler(a.nxtBtnHandler);a.prevBtn=new ButtonWithIcon(a.scene,a,"w000_leftArrIcon4new0000",-200,80);a.prevBtn.myPanel=a;a.prevBtn.registerHandler(a.prevBtnHandler);a.ansBtns=[];a.ansActions=[];return a};$jscomp.inherits(NewsScreen,UpdatedPropertyPanel); NewsScreen.prototype.show=function(){UpdatedPropertyPanel.prototype.show.call(this);this.showNextNews()}; NewsScreen.prototype.showNewsObject=function(){if(this.newsObject){this.newsCap.showText(window.translator.selectPhraseOfLanguage(this.newsObject.caption));this.newsText.showText(window.translator.selectPhraseOfLanguage(this.newsObject.message));var a=this.newsText.y+this.newsText.getTextHeight()+50;this.ansActions=[];for(var b=0;ba)var d=this.upgCaps[a],e=this.upgBtns[a],f=this.priceCaps[a];else d=new TextField(this.scene, this,"Param",-460,250),this.upgCaps.push(d),d.changeAlign("left"),d.setStringWidth(650),e=new ButtonWithIcon(this.scene,this,"w000_upgradeIcon4new0000",240,0),e.myPanel=this,e.registerHandler(this.upgBtnHandler),e.createCaption(" ",-20,0),e.lvlInformer.changeTint(5782826),e.lvlInformer.changeAlign("left"),this.upgBtns.push(e),f=new TextField(this.scene,this,"Price",310,250),this.priceCaps.push(f),f.changeAlign("left");d.visible=!0;d.y=b+20;e.paramId=a;e.visible=!0;e.y=b;e.lvlInformer.showText(""+ c.currentLevel);f.visible=!0;f.y=b+20;b+=100;var g=-1!=c.lvlCap&&c.currentLevel>=c.lvlCap?0:1;d.showTextsOfDifferentColors(c.param.buildCurrentStringAsArWoMachine(c.currentLevel,g),[-1,-1,c.param.willHaveNodeInNextWoMachine(c.currentLevel,g)?16777096:-1,this.myMachine.canUpgradeParam(a,g)?7798623:16744982],!0);0this.timeBetweenWindowOpensInTower/5&&(a=this.timeBetweenWindowOpensInTower/5);return a};BabelBallanser.prototype.upgrJumperTimeDec_nodeAdd=function(a,b){a+=.1*(b+1);a>this.timeBetweenWindowOpensInTower/5&&(a=this.timeBetweenWindowOpensInTower/5);return a};BabelBallanser.prototype.upgrGunPowderProduction_isNode=function(a){return 0==a%10}; BabelBallanser.prototype.upgrGunPowderProduction_simpleAdd=function(a,b,c){return a+.01*Math.pow(2,b)};BabelBallanser.prototype.upgrGunPowderProduction_nodeAdd=function(a,b){return a+.05*Math.pow(2,b)};BabelBallanser.prototype.upgrMoonStoneProduction_isNode=function(a){return 0==a%10};BabelBallanser.prototype.upgrMoonStoneProduction_simpleAdd=function(a,b,c){return a+.01*Math.pow(2,b)};BabelBallanser.prototype.upgrMoonStoneProduction_nodeAdd=function(a,b){return a+.05*Math.pow(2,b)}; BabelBallanser.prototype.upgrElevatorPower_isNode=function(a){return 0==a%10};BabelBallanser.prototype.upgrElevatorPower_simpleAdd=function(a,b,c){return a+10*Math.pow(2,b)};BabelBallanser.prototype.upgrElevatorPower_nodeAdd=function(a,b){return 2*a};BabelBallanser.prototype.upgrGalileo_isNode=function(a){a=225-40*(5-a);var b=!1;if(0<=a){var c=Math.floor(Math.sqrt(a));c*c==a&&(b=!0)}return b};BabelBallanser.prototype.upgrGalileo_simpleAdd=function(a,b,c){return a+1*Math.pow(2,b)}; BabelBallanser.prototype.upgrGalileo_nodeAdd=function(a,b){return 2*a};BabelBallanser.prototype.upgrTelescope_isNode=function(a){a=144-32*(4-a);var b=!1;if(0<=a){var c=Math.floor(Math.sqrt(a));c*c==a&&(b=!0)}return b};BabelBallanser.prototype.upgrTelescope_simpleAdd=function(a,b,c){return a+1E3*Math.pow(2,b)};BabelBallanser.prototype.upgrTelescope_nodeAdd=function(a,b){return 2*a};BabelBallanser.prototype.upgrRestartFloors_isNode=function(a){return!1}; BabelBallanser.prototype.upgrRestartFloors_simpleAdd=function(a,b,c){return a+1};BabelBallanser.prototype.upgrRestartFloors_nodeAdd=function(a,b){return a+1};BabelBallanser.prototype.upgrRestartTime_isNode=function(a){return!1};BabelBallanser.prototype.upgrRestartTime_simpleAdd=function(a,b,c){return a+.1};BabelBallanser.prototype.upgrRestartTime_nodeAdd=function(a,b){return a+.1};BabelBallanser.prototype.upgrRestartMoney_isNode=function(a){return!1}; BabelBallanser.prototype.upgrRestartMoney_simpleAdd=function(a,b,c){return a+.001};BabelBallanser.prototype.upgrRestartMoney_nodeAdd=function(a,b){return a+.001};BabelBallanser.prototype.upgrRestartGB_isNode=function(a){return!1};BabelBallanser.prototype.upgrRestartGB_simpleAdd=function(a,b,c){return a+.1};BabelBallanser.prototype.upgrRestartGB_nodeAdd=function(a,b){return a+.1};BabelBallanser.prototype.upgrScienceBoost_isNode=function(a){return 0==a%9}; BabelBallanser.prototype.upgrScienceBoost_simpleAdd=function(a,b,c){return a+.1*Math.pow(2,b)};BabelBallanser.prototype.upgrScienceBoost_nodeAdd=function(a,b){return 2*a};BabelBallanser.prototype.upgrSiple_isNode=function(a){return!1};BabelBallanser.prototype.upgrSimple_simpleAdd=function(a,b,c){return a+1*Math.pow(2,b)};BabelBallanser.prototype.upgrSimple_nodeAdd=function(a,b){return 2*a}; BabelBallanser.prototype.getCoefOfTowerBricksConversion=function(a){if(window.bottleScreen.config.cheapBricks)return 1;for(var b=1,c=10,d=0;dthis.lambda?2*this.lambda*this.lambda:1-2*(1-this.lambda)*(1-this.lambda);this.handIm.x=this.hx0+a*(this.hx1-this.hx0);this.handIm.y=this.hy0+a*(this.hy1-this.hy0)};TutDraggingHand.prototype.getRemoved=function(){TutSprite.prototype.getRemoved.call(this);this.handIm.destroy()}; var TutTappingHand=function(a,b,c,d){TutSprite.call(this,a,b,c,d);this.handIm=this.scene.add.image(0,0,"allGraphics2","w000_tutHand4new0000");this.hx0=this.myObject.x;this.hy0=this.myObject.y-40;this.hx1=this.myObject.x;this.hy1=this.myObject.y+10;this.alpha0=0;this.scale0=2;this.scale1=this.alpha1=1;this.handIm.x=this.hx0;this.handIm.y=this.hy0;this.handIm.rotation=0;this.handIm.alpha=this.alpha0;this.handIm.scale=this.scale0;this.grp.add(this.handIm);this.cycleLength=.5}; $jscomp.inherits(TutTappingHand,TutSprite);TutTappingHand.prototype.updateAtMoment=function(a){TutSprite.prototype.updateAtMoment.call(this,a);a=1-(1-this.lambda)*(1-this.lambda);this.handIm.x=this.hx0+a*(this.hx1-this.hx0);this.handIm.y=this.hy0+a*(this.hy1-this.hy0);this.handIm.alpha=this.alpha0+a*(this.alpha1-this.alpha0);this.handIm.setScale(this.scale0+a*(this.scale1-this.scale0))};TutTappingHand.prototype.getRemoved=function(){TutSprite.prototype.getRemoved.call(this);this.handIm.destroy()};var WheelBarrowTransporter=function(a,b,c){BasicGameObject.call(this,a,b,c);this.ownPhiGeneration=1;this.storageTo=this.storageFrom=null;this.resourceName="";this.currentlyTransportedVal=this.maxTransportCapacity=0;this.dxToBeginning=-250;this.dyToBeginning=-150;this.pathLength=Math.sqrt(this.dxToBeginning*this.dxToBeginning+this.dyToBeginning*this.dyToBeginning);this.deliveryPhase=0;this.connectedDrummer=null;this.param_Capacity=this.myWorld.ballanser.transportCapacityUpgrader.clone4Machine(this); this.param_Capacity.valAt0=0;this.upgradedParams.push(this.param_Capacity);this.upgradePriceFunction=this.myWorld.ballanser.getTransportUpgradePrice};$jscomp.inherits(WheelBarrowTransporter,BasicGameObject); WheelBarrowTransporter.prototype.initProperties=function(a){var b=BasicGameObject.prototype.initProperties.call(this,a);this.resourceName=a[b+0];this.dxToBeginning=a[b+1];this.dyToBeginning=a[b+2];this.pathLength=Math.sqrt(this.dxToBeginning*this.dxToBeginning+this.dyToBeginning*this.dyToBeginning);this.actualizeUpgradeParam();return b+3};WheelBarrowTransporter.prototype.getTransportCapacity=function(){return this.param_Capacity.getValue4Level(this.currentLevel)*this.myWorld.getMasterProdCoef()}; WheelBarrowTransporter.prototype.updateAdditionalParams=function(){var a=1;0this.phi4FullCycle&&(this.gatheredPhiInCurrentState-=this.phi4FullCycle,this.handleCycleCompletion(1));var a=1+this.pathLength/100+this.pathLength/100;if(this.gatheredPhiInCurrentState>a){var b=Math.floor(this.gatheredPhiInCurrentState/a);this.gatheredPhiInCurrentState%=a;this.handleFullCyclesCompletion(b)}this.gatheredPhiInCurrentState>this.phi4FullCycle&&(BasicGameObject.prototype.handleCurrentStateCompletion.call(this), this.handleCycleCompletion(1))};WheelBarrowTransporter.prototype.handleFullCyclesCompletion=function(a){a*=this.getTransportCapacity();a=Math.min(a,this.storageFrom.getResVal(this.resourceName));this.storageFrom.modValueBy(-a);this.totalProcessingsMade+=a;this.storageTo.modValueBy(a)}; WheelBarrowTransporter.prototype.handleCycleCompletion=function(a){var b=0,c=1;switch(this.deliveryPhase){case 0:0a&&(a=0);switch(this.deliveryPhase){case 1:this.visual.setAnimLambda(0,a);break;case 2:this.visual.setAnimLambda(1,a)}}; WheelBarrowTransporter.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new WheelBarrowTransporterVisual(this.scene,this.grp,this.x,this.y,this.resourceName);this.visual.setMoveDeltas(this.dxToBeginning,this.dyToBeginning);this.visual.upgBtnCoords.x=.5*this.dxToBeginning;this.visual.upgBtnCoords.y=40;"stone"==this.resourceName&&(this.visual.upgBtnCoords.x=this.dxToBeginning,this.visual.upgBtnCoords.y=this.dyToBeginning-200);this.visual.createUpgradeButton(this)}; WheelBarrowTransporter.prototype.registerIncomingConnection=function(a,b){BasicGameObject.prototype.registerIncomingConnection.call(this,a,b);BasicGoodsStorage.isPrototypeOf(a.obFrom.myClass)&&(this.storageFrom=a.obFrom);a.obFrom.myClass==DrummerOnBalcony&&(this.connectedDrummer=a.obFrom)};WheelBarrowTransporter.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);this.storageTo=a.obTo}; WheelBarrowTransporter.prototype.actualizeUpgradeParam=function(){"wood"==this.resourceName&&(this.param_Capacity=this.myWorld.ballanser.transportWoodCapacityUpgrader.clone4Machine(this),this.upgradedParams[0]=this.param_Capacity,this.upgradePriceFunction=this.myWorld.ballanser.getWoodTransportUpgradePrice)}; WheelBarrowTransporter.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);b=window.bottleScreen.utils.saveString2Ar(a,b,this.resourceName);a[b+0]=this.maxTransportCapacity;a[b+1]=this.currentlyTransportedVal;a[b+2]=this.dxToBeginning;a[b+3]=this.dyToBeginning;a[b+4]=this.deliveryPhase;return b+5}; WheelBarrowTransporter.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);b=window.bottleScreen.utils.loadStringFromAr(a,b);this.resourceName=b.str;b=b.id;this.maxTransportCapacity=a[b+0];this.currentlyTransportedVal=a[b+1];this.dxToBeginning=a[b+2];this.dyToBeginning=a[b+3];this.deliveryPhase=a[b+4];this.pathLength=Math.sqrt(this.dxToBeginning*this.dxToBeginning+this.dyToBeginning*this.dyToBeginning);this.actualizeUpgradeParam();return b+5}; var QuarryMine=function(a,b,c){BasicGameObject.call(this,a,b,c);this.ownPhiGeneration=0;this.connectedStorage=null;this.moneyFraction2ShowUpgradeButton=.01;this.timeBetweenProductions=.5;this.value2Produce=this.lastProductionMoment=0;this.param_tapMinePower=this.myWorld.ballanser.quarryTapUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_tapMinePower);this.upgradePriceFunction=this.myWorld.ballanser.getQuarryUpgradePrice;this.param_numAutoMiners=this.myWorld.ballanser.quarryNumMinersUpgrader.clone4Machine(this); this.upgradedParams.push(this.param_numAutoMiners);this.createAutoClicker()};$jscomp.inherits(QuarryMine,BasicGameObject);QuarryMine.prototype.getOwnPhiGeneration=function(){return this.param_numAutoMiners.getValue4Level(this.currentLevel)*this.param_tapMinePower.getValue4Level(this.currentLevel)};QuarryMine.prototype.handleCurrentStateCompletion=function(){BasicGameObject.prototype.handleCurrentStateCompletion.call(this);this.handleCycleCompletion(this.numCyclesCompletedAfterLastCheck)}; QuarryMine.prototype.updateAdditionalParams=function(){var a=1;0=this.timeBetweenProductions||this.lastCalculatedGameMomentc&&this.visual.createMiners(a-c)};QuarryMine.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.value2Produce;return b+1}; QuarryMine.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.value2Produce=a[b+0];return b+1};var BasicGoodsStorage=function(a,b,c){BasicGameObject.call(this,a,b,c);this.valInside=this.lastVisUpdatedMoment=this.ownPhiGeneration=0;this.goodsCode="tmpCode";this.tradePointDelta={x:0,y:0}};$jscomp.inherits(BasicGoodsStorage,BasicGameObject); BasicGoodsStorage.prototype.actualizeVisuals=function(a){BasicGameObject.prototype.actualizeVisuals.call(this,a);.5this.x?1:-1))}}}; QuarryStorage.prototype.clickEffect=function(){if(this.autoDragTarget){if(0==this.autoDragPhase){var a=Math.min(this.valInside,this.myWorld.getMasterTapCoef()*(1+this.autoDraggerFromHere.getTransportCapacity()));0this.x?1:-1))}}}; WoodStorage.prototype.clickEffect=function(){if(this.autoDragTarget){if(0==this.autoDragPhase){var a=Math.min(this.valInside,this.myWorld.getMasterTapCoef()*(1+this.autoDraggerFromHere.getTransportCapacity()));0this.phi4FullCycle&&(this.gatheredPhiInCurrentState-=this.phi4FullCycle,this.handleCycleCompletion(1));if(21this.phi4FullCycle&&(BasicGameObject.prototype.handleCurrentStateCompletion.call(this),this.handleCycleCompletion(1))}; BricksProducerTent.prototype.getValueInOneProcessing=function(){return this.param_processingValue.getValue4Level(this.currentLevel)*this.myWorld.getMasterProdCoef()};BricksProducerTent.prototype.handleFullCyclesCompletion=function(a){a*=this.getValueInOneProcessing();a=Math.min(a,this.inputBuffer);this.inputBuffer-=a;this.totalProcessingsMade+=a;this.outputOfStone.modValueBy(a)}; BricksProducerTent.prototype.handleCycleCompletion=function(a){var b=0,c=1;switch(this.deliveryPhase){case 0:if(0=1*d&&(0==this.numStoriesBuilt?(b=1,c=2):null!=this.connectedCrane&&this.connectedCrane.canDeliverBricks2Tower()&&(b=1,c=2));break;case 1:d=this.getCoefOfBricksConversion(this.neededResourceId); this.brickSupplyObject.valInside>=1*d?(this.transportedBricks=1,c=b=2,this.brickSupplyObject.modValueBy(-1*d)):(c=b=2,this.transportedBricks=0);break;case 2:if(0==this.numStoriesBuilt){b=window.bottleScreen.config.completeStoreyQuickly?48:this.calcBricksBonusFromMoon();this.myWorld.countArtifactsOfCode("purch_trowel")&&(b*=2);for(c=0;c=this.timeBetweenWindowOpens&&(this.visual.showOpenedWindow(this.myWorld.getMasterTimeCoef(),this.timeBetweenWindowCloses),this.timeSinceLastWindowOpening=0)}; MainBabelTower.prototype.startVisualsOfPhase=function(a){switch(a){case 1:this.visual.startHumanMove(this.phi4FullCycle);this.connectedCrane&&this.connectedCrane.visual.startElevatorMoveDown(this.phi4FullCycle);break;case 2:this.visual.startHumanBackMove(this.phi4FullCycle,this.transportedBricks);break;case 3:this.connectedCrane&&this.connectedCrane.startPhaseImmediately(this,3,this.phi4FullCycle)}0==a&&this.lookingBricks4Myself?(this.numAttemtsWithEmptySupply++,30==this.numAttemtsWithEmptySupply&& this.visual.startManifestation(window.bottleScreen.utils.showNumberAsText(this.getCoefOfBricksConversion())+" TXID_GOODS_BRICKS")):30<=this.numAttemtsWithEmptySupply&&(this.visual.stopManifestation(),this.numAttemtsWithEmptySupply=0)}; MainBabelTower.prototype.completeCurrentStoreyBuilding=function(){this.visual.fixNewStorageBuildCompletion(this.numStoriesBuilt);this.numStoriesBuilt++;this.bricksInCurrentStorey=0;this.myWorld.react2TowerStoreyCompletion(this);window.bottleScreen.statsWrapper.sendEvent("floor_built_"+this.myWorld.numRestarts,""+this.numStoriesBuilt,1)};MainBabelTower.prototype.getStoreyFloorY=function(a){return this.visual.getStoreyFloorY(a)}; MainBabelTower.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);a.obTo.myClass==BungeeJumper&&(this.connectedJumper=a.obTo)}; MainBabelTower.prototype.registerIncomingConnection=function(a,b){BasicGameObject.prototype.registerIncomingConnection.call(this,a,b);a.obFrom.myClass==BricksStorage&&(this.brickSupplyObject=a.obFrom);a.obFrom.myClass==Crane&&(this.connectedCrane=a.obFrom);a.obFrom.myClass==MoonStoneTower&&(this.connectedMoonTower=a.obFrom)};MainBabelTower.prototype.createStartBrickFromGoldenBricks=function(a){for(;0=a&&0a;)this.numStoriesBuilt--,b+=this.visual.getTotalBricksInStorey()*this.getCoefOfBricksConversion();this.visual.showReducedHeight(this.numStoriesBuilt);return b}; Crane.prototype.canDeliverBricks2Tower=function(){return this.numStoriesBuilt>=3*this.connectedTower.numStoriesBuilt||this.hasCannon&&this.isCannonCharged()};Crane.prototype.isCannonCharged=function(){return this.connectedCannon?this.connectedCannon.isCharged:!1};Crane.prototype.handleCurrentStateCompletion=function(){BasicGameObject.prototype.handleCurrentStateCompletion.call(this);this.handleCycleCompletion(this.numCyclesCompletedAfterLastCheck)}; Crane.prototype.handleCycleCompletion=function(a){var b=0,c=1;switch(this.deliveryPhase){case 0:if(this.hasCannon)this.connectedCannon.isCharged||(d=this.getCoefOfGunPowderConversion(),this.powderSupplyObject.valInside>=1*d&&(b=4,c=.4));else if(this.numStoriesBuilt<3*this.connectedTower.numStoriesBuilt){var d=this.getCoefOfBricksConversion();this.brickSupplyObject.valInside>=1*d&&(b=1,c=2)}break;case 1:d=this.getCoefOfBricksConversion();this.brickSupplyObject.valInside>=1*d?(this.transportedBricks= 1,c=b=2,this.brickSupplyObject.modValueBy(-1*d)):(c=b=2,this.transportedBricks=0);break;case 2:if(0==this.numStoriesBuilt){b=window.bottleScreen.config.completeStoreyQuickly?5:1;for(c=0;c=1*d?(this.transportedBricks=1,b=5,c=.4,this.powderSupplyObject.modValueBy(-1*d)):(b=5,c=.4,this.transportedBricks=0);break;case 5:0=this.maxWaterInside&&(this.waterInside=this.maxWaterInside);0>this.waterInside&&(this.waterInside=0)};WaterWell.prototype.receiveWaterFromDrillWithOverflow=function(a){this.waterInside+=a;this.waterInside>this.maxWaterInside&&(this.maxWaterInside=this.waterInside)};WaterWell.prototype.getAutoGrowth=function(){return this.autoGrowthSpeed*this.myWorld.getMasterProdCoef()}; WaterWell.prototype.updateInterfaceOnVisual=function(){BasicGameObject.prototype.updateInterfaceOnVisual.call(this);this.visual.showWaterLevel(this.waterInside,this.maxWaterInside)};WaterWell.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.waterSpent;a[b+1]=this.waterInside;a[b+2]=this.maxWaterInside;a[b+3]=this.draggedVal;return b+4}; WaterWell.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.waterSpent=a[b+0];this.waterInside=a[b+1];this.maxWaterInside=a[b+2];this.draggedVal=a[b+3];this.waterInside+=this.draggedVal;this.draggedVal=0;return b+4}; var Forest=function(a,b,c){BasicGameObject.call(this,a,b,c);this.ownPhiGeneration=0;this.connectedStorage=null;this.woodInside=this.maxWoodInside=this.myWorld.ballanser.forestMaxWood;this.autoGrowthSpeed=this.myWorld.ballanser.forestGrowthSpeed;this.timeBetweenProductions=.5;this.value2Produce=this.lastProductionMoment=0;this.param_tapChopPower=this.myWorld.ballanser.forestTapUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_tapChopPower);this.upgradePriceFunction=this.myWorld.ballanser.getForestUpgradePrice; this.param_numAutoChoppers=this.myWorld.ballanser.forestNumChoppersUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_numAutoChoppers);this.createAutoClicker();this.forestPurchCoef=this.waterPurchCoef=1};$jscomp.inherits(Forest,BasicGameObject);Forest.prototype.updateAdditionalParams=function(){var a=1;0=this.timeBetweenProductions||this.lastCalculatedGameMoment=this.maxWoodInside&&(this.woodInside=this.maxWoodInside)};Forest.prototype.incMaxTrees=function(a){this.maxWoodInside+=a*this.forestPurchCoef}; Forest.prototype.clickEffect=function(){this.receivePhi(this.phi4FullCycle*this.param_tapChopPower.getValue4Level(this.currentLevel)*this.myWorld.getMasterTapCoef());this.visual.runAnimId(0,1,0);this.myWorld.hud.animTap();this.playSound("chopSound",.2,!0)};Forest.prototype.react2Down=function(a,b){BasicGameObject.prototype.react2Down.call(this,a,b)}; Forest.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);a.obTo.myClass==WoodStorage&&(this.connectedStorage=a.obTo)};Forest.prototype.performUpgrade=function(a,b){var c=this.param_numAutoChoppers.getValue4Level(this.currentLevel);BasicGameObject.prototype.performUpgrade.call(this,a,b);a=this.param_numAutoChoppers.getValue4Level(this.currentLevel);a>c&&this.visual.createMiners(a-c)}; Forest.prototype.updateInterfaceOnVisual=function(){BasicGameObject.prototype.updateInterfaceOnVisual.call(this);this.visual.showWoodValue(this.woodInside,this.maxWoodInside)};Forest.prototype.showMisleadTreeGrowth=function(){this.visual.showMisleadTreeGrowth(this.lastCalculatedGameMoment)};Forest.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.value2Produce;a[b+1]=this.maxWoodInside;a[b+2]=this.woodInside;a[b+3]=this.autoGrowthSpeed;return b+4}; Forest.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.value2Produce=a[b+0];this.maxWoodInside=a[b+1];this.woodInside=a[b+2];this.autoGrowthSpeed=a[b+3];return b+4}; var Lumbermill=function(a,b,c){BasicGameObject.call(this,a,b,c);this.outputOfStone=null;this.deliveryPhase=this.stoneValInProcessing=this.inputBuffer=0;this.ownPhiGeneration=this.phi4FullCycle=1;this.param_processingSpeed=this.myWorld.ballanser.lumbermillSpeedUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_processingSpeed);this.param_processingValue=this.myWorld.ballanser.lumbermillValueUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_processingValue);this.upgradePriceFunction= this.myWorld.ballanser.getLumbermillUpgradePrice;this.createAutoClicker()};$jscomp.inherits(Lumbermill,BasicGameObject);Lumbermill.prototype.getOwnPhiGeneration=function(){return this.param_processingSpeed.getValue4Level(this.currentLevel)};Lumbermill.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);a.obTo.myClass==PlanksStorage&&(this.outputOfStone=a.obTo)}; Lumbermill.prototype.updateInterfaceOnVisual=function(){BasicGameObject.prototype.updateInterfaceOnVisual.call(this);this.visual.showStoneValue(this.inputBuffer)}; Lumbermill.prototype.handleCurrentStateCompletion=function(){this.gatheredPhiInCurrentState>this.phi4FullCycle&&(this.gatheredPhiInCurrentState-=this.phi4FullCycle,this.handleCycleCompletion(1));if(41this.phi4FullCycle&&(BasicGameObject.prototype.handleCurrentStateCompletion.call(this),this.handleCycleCompletion(1))}; Lumbermill.prototype.getValueInOneProcessing=function(){return this.param_processingValue.getValue4Level(this.currentLevel)*this.myWorld.getMasterProdCoef()};Lumbermill.prototype.handleFullCyclesCompletion=function(a){a*=this.getValueInOneProcessing();a=Math.min(a,this.inputBuffer);this.inputBuffer-=a;this.totalProcessingsMade+=a;this.outputOfStone.modValueBy(a)}; Lumbermill.prototype.handleCycleCompletion=function(a){var b=0,c=1;switch(this.deliveryPhase){case 0:if(0=this.maxWaterInside&&(this.maxWaterInside=this.waterInside,0==this.deliveryPhase&&(this.deliveryPhase=1,this.waterOutgoingSpeed=this.waterInside/Math.pow(1.1,60),this.visual.startRaining()));0>=this.waterInside&&(this.waterInside=0,1==this.deliveryPhase&&(this.deliveryPhase=0,this.waterOutgoingSpeed=100,this.visual.stopRaining()))}; RainCloud.prototype.calcStateAtGameMoment=function(a){BasicGameObject.prototype.calcStateAtGameMoment.call(this,a);if(1==this.deliveryPhase){a=this.waterOutgoingSpeed*this.timePassedSinceLastCheck;a>this.waterInside&&(a=this.waterInside);this.waterOutgoingSpeed*=Math.pow(1.1,this.timePassedSinceLastCheck);var b=this.outgoingConnections.length;if(0this.phi4FullCycle&&(this.gatheredPhiInCurrentState-=this.phi4FullCycle,this.handleCycleCompletion(1));var a=2*this.phi4Fly+this.phi4Unload+this.phi4Wait;if(this.gatheredPhiInCurrentState>a){var b=Math.floor(this.gatheredPhiInCurrentState/a);this.gatheredPhiInCurrentState%=a;this.handleFullCyclesCompletion(b)}this.gatheredPhiInCurrentState>this.phi4FullCycle&&(BasicGameObject.prototype.handleCurrentStateCompletion.call(this), this.handleCycleCompletion(1))};Zeppelin.prototype.getValueOfMoneyFromTourists=function(){return this.connectedBerth?this.connectedBerth.getValueOfMoneyFromTourists():1};Zeppelin.prototype.handleFullCyclesCompletion=function(a){this.myWorld.receiveResource("money",a*this.getValueOfMoneyFromTourists())}; Zeppelin.prototype.handleCycleCompletion=function(a){var b=(this.deliveryPhase+1)%4,c=1;switch(this.deliveryPhase){case 0:b=1;c=this.phi4Unload;break;case 1:b=2;c=this.phi4Fly;var d=this.x1;this.x1=this.x0;this.x0=d;d=this.y1;this.y1=this.y0;this.y0=d;a*=this.getValueOfMoneyFromTourists();this.myWorld.receiveResource("money",a);this.myWorld.myEftController.showEffect(this.x+200,this.y,EffectMoney,{txt:window.bottleScreen.utils.showNumberAsText(a)});break;case 2:b=3;c=this.phi4Wait;break;case 3:b= 0,c=this.phi4Fly,d=this.x1,this.x1=this.x0,this.x0=d,d=this.y1,this.y1=this.y0,this.y0=d}this.deliveryPhase=b;this.phi4FullCycle=c;this.startVisualsOfPhase(this.deliveryPhase)}; Zeppelin.prototype.startVisualsOfPhase=function(a){switch(a){case 0:this.visual.runAnimId(2,1,0);this.visual.showFlightDirection(this.x1-this.x0);break;case 1:this.visual.runAnimId(0,1,0);this.connectedBerth&&this.connectedBerth.startPassengersAnimation();break;case 2:this.visual.runAnimId(1,1,0);this.visual.showFlightDirection(this.x1-this.x0);break;case 3:this.visual.runAnimId(3,1,0)}}; Zeppelin.prototype.actualizeVisuals=function(a){BasicGameObject.prototype.actualizeVisuals.call(this,a);if(0==this.deliveryPhase||2==this.deliveryPhase)a=this.gatheredPhiInCurrentState/this.phi4FullCycle,1a&&(a=0),this.x=this.x0+(this.x1-this.x0)*a,this.y=this.y0+(this.y1-this.y0)*a,this.visual.setPosition(this.x,this.y);if(1==this.deliveryPhase||3==this.deliveryPhase)this.x=this.x1,this.y=this.y1,this.visual.setPosition(this.x,this.y)}; Zeppelin.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.deliveryPhase;a[b+1]=this.x0;a[b+2]=this.y0;a[b+3]=this.x1;a[b+4]=this.y1;a[b+5]=this.pathLength;a[b+6]=0;a[b+7]=this.phi4Fly;a[b+8]=this.phi4Unload;a[b+9]=this.phi4Wait;return b+10}; Zeppelin.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.deliveryPhase=a[b+0];this.x0=a[b+1];this.y0=a[b+2];this.x1=a[b+3];this.y1=a[b+4];this.pathLength=a[b+5];this.phi4Fly=a[b+7];this.phi4Unload=a[b+8];this.phi4Wait=a[b+9];return b+10}; var LiftEngine=function(a,b,c){BasicGameObject.call(this,a,b,c);this.ownPhiGeneration=10;this.phi4FullCycle=1E9;this.impulseFromTap=0;this.param_Power=this.myWorld.ballanser.elevatorEnginePowerUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_Power);this.upgradePriceFunction=this.myWorld.ballanser.getElevatorEnginePowerUpgradePrice;this.connectedElevator=null;this.createAutoClicker()};$jscomp.inherits(LiftEngine,BasicGameObject); LiftEngine.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new LiftEngineVisual(this.scene,this.grp,this.x,this.y);this.visual.createUpgradeButton(this)};LiftEngine.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);a.obTo.myClass==Crane&&(this.connectedElevator=a.obTo)}; LiftEngine.prototype.calcStateAtGameMoment=function(a){BasicGameObject.prototype.calcStateAtGameMoment.call(this,a);this.connectedElevator&&(3==this.connectedElevator.deliveryPhase||6==this.connectedElevator.deliveryPhase)&&this.connectedElevator.receivePhi(this.timePassedSinceLastCheck*this.getOwnPhiGeneration()*this.connectedElevator.getSpeedBonus());this.impulseFromTap*=Math.pow(.5,this.timePassedSinceLastCheck/2)}; LiftEngine.prototype.clickEffect=function(){this.impulseFromTap+=4*this.param_Power.getValue4Level(this.currentLevel)*this.myWorld.getMasterTapCoef();this.myWorld.hud.animTap();this.playSound("cogTick",.2,!0)};LiftEngine.prototype.getOwnPhiGeneration=function(){return this.param_Power.getValue4Level(this.currentLevel)+this.impulseFromTap}; LiftEngine.prototype.actualizeVisuals=function(a){.01>this.phiAddedSinceLastCheck4Anim?BasicGameObject.prototype.actualizeVisuals.call(this,this.phiAddedSinceLastCheck4Anim):BasicGameObject.prototype.actualizeVisuals.call(this,(1+Math.log(100*this.phiAddedSinceLastCheck4Anim))/100)};LiftEngine.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.impulseFromTap;return b+1}; LiftEngine.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.impulseFromTap=a[b+0];return b+1}; var Elephant=function(a,b,c){BasicGameObject.call(this,a,b,c);this.ownPhiGeneration=1;this.foodStorage=this.storageTo=this.storageFrom=null;this.foodStorageId=this.storageToId=this.storageFromId=-1;this.resourceName="stone";this.currentlyTransportedVal=this.maxTransportCapacity=0;this.pathLength=1;this.foodRequired=this.y1=this.x1=this.y0=this.x0=this.destY=this.destX=this.storageY=this.storageX=this.baseY=this.baseX=this.deliveryPhase=0;this.eatingPhaseLength=4.5;this.createAutoClicker();this.lastClickBoostCheckMoment= 0;this.boostFromClicks=1;this.param_Capacity=this.myWorld.ballanser.elephantCapacityUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_Capacity);this.upgradePriceFunction=this.myWorld.ballanser.getElephantUpgradePrice};$jscomp.inherits(Elephant,BasicGameObject);Elephant.prototype.initProperties=function(a){a=BasicGameObject.prototype.initProperties.call(this,a);this.x1=this.x0=this.x;this.y1=this.y0=this.y;this.baseX=this.x;this.baseY=this.y;return a+0}; Elephant.prototype.getTransportCapacity=function(){return this.param_Capacity.getValue4Level(this.currentLevel)*this.myWorld.getMasterProdCoef()};Elephant.prototype.getOwnPhiGeneration=function(){return 1*this.boostFromClicks};Elephant.prototype.calcHungerAfterTransfer=function(a){return a/1E3}; Elephant.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new ElephantVisual(this.scene,this.grp,this.x,this.y,this.resourceName);this.visual.upgBtnCoords.x=this.baseX+150-this.x;this.visual.upgBtnCoords.y=this.baseY-this.y;this.visual.createUpgradeButton(this);this.startVisualsOfPhase(this.deliveryPhase);this.visual.setScale(this.x1>this.x0?-1:1,1)}; Elephant.prototype.clickEffect=function(){this.myWorld.hud.animTap();this.lastClickBoostCheckMoment=this.lastCalculatedGameMoment;this.boostFromClicks=1+.5*this.myWorld.getMasterTapCoef()}; Elephant.prototype.actualizeVisuals=function(a){BasicGameObject.prototype.actualizeVisuals.call(this,a);if(3==this.deliveryPhase||1==this.deliveryPhase||2==this.deliveryPhase){a=this.gatheredPhiInCurrentState/this.phi4FullCycle;1a&&(a=0);var b=2==this.deliveryPhase?a:a*a*a;this.x=this.x0+(this.x1-this.x0)*a;this.y=this.y0+(this.y1-this.y0)*b;this.visual.setPosition(this.x,this.y)}}; Elephant.prototype.handleCurrentStateCompletion=function(){this.gatheredPhiInCurrentState>this.phi4FullCycle&&(this.gatheredPhiInCurrentState-=this.phi4FullCycle,this.handleCycleCompletion(1));var a=window.bottleScreen.utils.getDistBetweenPoints(this.baseX,this.baseY,this.storageX,this.storageY)/50,b=window.bottleScreen.utils.getDistBetweenPoints(this.storageX,this.storageY,this.destX,this.destY)/25,c=window.bottleScreen.utils.getDistBetweenPoints(this.destX,this.destY,this.baseX,this.baseY)/50;a= a+b+c+this.eatingPhaseLength;this.gatheredPhiInCurrentState>a&&(b=Math.floor(this.gatheredPhiInCurrentState/a),this.gatheredPhiInCurrentState%=a,b=this.handleFullCyclesCompletion(b),this.gatheredPhiInCurrentState+=a*b);this.gatheredPhiInCurrentState>this.phi4FullCycle&&(BasicGameObject.prototype.handleCurrentStateCompletion.call(this),this.handleCycleCompletion(1));this.boostFromClicks=1}; Elephant.prototype.handleFullCyclesCompletion=function(a){var b=a*this.getTransportCapacity(),c=Math.min(b,this.storageFrom.getResVal(this.resourceName)),d=0a&&(d=a);this.storageFrom.modValueBy(-c*e);this.foodStorage.modValueBy(-b);this.totalProcessingsMade+=c;this.storageTo.modValueBy(c*e);return a-d}; Elephant.prototype.handleCycleCompletion=function(a){var b=0,c=1;switch(this.deliveryPhase){case -1:0=this.foodRequired?(0this.x0?-1:1,1),this.pathLength= window.bottleScreen.utils.getDistBetweenPoints(this.x0,this.y0,this.x1,this.y1),c=this.pathLength/50):b=0,this.visual.stopManifestation()):(this.visual.startManifestation(window.bottleScreen.utils.showNumberAsText(this.foodRequired)+" TXID_GOODS_HAY"),0this.x0?-1:1,1),this.pathLength=window.bottleScreen.utils.getDistBetweenPoints(this.x0,this.y0,this.x1,this.y1),c=this.pathLength/25):(b=1,this.x1=this.x0=this.x,this.y1=this.y0=this.y,c=1);break;case 2:this.storageTo.modValueBy(this.currentlyTransportedVal);this.foodRequired+=this.calcHungerAfterTransfer(this.currentlyTransportedVal);this.totalProcessingsMade+=this.currentlyTransportedVal;this.currentlyTransportedVal= 0;b=3;this.x0=this.x;this.y0=this.y;this.x1=this.baseX;this.y1=this.baseY;this.visual.setScale(this.x1>this.x0?-1:1,1);this.pathLength=window.bottleScreen.utils.getDistBetweenPoints(this.x0,this.y0,this.x1,this.y1);c=this.pathLength/50;break;case 3:b=0,c=this.eatingPhaseLength,this.x1=this.x0=this.x,this.y1=this.y0=this.y,0=this.timeBetweenProductions||this.lastCalculatedGameMomentc&&this.visual.createHumans(a-c)}; GrassField.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.value2Produce;return b+1};GrassField.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.value2Produce=a[b+0];return b+1};var HayStack=function(a,b,c){BasicGoodsStorage.call(this,a,b,c);this.goodsCode="hay";this.tradePointDelta.x=72;this.tradePointDelta.y=47};$jscomp.inherits(HayStack,BasicGoodsStorage); HayStack.prototype.initVisuals=function(){BasicGoodsStorage.prototype.initVisuals.call(this);this.visual=new HayStackVisual(this.scene,this.grp,this.x,this.y)};var Clock=function(a,b,c){BasicGameObject.call(this,a,b,c);this.param_clockSpeed=this.myWorld.ballanser.clockSpeedUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_clockSpeed);this.upgradePriceFunction=this.myWorld.ballanser.getClockUpgradePrice;this.upgradeCurrency="science"};$jscomp.inherits(Clock,BasicGameObject); Clock.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new ClockVisual(this.scene,this.grp,this.x,this.y);this.visual.createUpgradeButton(this)};Clock.prototype.getTimeSpeedBoost=function(){return 1+this.param_clockSpeed.getValue4Level(this.currentLevel)};var UndergroundWater=function(a,b,c){BasicGameObject.call(this,a,b,c);this.connectedExtractor=null;this.maxWaterInside=this.waterInside=1E9};$jscomp.inherits(UndergroundWater,BasicGameObject); UndergroundWater.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new UndergroundWaterVisual(this.scene,this.grp,this.x,this.y)};UndergroundWater.prototype.onJustCreated=function(){var a=this.myWorld.findObjectOfClass({cls:FieldIrrigator});a&&this.myWorld.createObject(SimpleConnection,[this.arId,a.arId,1,-1,-1])}; UndergroundWater.prototype.registerOutgoingConnection=function(a,b){BasicGameObject.prototype.registerOutgoingConnection.call(this,a,b);a.obTo.myClass==WaterExtractor&&(this.connectedExtractor=a.obTo)};UndergroundWater.prototype.save2Ar=function(a,b){b=BasicGameObject.prototype.save2Ar.call(this,a,b);a[b+0]=this.waterInside;a[b+1]=this.maxWaterInside;return b+2}; UndergroundWater.prototype.loadFromAr=function(a,b){b=BasicGameObject.prototype.loadFromAr.call(this,a,b);this.waterInside=a[b+0];this.maxWaterInside=a[b+1];return b+2}; var WaterExtractor=function(a,b,c){BasicGameObject.call(this,a,b,c);this.phi4FullCycle=this.ownPhiGeneration=1;this.param_extractionSpeed=this.myWorld.ballanser.waterExtractorUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_extractionSpeed);this.upgradePriceFunction=this.myWorld.ballanser.getWaterExtractorUpgradePrice;this.connectedWaterSource=this.connectedStorage=null};$jscomp.inherits(WaterExtractor,BasicGameObject); WaterExtractor.prototype.handleCurrentStateCompletion=function(){BasicGameObject.prototype.handleCurrentStateCompletion.call(this);this.handleCycleCompletion(this.numCyclesCompletedAfterLastCheck)};WaterExtractor.prototype.handleCycleCompletion=function(a){var b=a*this.getExtractionSpeed()*this.myWorld.getMasterProdCoef();this.connectedStorage&&this.connectedStorage.modValueBy(b);return a}; WaterExtractor.prototype.getExtractionSpeed=function(){var a=this.param_extractionSpeed.getValue4Level(this.currentLevel);0this.connectedWell.waterInside&&this.connectedWell.receiveWaterFromDrillWithOverflow((this.valInside-this.connectedWell.waterInside)/2)}; var CarawanSarai=function(a,b,c){BasicGameObject.call(this,a,b,c);this.param_priceInc=this.myWorld.ballanser.carawanSaraiUpgrader.clone4Machine(this);this.upgradedParams.push(this.param_priceInc);this.upgradePriceFunction=this.myWorld.ballanser.getCarawanUpgradePrice;this.res2SellList=[]};$jscomp.inherits(CarawanSarai,BasicGameObject); CarawanSarai.prototype.initVisuals=function(){BasicGameObject.prototype.initVisuals.call(this);this.visual=new CarawanSaraiVisual(this.scene,this.grp,this.x,this.y);this.visual.createUpgradeButton(this);this.visual.createSettingsButton(this)};CarawanSarai.prototype.getMarketPriceModifier=function(){return 1+this.param_priceInc.getValue4Level(this.currentLevel)}; CarawanSarai.prototype.onJustCreated=function(){var a=this.myWorld.createObject(Camel,[this.x+221,this.y+100]);this.myWorld.createObject(SimpleConnection,[this.arId,a.arId,1,-1,-1])};CarawanSarai.prototype.updateStoragesList=function(){var a=this.myWorld.getListOfStoragesWithGoods();this.storagesRecordList=a;this.res2SellList.length>a.length&&(this.res2SellList.length=a.length);for(;this.res2SellList.lengththis.x0?-1:1,1);this.visual.setMoveAnimations(1==this.deliveryPhase||2==this.deliveryPhase)}; Camel.prototype.registerIncomingConnection=function(a,b){BasicGameObject.prototype.registerIncomingConnection.call(this,a,b);a.obFrom.myClass==CarawanSarai&&(this.connectedSarai=a.obFrom)};Camel.prototype.handleCurrentStateCompletion=function(){BasicGameObject.prototype.handleCurrentStateCompletion.call(this);this.handleCycleCompletion(this.numCyclesCompletedAfterLastCheck)}; Camel.prototype.handleCycleCompletion=function(a){var b=0,c=1;if(this.connectedSarai)switch(this.deliveryPhase){case 0:this.connectedSarai.updateStoragesList();this.currentStorageDestinationId=this.connectedSarai.findNextDestination2Go(this.currentStorageDestinationId);-1!=this.currentStorageDestinationId&&(b=1,this.x0=this.x,this.y0=this.y,c=this.connectedSarai.storagesRecordList[this.currentStorageDestinationId].storage,this.x1=c.x+c.tradePointDelta.x,this.y1=c.y+c.tradePointDelta.y,this.visual.setScale(this.x1> this.x0?-1:1,1),window.bottleScreen.utils.getDistBetweenPoints(this.x0,this.y0,this.x1,this.y1),this.pathSegments=[Math.abs(this.y0-this.baseY),Math.abs(this.x1-this.x0),Math.abs(this.y1-this.baseY)],this.calculatePathLambdas(),c=this.calculateTotalSegnemtsLength(),c=(c+1)/50);break;case 1:this.connectedSarai.updateStoragesList();this.connectedSarai.isSellingSetFrom(this.currentStorageDestinationId)&&(c=this.connectedSarai.storagesRecordList[this.currentStorageDestinationId].storage,b=this.myWorld.handleSellingFromStorage(c, .5),0this.x0?-1:1,1);window.bottleScreen.utils.getDistBetweenPoints(this.x0,this.y0,this.x1,this.y1);this.pathSegments=[Math.abs(this.y0-this.baseY),Math.abs(this.x1-this.x0),Math.abs(this.y1-this.baseY)];this.calculatePathLambdas();c=this.calculateTotalSegnemtsLength();c=(c+1)/50;break;case 2:b=0,c=1}this.deliveryPhase=b;this.phi4FullCycle=c;this.visual.setMoveAnimations(1==this.deliveryPhase||2==this.deliveryPhase);return a}; Camel.prototype.calculateTotalSegnemtsLength=function(){for(var a=0,b=0;bb&&(b=0);a=this.pathLambdas.length-1;for(var c=1;c=a?!0:!1}; AdditionalParamsStorage.prototype.initFromLastSession=function(a){if(a){this.science=a.science;this.hasLab=a.hasLab;for(var b=0;ba&&(a=0);1Math.random()&&(this.sqrtIm.tint=.5>Math.random()?0:16777215);this.ligtningIm.visible?.5>Math.random()&&(this.ligtningIm.visible=!1):.1>Math.random()&&(this.ligtningIm.x=this.sqrtIm.x-200+400*Math.random(),this.ligtningIm.visible=!0)};var SimpleSquareVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.img=a.scene.add.sprite(0,0,"allGraphics2","w000_smallScreenButtons4new0001");a.add(a.img);return a};$jscomp.inherits(SimpleSquareVisual,BasicMachineVisual); var WheelBarrowTransporterVisual=function(a,b,c,d,e){c=BasicMachineVisual.call(this,a,b,c,d)||this;e="stone"==e?"w001_roughStone4new0000":"w001_wood4new0000";c.upgBtnCoords.x=-250;c.upgBtnCoords.y=40;c.touchRect=new Phaser.Geom.Rectangle(0,0,0,0);c.humanWithCart=new HumanWithCart(a,b,0,0,e);c.humanWithCart.setScale(-1,1);c.humanWithCart.hideBrick();c.add(c.humanWithCart);c.humanWithCart.alpha=0;c.embedVisual(c.humanWithCart);c.dx2Beginning=-200;c.dy2Beginning=-100;a=c.createImageModifier(c.humanWithCart, 10);a.addAnimNode(0,c.humanWithCart.x,c.humanWithCart.y,0,-1,1,0,0,0);a.addAnimNode(.1,c.humanWithCart.x,c.humanWithCart.y,0,-1,1,0,0,1);a.addAnimNode(1,c.humanWithCart.x+c.dx2Beginning,c.humanWithCart.y+c.dy2Beginning,0,-1);a=c.createImageModifier(c.humanWithCart,10);a.addAnimNode(0,c.humanWithCart.x+c.dx2Beginning,c.humanWithCart.y+c.dy2Beginning);a.addAnimNode(.9,c.humanWithCart.x+1,c.humanWithCart.y);a.addAnimNode(1,c.humanWithCart.x+1,c.humanWithCart.y,0,1,1,0,0,0);return c}; $jscomp.inherits(WheelBarrowTransporterVisual,BasicMachineVisual); WheelBarrowTransporterVisual.prototype.setMoveDeltas=function(a,b){this.dx2Beginning=a;this.dy2Beginning=b;this.imageModifiers[0].modNodeProperty(2,"x",this.humanWithCart.x+this.dx2Beginning);this.imageModifiers[0].modNodeProperty(2,"y",this.humanWithCart.y+this.dy2Beginning);this.imageModifiers[1].modNodeProperty(0,"x",this.humanWithCart.x+this.dx2Beginning);this.imageModifiers[1].modNodeProperty(0,"y",this.humanWithCart.y+this.dy2Beginning);0<=this.dx2Beginning?(this.imageModifiers[0].modNodeProperty(0, "scaleX",1),this.imageModifiers[0].modNodeProperty(1,"scaleX",1),this.imageModifiers[0].modNodeProperty(2,"scaleX",1),this.imageModifiers[1].modNodeProperty(0,"scaleX",-1),this.imageModifiers[1].modNodeProperty(1,"scaleX",-1),this.imageModifiers[1].modNodeProperty(2,"scaleX",-1)):(this.imageModifiers[0].modNodeProperty(0,"scaleX",-1),this.imageModifiers[0].modNodeProperty(1,"scaleX",-1),this.imageModifiers[0].modNodeProperty(2,"scaleX",-1),this.imageModifiers[1].modNodeProperty(0,"scaleX",1),this.imageModifiers[1].modNodeProperty(1, "scaleX",1),this.imageModifiers[1].modNodeProperty(2,"scaleX",1))};WheelBarrowTransporterVisual.prototype.startHumanMoveOut=function(a){this.humanWithCart.hideBrick();this.setAnimLength(0,a);this.runAnimId(0,1,0)};WheelBarrowTransporterVisual.prototype.startHumanBackMove=function(a,b){0=c+1?(d.setScale(1,1),d.y=this.brCoords[c].y):(d.setScale(e-c,e-c),d.y=this.brCoords[c].y+50*(1-(e-c))),d.visible=!0)}0==a?(this.text.showText(""),this.text.visible=!1):(this.text.visible=!0,this.text.showText(window.bottleScreen.utils.showNumberAsText(a)))}; var BricksStorageVisual=function(a,b,c,d){a=BasicStorageVisual.call(this,a,b,c,d)||this;a.touchRect=new Phaser.Geom.Rectangle(-120,-85,240,85);a.bricksImgs=[];b=[{x:-70,y:0},{x:1,y:0},{x:73,y:0},{x:-36,y:-40},{x:35,y:-40},{x:1,y:-73}];for(c=0;c=c+1?d.setScale(1,1):d.setScale(e-c,e-c),d.visible=!0)}0==a?(this.text.showText(""),this.text.visible=!1):(this.text.visible=!0,this.text.showText(window.bottleScreen.utils.showNumberAsText(a)))}; var BricksProducerTentVisual=function(a,b,c,d){c=BasicMachineVisual.call(this,a,b,c,d)||this;c.upgBtnCoords.x=25;c.upgBtnCoords.y=35;c.touchRect=new Phaser.Geom.Rectangle(-320,-185,440,185);c.workerIm=c.scene.add.image(32,-18,"allGraphics2","w001_workerSimple4new0000");c.workerIm.setOrigin(.5,1);c.add(c.workerIm);c.workerIm.setScale(-1,1);c.createdBrickIm=c.scene.add.image(3,-38,"allGraphics2","w001_brick4new0000");c.createdBrickIm.setOrigin(.5,1);c.add(c.createdBrickIm);c.createdBrickIm.visible= !1;c.outBrickIm=c.scene.add.image(3,-38,"allGraphics2","w001_brick4new0000");c.outBrickIm.setOrigin(.5,1);c.add(c.outBrickIm);c.outBrickIm.visible=!1;c.baseIm=c.scene.add.image(0,-13,"allGraphics2","w001_brickMakerBottom4new0000");c.baseIm.setOrigin(.5,1);c.add(c.baseIm);c.stoneBufferIm=c.scene.add.image(-133,-41,"allGraphics2","w001_roughStone4new0000");c.stoneBufferIm.setOrigin(.5,.5);c.stoneBufferIm.rotation=-.4;c.add(c.stoneBufferIm);c.stoneBufferIm.visible=!1;c.stoneQuantityInf=new TFWithBGD(c.scene, c,"",c.stoneBufferIm.x,c.stoneBufferIm.y+50,{texKey:"w001_bgdOfInformer4new0000",bgdOx:.5,bgdOy:.5,dx:0,dy:-22});c.stoneQuantityInf.mustTranslateShownText=!1;c.transferredStoneIm=c.scene.add.image(-133,-41,"allGraphics2","w001_roughStone4new0000");c.transferredStoneIm.setOrigin(.5,.5);c.transferredStoneIm.rotation=-.4;c.add(c.transferredStoneIm);c.transferredStoneIm.visible=!1;c.cloudsAnim=new DustCloudsAnim(a,b,3,-38);c.add(c.cloudsAnim);c.sparklesAnim=new SparklesLineAnim(a,b,-20,-38);c.add(c.sparklesAnim); c.embedVisual(c.cloudsAnim);c.embedVisual(c.sparklesAnim);c.tentIm=c.scene.add.image(0,0,"allGraphics2","w001_tent4new0000");c.tentIm.setOrigin(.5,1);c.add(c.tentIm);a=c.createImageModifier(c.outBrickIm,.8);a.addAnimNode(0,c.outBrickIm.x,c.outBrickIm.y,0,1,1,1,1,1);a.addAnimNode(.25,c.outBrickIm.x+54,c.outBrickIm.y-18,0,1,1,1,1,1);a.addAnimNode(.5,c.outBrickIm.x+143,c.outBrickIm.y+46,0,1,1,1,1,1);a.addAnimNode(.75,c.outBrickIm.x+143,c.outBrickIm.y+46,0,1,1,1,1,1);a.addAnimNode(1,c.outBrickIm.x+143, c.outBrickIm.y+46,0,1,1,1,1,0);a=c.createImageModifier(c.transferredStoneIm,1);a.addAnimNode(0,c.transferredStoneIm.x,c.transferredStoneIm.y,c.transferredStoneIm.rotation,1,1,1,1,1);a.addAnimNode(.1,c.createdBrickIm.x,c.createdBrickIm.y-30,c.transferredStoneIm.rotation,1,1,1,1,1);a.addAnimNode(1,c.createdBrickIm.x,c.createdBrickIm.y-30,c.transferredStoneIm.rotation,1,1,1,1,0);a=c.createImageModifier(c.createdBrickIm,1);a.addAnimNode(0,c.createdBrickIm.x,c.createdBrickIm.y,0,1,1,1,1,0,1);a.addAnimNode(1, c.createdBrickIm.x,c.createdBrickIm.y,0,1,1,1,1,1,0,1);a=c.createImageModifier(c.tentIm,.4);a.addAnimNode(.4,0,0,0,1.1,.95);a.addAnimNode(.8,0,0,0,.95,1.1);a=c.createImageModifier(c.workerIm,.6);a.addAnimNode(.4,c.workerIm.x,c.workerIm.y,0,c.workerIm.scaleX,.95);a.addAnimNode(.8,c.workerIm.x,c.workerIm.y,0,c.workerIm.scaleX,1.1);a=c.createImageModifier(c.workerIm,3.6);a.addAnimNode(.4999,c.workerIm.x-50,c.workerIm.y,0,-1);a.addAnimNode(.5,c.workerIm.x-50,c.workerIm.y,0,1);a.addAnimNode(.999,c.workerIm.x, c.workerIm.y,0,1);c.returnedStoneAnim=new AnimatedImage(c.scene,c.grp,{key:"w001_roughStone4new0000"});c.registerAnimatedImage(c.returnedStoneAnim);c.returnedStoneAnim.placeInCoords(c.stoneBufferIm.x,c.stoneBufferIm.y);return c};$jscomp.inherits(BricksProducerTentVisual,BasicMachineVisual); BricksProducerTentVisual.prototype.showStoneProcessingCompletion=function(){this.updateStoneProcessingAnimationsAtLambda(1);this.stopAnimId(1);this.stopAnimId(2);this.runAnimId(0,1,0);this.createdBrickIm.visible=!1;this.cloudsAnim.stopAnimations();this.sparklesAnim.stopAnimations();this.stopAnimId(4);this.stopAnimId(5)}; BricksProducerTentVisual.prototype.startStoneProcessing=function(a,b){this.imageModifiers[1].modNodeProperty(1,"lambda",.1/a);this.runAnimId(1,1,0);this.runAnimId(2,1,0);this.stoneBufferIm.visible=0a;)this.sectionsImgs[this.sectionsImgs.length-1].destroy(),this.sectionsImgs.length--;this.touchRect.top=b*(a+1)}; CraneVisual.prototype.fixNewStorageBuildCompletion=function(a){this.currentlyBuiltPart.resetAtNewHeight(a);var b=this.currentlyBuiltPart.getWallH(),c=this.scene.add.image(0,-a*b+5,"allGraphics2","w001_craneBlock4new0000");c.setOrigin(.5,1);this.add(c);this.sectionsImgs.push(c);this.touchRect.top-=b;this.elevatorVis.visible=!0;this.elevatorVis.y=-(a+1)*b-10;this.elevatorVis.setNewDist2Floor(Math.abs(-a*b)+82);this.bringToTop(this.elevatorVis)}; CraneVisual.prototype.startGunPowderSackMove=function(a,b){0=c+1?d.setScale(1,1):d.setScale(e-c,e-c),d.visible=!0)}0==a?(this.text.showText(""),this.text.visible=!1):(this.text.visible=!0,this.text.showText(window.bottleScreen.utils.showNumberAsText(a)))}; var PlanksStorageVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.touchRect=new Phaser.Geom.Rectangle(-120,-85,240,85);a.bricksImgs=[];b=[{x:0,y:0},{x:0,y:-18},{x:0,y:-36},{x:0,y:-54},{x:0,y:-72},{x:0,y:-90}];for(c=0;c=c+1?d.setScale(1,1):d.setScale(e-c,e-c),d.visible=!0)}0==a?(this.text.showText(""),this.text.visible=!1):(this.text.visible=!0,this.text.showText(window.bottleScreen.utils.showNumberAsText(a)))}; var WaterWellVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.touchRect=new Phaser.Geom.Rectangle(-150,-120,300,200);a.wellBack=a.scene.add.image(-12,-62,"allGraphics2","w001_waterWellBack4new0000");a.wellBack.setOrigin(.5,.5);a.add(a.wellBack);a.waterIm=a.scene.add.image(-12,-55,"allGraphics2","w001_waterWellWater4new0000");a.waterIm.setOrigin(.5,.5);a.add(a.waterIm);a.waterImY0=a.waterIm.y;a.wellFront=a.scene.add.image(-13,-26,"allGraphics2","w001_waterWellFront4new0000"); a.wellFront.setOrigin(.5,.5);a.add(a.wellFront);a.draggedStonePiece=a.scene.add.image(0,0,"allGraphics2","w001_waterBucket4new0000");a.draggedStonePiece.setOrigin(.5,.5);a.add(a.draggedStonePiece);a.draggedStonePiece.visible=!1;a.returnedStoneAnim=new AnimatedImage(a.scene,a.grp,{key:"w001_waterBucketEmpty4new0000",mode:"withRotation"});a.registerAnimatedImage(a.returnedStoneAnim);return a};$jscomp.inherits(WaterWellVisual,BasicMachineVisual); WaterWellVisual.prototype.returnDraggedVal=function(){this.returnedStoneAnim.startFromPoint(this.draggedStonePiece.x,this.draggedStonePiece.y);this.draggedStonePiece.visible=!1};WaterWellVisual.prototype.dropDraggedVal=function(){this.returnedStoneAnim.startFromPoint(this.draggedStonePiece.x,this.draggedStonePiece.y);this.draggedStonePiece.visible=!1};WaterWellVisual.prototype.showDraggedVal=function(){this.draggedStonePiece.visible=!0;this.draggedStonePiece.x=0;this.draggedStonePiece.y=0}; WaterWellVisual.prototype.showValDragging=function(a,b){this.draggedStonePiece.x=a-this.x;this.draggedStonePiece.y=b-this.y};WaterWellVisual.prototype.showWaterLevel=function(a,b){a/=b;0>a&&(a=0);1a&&(a=0);1=a;b--)this.stumpsImgs[b].visible=!0,this.treemsImgs[b].visible=!1;if(0==a)for(b=0;bb;b++)a.sectionsImgs.push(a.hoseSegments[b]);for(b=5;b=a*a+b*b);return c};MainBabelTowerVisual.prototype.hasMoneyWindow=function(){return this.openedWindow.isShowing&&this.openedWindow.hasPurse};MainBabelTowerVisual.prototype.getMoneyWindowCoords=function(){return{x:this.openedWindow.x,y:this.openedWindow.y-31}}; MainBabelTowerVisual.prototype.showGoldGrab=function(a,b){this.openedWindow.showGoldGrab()};MainBabelTowerVisual.prototype.startHumanMove=function(a){this.humanWithCart.setScale(-1,1);this.humanWithCart.hideBrick();this.setAnimLength(0,a);this.runAnimId(0,1,0)};MainBabelTowerVisual.prototype.startHumanBackMove=function(a,b){this.humanWithCart.setScale(1,1);0=Math.ceil(this.maxWallWidth)&& (this.brickIdInCurrentLine=0,this.currentlyBuildLineId++)}; BuiltTowerVisual.prototype.animateBrickTo=function(a,b,c,d,e){this.brickIMA.isAnimating&&this.brickIMA.setLambdaDirectly(1);a.setScale(d,1);switch(e){case "none":a.x=b;a.y=c;a.setScale(d,1);break;case "ground":this.brickIMA.setCycle(0,.5);this.brickIMA.changeDob(a);this.brickIMA.modNodeProperty(0,"x",620);this.brickIMA.modNodeProperty(0,"y",-12);this.brickIMA.modNodeProperty(0,"alpha",1);this.brickIMA.modNodeProperty(1,"x",b);this.brickIMA.modNodeProperty(1,"y",c-200);this.brickIMA.modNodeProperty(1, "alpha",1);this.brickIMA.modNodeProperty(2,"x",b);this.brickIMA.modNodeProperty(2,"y",c);this.brickIMA.startAnimation(1,0);break;case "crane":this.brickIMA.setCycle(0,.5);this.brickIMA.changeDob(a);this.brickIMA.modNodeProperty(0,"x",590);this.brickIMA.modNodeProperty(0,"y",8);this.brickIMA.modNodeProperty(0,"alpha",1);this.brickIMA.modNodeProperty(1,"x",b);this.brickIMA.modNodeProperty(1,"y",c-200);this.brickIMA.modNodeProperty(1,"alpha",1);this.brickIMA.modNodeProperty(2,"x",b);this.brickIMA.modNodeProperty(2, "y",c);this.brickIMA.startAnimation(1,0);break;case "cannon":this.brickIMA.changeDob(a),this.brickIMA.setCycle(0,1.5),this.brickIMA.modNodeProperty(0,"x",b),this.brickIMA.modNodeProperty(0,"y",c-1E3),this.brickIMA.modNodeProperty(0,"alpha",0),this.brickIMA.modNodeProperty(1,"x",b),this.brickIMA.modNodeProperty(1,"y",c-1E3),this.brickIMA.modNodeProperty(1,"alpha",0),this.brickIMA.modNodeProperty(2,"x",b),this.brickIMA.modNodeProperty(2,"y",c),this.brickIMA.startAnimation(1,0)}}; BuiltTowerVisual.prototype.resetAtNewHeight=function(a){this.y=-(a+1)*(this.getWallH()+15)-15;this.returnBricks2Pool();this.bluePrintIm.visible=!1};BuiltTowerVisual.prototype.getWallH=function(){return this.maxLinesInWalls*this.brickH};BuiltTowerVisual.prototype.getNumBrick2CompleteStorey=function(){return Math.ceil(this.maxWallWidth)*this.maxLinesInWalls-(Math.ceil(this.maxWallWidth)*this.currentlyBuildLineId+this.brickIdInCurrentLine)}; BuiltTowerVisual.prototype.getBrickFromPool=function(){for(var a=null,b=0;ba&&(a=0);.5>a?(this.cloudIm.setScale(.5,.5),this.cloudIm.alpha=a/.5):(this.cloudIm.alpha=1,this.cloudIm.setScale(a,a))};RainCloudVisual.prototype.startRaining=function(){this.dropsAnim.startAnimations(this.dropsAnim.x,this.dropsAnim.y,999999999999,!1)};RainCloudVisual.prototype.stopRaining=function(){this.dropsAnim.stopAnimations()}; var Berth4FlyingMachineVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.upgBtnCoords.x=-100;a.upgBtnCoords.y=-231;a.touchRect=new Phaser.Geom.Rectangle(-452,-220,488,282);b=[{x:-521,y:-150},{x:-521,y:-120},{x:-411,y:-64},{x:-212,y:-64},{x:-156,y:-11},{x:-18,y:-11}];a.berthIm=a.scene.add.image(-205,-43,"allGraphics2","w001_airHarbor4new0000").setOrigin(1,1);a.stepsIm=a.scene.add.image(-227,-65,"allGraphics2","w001_airHarborSteps4new0000").setOrigin(0,0);a.balconyIm=a.scene.add.image(0, -2,"allGraphics2","w001_balcony4new0000").setOrigin(1,.5);a.add(a.berthIm);a.add(a.stepsIm);a.add(a.balconyIm);a.humanIms=[];for(c=0;3>c;c++){var e=b[3>c?0:b.length-1].x,f=b[3>c?0:b.length-1].y;d=b[3<=c?0:b.length-1].x;var g=b[3<=c?0:b.length-1].y,h=3>c?1:-1,k=a.scene.add.image(e,f,"allGraphics2","w001_workerSimple4new000"+(c+3)).setOrigin(.5,1);a.add(k);a.humanIms.push(k);k.alpha=0;k.setScale(h,1);k=a.createImageModifier(k,2*(c+1));var n=3>c?1:-1,m=3>c?1:b.length-2;k.addAnimNode(.1,e,f,0,h,1,0,0, 1);e=.1;for(f=m;0<=f&&f<=b.length-1;f+=n)e+=.1,k.addAnimNode(e,b[f].x,b[f].y,0,h);k.addAnimNode(1,d,g,0,h,1,0,0,0)}a.entryIm=a.scene.add.image(5,-13,"allGraphics2","w001_berthEntry4new0000").setOrigin(1,1);a.add(a.entryIm);return a};$jscomp.inherits(Berth4FlyingMachineVisual,BasicMachineVisual);Berth4FlyingMachineVisual.prototype.startPassengersAnimation=function(){for(var a=0;3>a;a++)this.imageModifiers[a].startAnimation(1,0)}; var ZeppelinVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.stepsIm=a.scene.add.image(-25,135,"allGraphics2","w001_zeppelinDeck4new0000").setOrigin(0,.5);a.zepIm=a.scene.add.image(0,0,"allGraphics2","w001_zeppelin4new0000").setOrigin(.5,.5);a.add(a.stepsIm);a.add(a.zepIm);b=a.createImageModifier(a.stepsIm,.5);b.addAnimNode(1,a.stepsIm.x,a.stepsIm.y,Math.PI/6);b=a.createImageModifier(a.stepsIm,.5);b.addAnimNode(0,a.stepsIm.x,a.stepsIm.y,Math.PI/6);b=a.createImageModifier(a, .5);b.addAnimNode(0,a.x,a.y,a.rotation,a.scaleX,a.scaleY,0,0,0);b=a.createImageModifier(a,.5);b.addAnimNode(1,a.x,a.y,a.rotation,a.scaleX,a.scaleY,0,0,0);return a};$jscomp.inherits(ZeppelinVisual,BasicMachineVisual);ZeppelinVisual.prototype.showFlightDirection=function(a){this.setScale(0>a?-1:1,1)}; var LiftEngineVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.upgBtnCoords.x=370;a.upgBtnCoords.y=-270;a.touchRect=new Phaser.Geom.Rectangle(128,-234,280,280);a.standIm=a.scene.add.image(259,-89,"allGraphics2","w001_windMillStand4new0000").setOrigin(1,0);a.fanIm=a.scene.add.image(259,-89,"allGraphics2","w001_windMillFan4new0000").setOrigin(.5,.5);a.add(a.standIm);a.add(a.fanIm);b=a.createImageModifier(a.fanIm,4);b.addAnimNode(1,a.fanIm.x,a.fanIm.y,2*Math.PI);b.startAnimation(-1, 0);return a};$jscomp.inherits(LiftEngineVisual,BasicMachineVisual); var ElephantVisual=function(a,b,c,d,e){c=BasicMachineVisual.call(this,a,b,c,d)||this;c.touchRect=new Phaser.Geom.Rectangle(-140,-180,280,180);c.elephantWithLoad=new ElephantWithLoad(a,b,0,0,"stone"==e?"w001_roughStone4new0000":"w001_wood4new0000");c.add(c.elephantWithLoad);c.embedVisual(c.elephantWithLoad);e=c.createImageModifier(c.elephantWithLoad,.5);e.addAnimNode(.4,c.elephantWithLoad.x,c.elephantWithLoad.y-10,.1);e.addAnimNode(.8,c.elephantWithLoad.x,c.elephantWithLoad.y-10,-.1);c.humanWithManifest= new HumanManifestation(a,b,-30,20);c.add(c.humanWithManifest);c.embedVisual(c.humanWithManifest);c.humanWithManifest.visible=!1;return c};$jscomp.inherits(ElephantVisual,BasicMachineVisual);ElephantVisual.prototype.setMoveAnimations=function(a){a?this.imageModifiers[0].startAnimation(-1,0):this.imageModifiers[0].stopAfterThisRun()};ElephantVisual.prototype.setLoadVisible=function(a){this.elephantWithLoad.setLoadVisible(a)};ElephantVisual.prototype.startEatingAnimation=function(){this.elephantWithLoad.startEatingAnimation()}; ElephantVisual.prototype.startManifestation=function(a){this.humanWithManifest.showPhrase(a);this.humanWithManifest.startAnimationIfNotAnimating();this.humanWithManifest.visible=!0};ElephantVisual.prototype.stopManifestation=function(a){this.humanWithManifest.stopAnimation();this.humanWithManifest.visible=!1}; ElephantVisual.prototype.setPosition=function(a,b){var c=a-this.x,d=b-this.y;BasicMachineVisual.prototype.setPosition.call(this,a,b);this.upgradeButton&&(this.upgradeButton.x-=c,this.upgradeButton.y-=d)};ElephantVisual.prototype.setScale=function(a,b){this.elephantWithLoad.setScale(a,b)}; var ElephantWithLoad=function(a,b,c,d,e){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.trunkIm=a.scene.add.image(-109,-100,"allGraphics2","w001_elephantTrunk4new0000").setOrigin(0,0);a.add(a.trunkIm);a.img=a.scene.add.image(-15,0,"allGraphics2","w001_elephant4new0000").setOrigin(.5,1);a.add(a.img);a.loadIm=a.scene.add.image(25,-150,"allGraphics2",e).setOrigin(.5,1);a.add(a.loadIm);a.loadIm.visible=!1;a.createImageModifier(a.trunkIm,1.5).addAnimNode(.5,a.trunkIm.x,a.trunkIm.y,-.4);return a}; $jscomp.inherits(ElephantWithLoad,BasicMachineVisual);ElephantWithLoad.prototype.setLoadVisible=function(a){this.loadIm.visible=a};ElephantWithLoad.prototype.startEatingAnimation=function(){this.imageModifiers[0].startAnimation(3,0)}; var GrassFieldVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.touchRect=new Phaser.Geom.Rectangle(-50,-170,400,200);a.brick=a.scene.add.image(0,0,"allGraphics2","w001_grassPack4new0000");a.brick.setOrigin(.5,.5);a.brick.alpha=0;a.add(a.brick);a.createImageModifier(a,.4);b=a.createImageModifier(a.brick,.8);b.addAnimNode(0,0,0,0,1,1,1,1,0);b.addAnimNode(.25,210,-252,Math.PI,1,1,1,1,1);b.addAnimNode(.5,300,-117,2*Math.PI,1,1,1,1,1);b.addAnimNode(.8,300,-17,2*Math.PI,1,1,1,1, 1);b.addAnimNode(1,300,-17,2*Math.PI,1,1,1,1,0);a.grassPieces=[];for(b=0;12>b;b++)for(c=0;3>c;c++)d=a.scene.add.image(75-75/11*b+86*c-20+10*Math.random(),-120+10*b,"allGraphics2","w001_grassPart4new0000").setOrigin(.5,1),a.add(d),1==b%2&&(d.tint=9476458),0==c&&a.grassPieces.push(d);a.humanAnims=[];a.bringToTop(a.brick);return a};$jscomp.inherits(GrassFieldVisual,BasicMachineVisual); GrassFieldVisual.prototype.createHumans=function(a){for(var b=0;bc&&e++;for(f=0;f<3*(this.grassPieces.length-c)+e;f++)this.moveDown(d);c=10+Math.random();e=this.createImageModifier(d,c);e.addAnimNode(.499999,d.x+300,d.y); e.addAnimNode(.5,d.x+300,d.y,0,-1);e.addAnimNode(.999999,d.x,d.y,0,-1);e.startAnimation(-1,Math.random()*c)}this.bringToTop(this.brick)};var HayStackVisual=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.img=a.scene.add.image(0,0,"allGraphics2","w001_hayStack4new0000").setOrigin(.5,143/161);a.add(a.img);a.text=new TFWithBGD(a.scene,a.grp,"",0,32,{texKey:"w001_bgdOfInformer4new0000",bgdOx:.5,bgdOy:.5,dx:0,dy:-22});a.text.mustTranslateShownText=!1;a.add(a.text);return a}; $jscomp.inherits(HayStackVisual,BasicMachineVisual);HayStackVisual.prototype.showCurrentValue=function(a){var b=a/100;1b;b++)c= a.scene.add.image(0,9+31*b,"allGraphics2","w001_drillScrewSmall4new0000").setOrigin(.5,0),a.add(c),a.screwIms.push(c);a.extractorImg=a.scene.add.image(0,99,"allGraphics2","w001_drillExtractor4new0000").setOrigin(.5,0);a.add(a.extractorImg);a.add(a.bodyImg);a.shakerGrp=a.scene.add.container();a.add(a.shakerGrp);a.shakerGrp.setScale(1,.5);a.shakerGrp.y=-128;a.shakerIm=a.scene.add.image(0,0,"allGraphics2","w001_drillHandle4new0000").setOrigin(.5,.5);a.shakerGrp.add(a.shakerIm);a.screwImas=[];for(b=0;b< a.screwIms.length;b++)c=a.createImageModifier(a.screwIms[b],1),c.addAnimNode(1,a.screwIms[b].x,a.screwIms[b].y-32),a.screwImas.push(c),c.startAnimation(-1,0);c=a.createImageModifier(a.shakerIm,10);c.addAnimNode(1,a.shakerIm.x,a.shakerIm.y,2*Math.PI);c.startAnimation(-1,0);c=a.createImageModifier(a.extractorImg,1);c.addAnimNode(.25,a.extractorImg.x,a.extractorImg.y,0,1.1);c.addAnimNode(.5,a.extractorImg.x,a.extractorImg.y,0,1.1,1.1);c.addAnimNode(.75,a.extractorImg.x,a.extractorImg.y,0,1,1.1);c.startAnimation(-1, 0);return a};$jscomp.inherits(WaterExtractorVisual,BasicMachineVisual); var WaterStorageVisual=function(a,b,c,d){a=BasicStorageVisual.call(this,a,b,c,d)||this;a.bgImg=a.scene.add.image(23,-21,"allGraphics2","w001_waterLevelInside4new0000").setOrigin(0,1);a.add(a.bgImg);a.bgImg.tint=16777215;a.waterImg=a.scene.add.image(23,-21,"allGraphics2","w001_waterLevelInside4new0000").setOrigin(0,1);a.add(a.waterImg);a.waterImg.tint=353731;a.bodyImg=a.scene.add.image(0,0,"allGraphics2","w001_drillReservoir4new0000").setOrigin(.5,303/317);a.add(a.bodyImg);a.text=new TFWithBGD(a.scene, a.grp,"",0,-30,{texKey:"w001_bgdOfInformer4new0000",bgdOx:.5,bgdOy:.5,dx:0,dy:-22});a.text.mustTranslateShownText=!1;a.add(a.text);return a};$jscomp.inherits(WaterStorageVisual,BasicStorageVisual);WaterStorageVisual.prototype.showCurrentValue=function(a){var b=a/1E8;1b;b++)c=a.scene.add.image(39,-66-2*b,"allGraphics2","w001_heicopterScrew4new0000").setOrigin(1,1),a.topScrews.push(c),a.heliContainer.add(c);a.screwImas=[];for(b=0;bc;c+=.1)b.addAnimNode(c,a.appleImg.x+84,a.appleImg.y+c*c*2E3+500*c);b.addAnimNode(.999999,a.appleImg.x+84,a.appleImg.y+2E3+500,0,1,1,0,0,0);b.addAnimNode(1,a.appleImg.x-205,a.appleImg.y);b=a.createImageModifier(a.appleImg, 2.4);for(c=0;1>c;c+=.1)b.addAnimNode(c,a.appleImg.x-205-84,a.appleImg.y+c*c*2E3+500*c);b.addAnimNode(.999999,a.appleImg.x-205-84,a.appleImg.y+2E3+500,0,1,1,0,0,0);b.addAnimNode(1,a.appleImg.x,a.appleImg.y);b=a.createImageModifier(a.bulbImg,2);b.addAnimNode(0,a.bulbImg.x+98,a.bulbImg.y-130,0,0,0);b.addAnimNode(.2,a.bulbImg.x+98,a.bulbImg.y-130,0,1.2,1.2);b.addAnimNode(.4,a.bulbImg.x+98,a.bulbImg.y-130,0,.8,.8);b.addAnimNode(.6,a.bulbImg.x+98,a.bulbImg.y-130,0,1,1);b.addAnimNode(1,a.bulbImg.x+98,a.bulbImg.y- 130,0,1,1,0,0,0);b=a.createImageModifier(a.bulbImg,2);b.addAnimNode(0,a.bulbImg.x-98,a.bulbImg.y-130,0,0,0);b.addAnimNode(.2,a.bulbImg.x-98,a.bulbImg.y-130,0,1.2,1.2);b.addAnimNode(.4,a.bulbImg.x-98,a.bulbImg.y-130,0,.8,.8);b.addAnimNode(.6,a.bulbImg.x-98,a.bulbImg.y-130,0,1,1);b.addAnimNode(1,a.bulbImg.x-98,a.bulbImg.y-130,0,1,1,0,0,0);a.animPhases=[[1],[2,3],[10],[12],[4],[5],[6,7],[11],[13],[8],[9]];a.animatioPhaseId=a.animPhases.length-1;a.ima2CheckPhase=a.imageModifiers[a.animPhases[a.animatioPhaseId][0]]; return a};$jscomp.inherits(GalileoVisual,BasicMachineVisual);GalileoVisual.prototype.doAnimations=function(a){BasicMachineVisual.prototype.doAnimations.call(this,a);this.ima2CheckPhase.isAnimating||this.startNewAnimationPhase()}; GalileoVisual.prototype.startNewAnimationPhase=function(){this.animatioPhaseId=(this.animatioPhaseId+1)%this.animPhases.length;for(var a=this.animPhases[this.animatioPhaseId],b=0;bb;b++)c=a.scene.add.image(0,0,"allGraphics2","w001_rope4new0000").setOrigin(.5,1),a.add(c),a.ropeSegments.push(c); a.ropePoints=[];for(b=0;bc)for(;c=this.animationTimeLeft&&(this.isAnimating=!1,this.mustImmediatelyStopAnimationAfterTimeOver&&this.immediatelyStopAnimations()))}; BasicParticlesAnimation.prototype.stopAnimations=function(){this.animationTimeLeft=0;this.isAnimating=!1};BasicParticlesAnimation.prototype.startAnimations=function(a,b,c,d){this.x=a;this.y=b;this.animationTimeLeft=c;this.mustImmediatelyStopAnimationAfterTimeOver=d;this.isAnimating=!0;this.immediatelyStartAnimation()}; BasicParticlesAnimation.prototype.doParticleAnimations=function(a){for(a=0;aa;a++){var b=this.scene.add.image(0,0,"allGraphics2","w001_snowflake4new0000");b.setOrigin(1,.5);b.rotation=-Math.PI/2;this.add(b);this.particlesPool.push(b);b.isInPool=!0;b.visible=!1;var c=this.createImageModifier(b,1);c.addAnimNode(0,b.x,b.y,b.rotation,1,0,0,0,0);c.addAnimNode(.5,b.x,b.y,b.rotation,1,2,0,0,1);c.addAnimNode(1,b.x,b.y+60,b.rotation,1,0,0,0,0);this.particleModifiers.push(c)}}; RainDropsAnim.prototype.startSingleParticleAnimation=function(a){if(.1>Math.random()){var b=this.particlesPool[a];a=this.particleModifiers[a];b.isInPool=!1;b.visible=!0;var c=-1;0Math.random()&&(c=Math.floor(Math.random()*this.dropLines.length));if(-1==c)b.x=this.rainW*(Math.random()-.5),b.y=this.rainH*Math.random(),b.rotation=-Math.PI/2,a.modNodeProperty(0,"x",b.x),a.modNodeProperty(0,"y",b.y),a.modNodeProperty(1,"x",b.x),a.modNodeProperty(1,"y",b.y),a.modNodeProperty(2, "x",b.x),a.modNodeProperty(2,"y",b.y+60);else{var d=this.dropLines[c][0]-this.x,e=this.dropLines[c][1]-this.y,f=this.dropLines[c][2]-this.x+(100*Math.random()-.5);c=this.dropLines[c][3]-this.y+(100*Math.random()-.5);var g=.5*Math.random();b.x=d+(f-d)*g;b.y=e+(c-e)*g;b.rotation=Math.atan2(c-e,f-d)+Math.PI;a.modNodeProperty(0,"x",b.x);a.modNodeProperty(0,"y",b.y);a.modNodeProperty(1,"x",b.x);a.modNodeProperty(1,"y",b.y);a.modNodeProperty(2,"x",b.x);a.modNodeProperty(2,"x",d+(f-d)*(g+.5));a.modNodeProperty(2, "y",e+(c-e)*(g+.5))}a.setCycle(0,.2+.3*Math.random());a.startAnimation(1,0)}};var DustCloudsAnim=function(a,b,c,d){return BasicParticlesAnimation.call(this,a,b,c,d)||this};$jscomp.inherits(DustCloudsAnim,BasicParticlesAnimation); DustCloudsAnim.prototype.initParticlesPool=function(){for(var a=0;5>a;a++){var b=this.scene.add.image(0,0,"allGraphics2","w001_cloudPart4new0000");b.setOrigin(.5,.5);b.rotation=Math.random()*Math.PI;this.add(b);this.particlesPool.push(b);b.isInPool=!0;b.visible=!1;var c=this.createImageModifier(b,1);c.addAnimNode(0,b.x,b.y,b.rotation,0,0,0,0,0);c.addAnimNode(.3,b.x,b.y,b.rotation+1,1,1,0,0,1);c.addAnimNode(1,b.x,b.y,b.rotation+2,2,2,0,0,0);this.particleModifiers.push(c)}}; DustCloudsAnim.prototype.doAnimations=function(a){BasicParticlesAnimation.prototype.doAnimations.call(this,a)};DustCloudsAnim.prototype.startSingleParticleAnimation=function(a){if(.1>Math.random()){var b=this.particlesPool[a];a=this.particleModifiers[a];b.isInPool=!1;b.visible=!0;b.x=60*Math.random()-30;b.y=60*Math.random()-30;a.modNodeProperty(0,"x",b.x);a.modNodeProperty(0,"y",b.y);a.modNodeProperty(2,"x",-b.x);a.modNodeProperty(2,"y",-b.y);a.setCycle(0,.2+.3*Math.random());a.startAnimation(1,0)}}; var SparklesLineAnim=function(a,b,c,d){return BasicParticlesAnimation.call(this,a,b,c,d)||this};$jscomp.inherits(SparklesLineAnim,BasicParticlesAnimation); SparklesLineAnim.prototype.initParticlesPool=function(){for(var a=0;5>a;a++){var b=this.scene.add.image(0,0,"allGraphics2","w001_starWithTrack4new0000");b.setOrigin(1,.5);this.add(b);this.particlesPool.push(b);b.isInPool=!0;b.visible=!1;var c=this.createImageModifier(b,1);c.addAnimNode(0,b.x,b.y,b.rotation,0,1,0,0,0);c.addAnimNode(.2,b.x+67,b.y,b.rotation,1,1,0,0,1);c.addAnimNode(1,b.x+130,b.y,b.rotation,1,1,0,0,0);this.particleModifiers.push(c)}}; SparklesLineAnim.prototype.startSingleParticleAnimation=function(a){if(.1>Math.random()){var b=this.particlesPool[a];a=this.particleModifiers[a];b.isInPool=!1;b.visible=!0;b.x=20*Math.random()-10;b.y=20*Math.random()-10;var c=.2*Math.random()-.1;a.modNodeProperty(0,"x",b.x);a.modNodeProperty(0,"y",b.y);a.modNodeProperty(1,"x",b.x+67);a.modNodeProperty(1,"y",b.y-67*Math.sin(c));a.modNodeProperty(1,"rotation",c);a.modNodeProperty(2,"x",b.x+130);a.modNodeProperty(2,"y",b.y-130*Math.sin(c));a.modNodeProperty(2, "rotation",c);a.setCycle(0,.1+.1*Math.random());a.startAnimation(1,0)}}; var AnimatedImage=function(a,b,c){this.scene=a;a=c.key;c=c.mode;a||(a="w001_roughStone4new0000");c||(c="linear");this.mode=c;this.im=this.scene.add.image(0,0,"allGraphics2",a);this.ima=new ImageModifier;this.ima.registerDob(this.im,.4);this.ima.addAnimNode(0,-1,-1,0,1,1,0,0,1);"withRotation"==this.mode&&this.ima.addAnimNode(.1,-1,-1,-Math.PI,1,1,0,0,1);this.ima.addAnimNode(.9,0,0,0,1,1,0,0,1);this.ima.addAnimNode(1,0,0,0,1,1,0,0,0)}; AnimatedImage.prototype.startFromPoint=function(a,b){this.im.x=a;this.im.y=b;this.im.visible=!0;this.ima.modNodeProperty(0,"x",a);this.ima.modNodeProperty(0,"y",b);"withRotation"==this.mode&&(this.ima.modNodeProperty(1,"x",a),this.ima.modNodeProperty(1,"y",b));this.ima.startAnimation(1,0)}; AnimatedImage.prototype.placeInCoords=function(a,b){this.im.x=a;this.im.y=b;this.ima.modNodeProperty(this.ima.viewsSnapshots.length-2,"x",a);this.ima.modNodeProperty(this.ima.viewsSnapshots.length-2,"y",b);this.ima.modNodeProperty(this.ima.viewsSnapshots.length-1,"x",a);this.ima.modNodeProperty(this.ima.viewsSnapshots.length-1,"y",b)}; var OpenedWindow=function(a,b,c,d){a=BasicMachineVisual.call(this,a,b,c,d)||this;a.isShowing=!1;a.visible=!1;a.hasPurse=!1;a.bgdIm=a.scene.add.image(0,0,"allGraphics2","w001_windowInnerPart4new0000");a.bgdIm.setOrigin(.5,1);a.add(a.bgdIm);a.purseIm=a.scene.add.image(0,-31,"allGraphics2","w001_purseWithDiamonds4new0000");a.purseIm.setOrigin(.5,.5);a.add(a.purseIm);a.leftPartIm=a.scene.add.image(-31,0,"allGraphics2","w001_windowsHalf4new0000");a.leftPartIm.setOrigin(1,1);a.leftPartIm.setScale(-1,1); a.add(a.leftPartIm);a.rightPartIm=a.scene.add.image(31,0,"allGraphics2","w001_windowsHalf4new0000");a.rightPartIm.setOrigin(1,1);a.add(a.rightPartIm);b=a.createImageModifier(a.leftPartIm,2);b.addAnimNode(.1,a.leftPartIm.x,a.leftPartIm.y,0,1,1);b.addAnimNode(.9,a.leftPartIm.x,a.leftPartIm.y,0,1,1);b=a.createImageModifier(a.rightPartIm,2);b.addAnimNode(.1,a.rightPartIm.x,a.rightPartIm.y,0,-1,1);b.addAnimNode(.9,a.rightPartIm.x,a.rightPartIm.y,0,-1,1);return a};$jscomp.inherits(OpenedWindow,BasicMachineVisual); OpenedWindow.prototype.startShowing=function(a,b,c,d){this.x=a;this.y=b+47;(this.hasPurse=.5>Math.random())&&(d=Math.max(5,d));this.setAnimLength(0,d*c);this.setAnimLength(1,d*c);this.imageModifiers[0].modNodeProperty(1,"lambda",.2/(d*c));this.imageModifiers[0].modNodeProperty(2,"lambda",1-.2/(d*c));this.imageModifiers[1].modNodeProperty(1,"lambda",.2/(d*c));this.imageModifiers[1].modNodeProperty(2,"lambda",1-.2/(d*c));this.runAnimId(0,1,0);this.runAnimId(1,1,0);this.visible=this.isShowing=!0;this.purseIm.visible= this.hasPurse};OpenedWindow.prototype.stopShowing=function(){this.visible=this.isShowing=!1};OpenedWindow.prototype.doAnimations=function(a){BasicMachineVisual.prototype.doAnimations.call(this,a);this.isShowing&&(this.imageModifiers[0].isAnimating||this.stopShowing())}; OpenedWindow.prototype.showGoldGrab=function(){this.hasPurse=!1;this.purseIm.visible=this.hasPurse;this.imageModifiers[0].phiGathered<.8*this.imageModifiers[0].phiCycleLength&&(this.setAnimLambda(0,this.imageModifiers[0].viewsSnapshots[2].momentLambda),this.setAnimLambda(1,this.imageModifiers[1].viewsSnapshots[2].momentLambda))}; var EffectMoney=function(a,b,c){SimplePooledEffect.call(this,a,b,c);this.txt=new TextField(this.scene,this.grp,"",0,0);this.txt.changeAlign("left");this.visObjects.push(this.txt);this.txt.mustTranslateShownText=!1;this.iconIm=this.scene.add.image(0,0,"allGraphics2","w001_eftCoinsPack4new0000");this.grp.add(this.iconIm);this.visObjects.push(this.iconIm);new ImageModifier};$jscomp.inherits(EffectMoney,SimplePooledEffect); EffectMoney.prototype.doStep=function(a){SimplePooledEffect.prototype.doStep.call(this,a);for(var b=0;b