-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.min.js
1 lines (1 loc) · 32.6 KB
/
main.min.js
1
var count=0,selfCount=0,totalCount=0,clickersCount=0,ovensCount=0,chefsCount=0,restaurantCount=0,robotsCount=0,mouseCPS=1,clickerCPS=0,ovensCPS=0,chefsCPS=0,restaurantCPS=0,robotsCPS=0,totalCPS=0,tomatoCPS=0,cheeseCPS=0,pepperCPS=0,mushroomsCPS=0,pepperoniCPS=0,tomatoSauce=!1,cheese=!1,peppers=!1,mushrooms=!1,pepperoni=!1,ironMouse=!1,goldMouse=!1,diamondMouse=!1,graduateCookers=!1,hotCookers=!1,overCookers=!1,bigOvens=!1,pizzaOvens=!1,powerOvens=!1,commisChefs=!1,partieChefs=!1,masterChefs=!1,chainRestaurants=!1,familyRestaurants=!1,franchiseRestaurants=!1,diyRobots=!1,factoryRobots=!1,selfRobots=!1,clickersPrice=15,ovensPrice=100,chefsPrice=1100,restaurantPrice=12e3,robotsPrice=13e4,ironEnabled=!1,goldEnabled=!1,diamondEnabled=!1,graduateEnabled=!1,hotEnabled=!1,overEnabled=!1,bigEnabled=!1,pizzaEnabled=!1,powerEnabled=!1,commisEnabled=!1,partieEnabled=!1,masterEnabled=!1,chainEnabled=!1,familyEnabled=!1,franchiseEnabled=!1,diyEnabled=!1,factoryEnabled=!1,selfEnabled=!1,tomatoEnabled=!1,cheeseEnabled=!1,peppersEnabled=!1,mushroomsEnabled=!1,pepperoniEnabled=!1,ovensEnabled=!1,chefsEnabled=!1,restaurantEnabled=!1,robotsEnabled=!1,restaurantName="",darkOn=!1,orangeTrue=!0,redTrue=!1,greenTrue=!1,yellowTrue=!1,blueTrue=!1,cyanTrue=!1,purpleTrue=!1,starOne=!1,modal=$("#poorModal"),modal2=$("#save"),modal3=$("#load"),modal4=$("#ando"),modal5=$("#newUpgrade"),modal6=$("#newBuilding"),modal7=$("#cheater"),modal8=$("#star"),modal9=$("#bonusPizzas"),modal10=$("#x7"),modal11=$("#x777");function randRange(o){return o[Math.floor(o.length*Math.random())]}function randomEvents(){var o=new Array(3e5,48e4,6e5,78e4,9e5,108e4,12e5,15e5,18e5),e=Math.floor(Math.random()*window.outerHeight),a=Math.floor(Math.random()*window.outerWidth),t=$("#pizzaBonus");playGoldenSound(),$("#pizzaBonus").css({top:e+"px",left:a+"px"}),t.addClass("fade-in"),t.show(),clearInterval(timer),timer=setInterval(randomEvents,randRange(o)),setTimeout(function(){t.removeClass("fade-in"),t.addClass("fade-out"),setTimeout(function(){t.hide()},1999)},7e3)}function bonusActivate(){var o;function e(){o=Math.random()}e(),function a(){var t;o<.6?(t=Math.floor(501*Math.random())+500,count+=t,totalCount+=t,$("#bonusPizzasText").text("You got "+t+" bonus pizzas!"),playModalSound(),bonus()):o<.95?(clickerCPS*=7,ovensCPS*=7,chefsCPS*=7,restaurantCPS*=7,CPS(),playModalSound(),x7Modal(),setTimeout(function(){clickerCPS/=7,ovensCPS/=7,chefsCPS/=7,restaurantCPS/=7,CPS()},77e3)):o<1?(mouseCPS*=777,playModalSound(),x777Modal(),setTimeout(function(){mouseCPS/=777},13e3)):(o=0)&&(e(),a())}(),$("#pizzaBonus").hide()}window.setInterval(Timer,1e3),window.onload=defaultName,window.setInterval(autoSave,6e4);var start=new Array(3e5,6e5,9e5,12e5),timer=setInterval(randomEvents,randRange(start));function openModal(){$("#poorModal").show()}function openModalSave(){$("#save").show(),autoCLose()}function openModalLoad(){$("#load").show(),autoCLose()}function autoSave(){save(),autoCLose()}function detectAndrej(){$("#ando").show()}function newUpgrade(){$("#newUpgrade").show()}function newBuilding(){$("#newBuilding").show()}function cheater(){$("#cheater").show()}function starOneShow(){$("#star").show()}function bonus(){$("#bonusPizzas").show(),autoCLose()}function x7Modal(){$("#x7").show(),autoCLose()}function x777Modal(){$("#x777").show(),autoCLose()}function autoCLose(){setTimeout(function(){modal2.length&&(modal2.addClass("themodal-close"),setTimeout(function(){modal2.hide(),modal2.removeClass("themodal-close")},200)),modal3.length&&(modal3.addClass("themodal-close"),setTimeout(function(){modal3.hide(),modal3.removeClass("themodal-close")},200)),modal9.length&&(modal9.addClass("themodal-close"),setTimeout(function(){modal9.hide(),modal9.removeClass("themodal-close")},200)),modal10.length&&(modal10.addClass("themodal-close"),setTimeout(function(){modal10.hide(),modal10.removeClass("themodal-close")},200)),modal11.length&&(modal11.addClass("themodal-close"),setTimeout(function(){modal11.hide(),modal11.removeClass("themodal-close")},200))},2e3)}function defaultName(){$("#name").text("Your Restaurant")}function customName(){$("#name").text(restaurantName+"'s Restaurant")}function playButtonSound(){var o=new Audio;o.src="sounds/button-click.mp3",o.play()}function playPizzaSound(){var o=new Audio;o.src="sounds/pizza-click.mp3",o.play()}function playModalSound(){var o=new Audio;o.src="sounds/popup.mp3",o.play()}function playGoldenSound(){var o=new Audio;o.src="sounds/goldenPizza.mp3",o.play()}function resizePizzaSmall(){$("#pizza").css({filter:"brightness(0.7)",transform:"scale(0.97)"})}function resizePizzaNormal(){$("#pizza").css({filter:"brightness(1)",transform:"scale(1)"})}function resizePizzaHover(){$("#pizza").css({filter:"brightness(1.2)",transform:"scale(1.05)"})}function dark(){darkOn=!darkOn,$(document.body).toggleClass("dark"),$(".fancybutton").toggleClass("fancybuttonWhite"),$(".fancyBorder").toggleClass("fancyBorderWhite"),$(".fancyBorderPlain").toggleClass("fancyBorderPlainWhite"),$(".orange").toggleClass("orangeWhite"),$(".red").toggleClass("redWhite"),$(".green").toggleClass("greenWhite"),$(".yellow").toggleClass("yellowWhite"),$(".blue").toggleClass("blueWhite"),$(".cyan").toggleClass("cyanWhite"),$(".purple").toggleClass("purpleWhite"),$(".whiteMode").toggleClass("darkMode"),colorChecker()}function pizzaAdder(){count+=mouseCPS,totalCount+=mouseCPS,selfCount+=1,totalPizzas(),$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),count>=100&&!ovensEnabled&&(ovensEnabled=!0,$("#ovens").show(),playModalSound(),newBuilding()),count>=1100&&!chefsEnabled&&(chefsEnabled=!0,$("#chefs").show(),playModalSound(),newBuilding()),count>=12e3&&!restaurantEnabled&&(restaurantEnabled=!0,$("#restaurants").show(),playModalSound(),newBuilding()),count>=13e4&&!robotsEnabled&&(robotsEnabled=!0,$("#robots").show(),playModalSound(),newBuilding()),count>=1e6&&!tomatoEnabled&&(restaurantEnabled=!0,$("#tomato").show(),playModalSound(),newUpgrade()),count>=2e6&&!cheeseEnabled&&(cheeseEnabled=!0,$("#cheese").show(),playModalSound(),newUpgrade()),count>=3e6&&!peppersEnabled&&(peppersEnabled=!0,$("#cheese").show(),playModalSound(),newUpgrade()),count>=4e6&&!mushroomsEnabled&&(mushroomsEnabled=!0,$("#mushrooms").show(),playModalSound(),newUpgrade()),count>=5e6&&!pepperoniEnabled&&(pepperoniEnabled=!0,$("#pepperoni").show(),playModalSound(),newUpgrade()),selfCount>=100&&!ironEnabled&&(ironEnabled=!0,$("#ironMouse").show(),playModalSound(),newUpgrade()),selfCount>=1e3&&!goldEnabled&&(goldEnabled=!0,$("#goldMouse").show(),playModalSound(),newUpgrade()),selfCount>=1e4&&!diamondEnabled&&(diamondEnabled=!0,$("#diamondMouse").show(),playModalSound(),newUpgrade())}function formulas(){clickersCount>=1&&(clickerCPS=.1*clickersCount,graduateCookers&&(clickerCPS*=2,hotCookers&&(clickerCPS*=2,overCookers&&(clickerCPS*=2)))),ovensCount>=1&&(ovensCPS=1*ovensCount,bigOvens&&(ovensCPS*=2,pizzaOvens&&(ovensCPS*=2,powerOvens&&(ovensCPS*=2)))),chefsCount>=1&&(chefsCPS=8*chefsCount,commisChefs&&(chefsCPS*=2,partieChefs&&(chefsCPS*=2,masterChefs&&(chefsCPS*=2)))),restaurantCount>=1&&(restaurantCPS=47*restaurantCount,chainRestaurants&&(restaurantCPS*=2,familyRestaurants&&(restaurantCPS*=2,franchiseRestaurants&&(restaurantCPS*=2)))),robotsCount>=1&&(robotsCPS=260*robotsCount,diyRobots&&(robotsCPS*=2,factoryRobots&&(robotsCPS*=2,selfRobots&&(robotsCPS*=2))))}function clickersAdder(){if(count>=clickersPrice){clickersCount+=1,formulas(),CPS(),$("#clickerCount").text("Count: "+clickersCount),count-=clickersPrice,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}));var o=15*Math.pow(1.15,clickersCount);clickersPrice=o,$("#clickersPrice").text("Price: "+clickersPrice.toLocaleString(void 0,{maximumFractionDigits:0})),clickersCount>=1&&!graduateEnabled&&(graduateEnabled=!0,$("#GPC").show(),playModalSound(),newUpgrade()),clickersCount>=50&&!hotEnabled&&(hotEnabled=!0,$("#HPC").show(),playModalSound(),newUpgrade()),clickersCount>=100&&!overEnabled&&(overEnabled=!0,$("#OPC").show(),playModalSound(),newUpgrade())}else playModalSound(),openModal()}function ovensAdder(){if(count>=ovensPrice){ovensCount+=1,formulas(),CPS(),$("#ovensCount").text("Count: "+ovensCount),count-=ovensPrice,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}));var o=100*Math.pow(1.15,ovensCount);ovensPrice=o,$("#ovensPrice").text("Price: "+ovensPrice.toLocaleString(void 0,{maximumFractionDigits:0})),ovensCount>=1&&!bigEnabled&&(bigEnabled=!0,$("#BO").show(),playModalSound(),newUpgrade()),ovensCount>=50&&!pizzaEnabled&&(pizzaEnabled=!0,$("#PO").show(),playModalSound(),newUpgrade()),ovensCount>=100&&!powerEnabled&&(powerEnabled=!0,$("#PowerO").show(),playModalSound(),newUpgrade())}else playModalSound(),openModal()}function chefsAdder(){if(count>=chefsPrice){chefsCount+=1,formulas(),CPS(),$("#chefsCount").text("Count: "+chefsCount),count-=chefsPrice,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}));var o=1100*Math.pow(1.15,chefsCount);chefsPrice=o,$("#chefsPrice").text("Price: "+chefsPrice.toLocaleString(void 0,{maximumFractionDigits:0})),chefsCount>=1&&!commisEnabled&&(commisEnabled=!0,$("#commis").show(),playModalSound(),newUpgrade()),chefsCount>=50&&!partieEnabled&&(partieEnabled=!0,$("#partie").show(),playModalSound(),newUpgrade()),chefsCount>=100&&!masterEnabled&&(masterEnabled=!0,$("#master").show(),playModalSound(),newUpgrade())}else playModalSound(),openModal()}function restaurantAdder(){if(count>=restaurantPrice){restaurantCount+=1,formulas(),CPS(),$("#restaurantsCount").text("Count: "+restaurantCount),count-=restaurantPrice,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}));var o=12e3*Math.pow(1.15,restaurantCount);restaurantPrice=o,$("#restaurantsPrice").text("Price: "+restaurantPrice.toLocaleString(void 0,{maximumFractionDigits:0})),restaurantCount>=1&&!chainEnabled&&(chainEnabled=!0,$("#chain").show(),playModalSound(),newUpgrade()),restaurantCount>=50&&!familyEnabled&&(familyEnabled=!0,$("#family").show(),playModalSound(),newUpgrade()),restaurantCount>=100&&!franchiseEnabled&&(franchiseEnabled=!0,$("#franchise").show(),playModalSound(),newUpgrade())}else playModalSound(),openModal()}function robotAdder(){if(count>=robotsPrice){robotsCount+=1,formulas(),CPS(),$("#robotsCount").text("Count: "+robotsCount),count-=robotsPrice,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}));var o=13e4*Math.pow(1.15,robotsCount);robotsPrice=o,$("#robotsPrice").text("Price: "+robotsPrice.toLocaleString(void 0,{maximumFractionDigits:0})),robotsCount>=1&&!diyEnabled&&(diyEnabled=!0,$("#diy").show(),playModalSound(),newUpgrade()),robotsCount>=50&&!factoryEnabled&&(factoryEnabled=!0,$("#factory").show(),playModalSound(),newUpgrade()),robotsCount>=100&&!selfEnabled&&(selfEnabled=!0,$("#self").show(),playModalSound(),newUpgrade())}else playModalSound(),openModal()}function ironAdder(){count>=500?(ironMouse=!0,count-=500,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),mouseCPS*=2,$("#ironButton").attr("disabled",!0)):(playModalSound(),openModal())}function goldAdder(){count>=5e3?(goldMouse=!0,count-=5e3,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),mouseCPS*=2,$("#goldButton").attr("disabled",!0)):(playModalSound(),openModal())}function diamondAdder(){count>=5e4?(diamondMouse=!0,count-=5e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),mouseCPS*=2,$("#diamondButton").attr("disabled",!0)):(playModalSound(),openModal())}function graduateAdder(){count>=100?(graduateCookers=!0,count-=100,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#graduateButton").attr("disabled",!0)):(playModalSound(),openModal())}function hotAdder(){count>=1e3?(hotCookers=!0,count-=1e3,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#hotButton").attr("disabled",!0)):(playModalSound(),openModal())}function overAdder(){count>=1e4?(overCookers=!0,count-=1e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#overButton").attr("disabled",!0)):(playModalSound(),openModal())}function bigAdder(){count>=500?(bigOvens=!0,count-=500,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#bigButton").attr("disabled",!0)):(playModalSound(),openModal())}function povenAdder(){count>=5e3?(pizzaOvens=!0,count-=5e3,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#povenButton").attr("disabled",!0)):(playModalSound(),openModal())}function powerAdder(){count>=5e4?(powerOvens=!0,count-=5e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#powerButton").attr("disabled",!0)):(playModalSound(),openModal())}function commisAdder(){count>=1e3?(commisChefs=!0,count-=1e3,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#commisButton").attr("disabled",!0)):(playModalSound(),openModal())}function partieAdder(){count>=1e4?(partieChefs=!0,count-=1e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#partieButton").attr("disabled",!0)):(playModalSound(),openModal())}function masterAdder(){count>=1e5?(masterChefs=!0,count-=1e5,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#masterButton").attr("disabled",!0)):(playModalSound(),openModal())}function chainAdder(){count>=5e3?(chainRestaurants=!0,count-=5e3,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#chainButton").attr("disabled",!0)):(playModalSound(),openModal())}function familyAdder(){count>=5e4?(familyRestaurants=!0,count-=5e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#familyButton").attr("disabled",!0)):(playModalSound(),openModal())}function franchiseAdder(){count>=5e5?(franchiseRestaurants=!0,count-=5e5,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#franchiseButton").attr("disabled",!0)):(playModalSound(),openModal())}function diyAdder(){count>=1e4?(diyRobots=!0,count-=1e4,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#diyButton").attr("disabled",!0)):(playModalSound(),openModal())}function factoryAdder(){count>=1e5?(factoryRobots=!0,count-=1e5,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#factoryButton").attr("disabled",!0)):(playModalSound(),openModal())}function selfAdder(){count>=1e6?(selfRobots=!0,count-=1e6,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),formulas(),CPS(),$("#selfButton").attr("disabled",!0)):(playModalSound(),openModal())}function tomatoAdder(){count>=1e6?($("#top").show(),tomatoSauce=!0,tomatoCPS=.01*totalCPS,count-=1e6,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),CPS(),$("#tomatoButton").attr("disabled",!0),$("#TSImage").show()):(playModalSound(),openModal())}function cheeseAdder(){count>=1e7?(cheese=!0,cheeseCPS=.02*totalCPS,count-=1e7,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),CPS(),$("#cheeseButton").attr("disabled",!0),$("#CImage").show()):(playModalSound(),openModal())}function peppersAdder(){count>=1e7?(peppers=!0,pepperCPS=.03*totalCPS,count-=1e8,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),CPS(),$("#peppersButton").attr("disabled",!0),$("#PImage").show()):(playModalSound(),openModal())}function mushroomsAdder(){count>=1e9?(mushrooms=!0,mushroomsCPS=.04*totalCPS,count-=1e9,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),CPS(),$("#mushroomsButton").attr("disabled",!0),$("#MImage").show()):(playModalSound(),openModal())}function pepperoniAdder(){count>=1e10?(pepperoni=!0,pepperoniCPS=.05*totalCPS,count-=1e10,$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),CPS(),$("#pepperoniButton").attr("disabled",!0),$("#PpImage").show()):(playModalSound(),openModal())}function Timer(){count+=clickerCPS+ovensCPS+chefsCPS+restaurantCPS+robotsCPS,totalCount+=clickerCPS+ovensCPS+chefsCPS+restaurantCPS+robotsCPS,totalPizzas(),$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0}))}function showBuildings(){$("#upgradeMenu").is(":hidden")?$("#upgradeMenu").show():$("#upgradeMenu").is(":visible")&&$("#upgradeMenu").hide()}function showUpgrades(){$("#upgrades").is(":hidden")?$("#upgrades").show():$("#upgrades").is(":visible")&&$("#upgrades").hide()}function showColors(){$("#colors").is(":hidden")?$("#colors").show():$("#colors").is(":visible")&&$("#colors").hide()}function totalPizzas(){$("#pizzaTotal").text(" "+totalCount.toLocaleString(void 0,{maximumFractionDigits:0}))}function CPS(){totalCPS=clickerCPS+ovensCPS+chefsCPS+restaurantCPS+robotsCPS+tomatoCPS+cheeseCPS+pepperCPS+mushroomsCPS+pepperoniCPS,$("#cps").text(totalCPS.toLocaleString(void 0,{maximumFractionDigits:2}))}function changeName(){restaurantName=prompt("Enter restaurant name:"),$("#name").text(restaurantName+"'s Restaurant"),"Andrej"!==restaurantName&&"Green"!==restaurantName&&"GCND"!==restaurantName&&"Andy"!==restaurantName&&"Ando"!==restaurantName&&"andrej"!==restaurantName&&"green"!==restaurantName&&"GCND"!==restaurantName&&"andy"!==restaurantName&&"ando"!==restaurantName||(playModalSound(),detectAndrej()),"null"===restaurantName&&(count+=1e14,clickersCount=99,ovensCount=99,chefsCount=99,restaurantCount=99,robotsCount=99,playModalSound(),cheater()),""===restaurantName?$("#name").text("Your Restaurant"):restaurantName?$("#name").text(restaurantName+"'s Restaurant"):$("#name").text("Your Restaurant")}function orange(){orangeTrue=!0,redTrue=!1,greenTrue=!1,yellowTrue=!1,blueTrue=!1,cyanTrue=!1,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid orange","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(255, 157, 0, 0.4)"}),$(".fancybutton").css({border:"2px solid orange"}),$(".fancyBorderPlain").css({border:"2px solid orange"}),$("td, th").css({border:"2px solid orange"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid orange","background-color":"orange"})},function(){$(this).css({border:"2px solid orange","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"orange"})}function red(){orangeTrue=!1,redTrue=!0,greenTrue=!1,yellowTrue=!1,blueTrue=!1,cyanTrue=!1,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid red","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(255, 0, 0, 0.4)"}),$(".fancybutton").css({border:"2px solid red"}),$(".fancyBorderPlain").css({border:"2px solid red"}),$("td, th").css({border:"2px solid red"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid red","background-color":"red"})},function(){$(this).css({border:"2px solid red","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"red"})}function green(){orangeTrue=!1,redTrue=!1,greenTrue=!0,yellowTrue=!1,blueTrue=!1,cyanTrue=!1,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid green","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(30, 255, 0, 0.4)"}),$(".fancybutton").css({border:"2px solid green"}),$(".fancyBorderPlain").css({border:"2px solid green"}),$("td, th").css({border:"2px solid green"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid green","background-color":"green"})},function(){$(this).css({border:"2px solid green","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"green"})}function yellow(){orangeTrue=!1,redTrue=!1,greenTrue=!1,yellowTrue=!0,blueTrue=!1,cyanTrue=!1,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid yellow","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(217, 255, 0, 0.4)"}),$(".fancybutton").css({border:"2px solid yellow"}),$(".fancyBorderPlain").css({border:"2px solid yellow"}),$("td, th").css({border:"2px solid yellow"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid yellow","background-color":"yellow"})},function(){$(this).css({border:"2px solid yellow","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"yellow"})}function blue(){orangeTrue=!1,redTrue=!1,greenTrue=!1,yellowTrue=!1,blueTrue=!0,cyanTrue=!1,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid blue","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(17, 0, 255, 0.4)"}),$(".fancybutton").css({border:"2px solid blue"}),$(".fancyBorderPlain").css({border:"2px solid blue"}),$("td, th").css({border:"2px solid blue"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid blue","background-color":"blue"})},function(){$(this).css({border:"2px solid blue","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"blue"})}function cyan(){orangeTrue=!1,redTrue=!1,greenTrue=!1,yellowTrue=!1,blueTrue=!1,cyanTrue=!0,purpleTrue=!1,colorChecker(),$("hr").css({border:"10px solid cyan","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(0, 247, 255, 0.4)"}),$(".fancybutton").css({border:"2px solid cyan"}),$(".fancyBorderPlain").css({border:"2px solid cyan"}),$("td, th").css({border:"2px solid cyan"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid cyan","background-color":"cyan"})},function(){$(this).css({border:"2px solid cyan","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"cyan"})}function purple(){orangeTrue=!1,redTrue=!1,greenTrue=!1,yellowTrue=!1,blueTrue=!1,cyanTrue=!1,purpleTrue=!0,colorChecker(),$("hr").css({border:"10px solid purple","border-radius":"5px"}),$(".fancyBorder").css({background:"rgba(183, 0, 255, 0.4)"}),$(".fancybutton").css({border:"2px solid purple"}),$(".fancyBorderPlain").css({border:"2px solid purple"}),$("td, th").css({border:"2px solid purple"}),$(".fancybutton").hover(function(){$(this).css({border:"2px solid purple","background-color":"purple"})},function(){$(this).css({border:"2px solid purple","background-color":"transparent"})}),$(".themodal-header").css({"background-color":"purple"})}function colorChecker(){1==darkOn?($(".icons").css({color:"white"}),orangeTrue?$(".icons").hover(function(){$(this).css({color:"orange"})},function(){$(this).css({color:"white"})}):redTrue?$(".icons").hover(function(){$(this).css({color:"red"})},function(){$(this).css({color:"white"})}):greenTrue?$(".icons").hover(function(){$(this).css({color:"green"})},function(){$(this).css({color:"white"})}):yellowTrue?$(".icons").hover(function(){$(this).css({color:"yellow"})},function(){$(this).css({color:"white"})}):blueTrue?$(".icons").hover(function(){$(this).css({color:"blue"})},function(){$(this).css({color:"white"})}):cyanTrue?$(".icons").hover(function(){$(this).css({color:"cyan"})},function(){$(this).css({color:"white"})}):purpleTrue&&$(".icons").hover(function(){$(this).css({color:"purple"})},function(){$(this).css({color:"white"})}),$(".themodal-content").css({"background-color":"black"}),$(".themodal-content").css({color:"white"})):0==darkOn&&($(".icons").css({color:"black"}),orangeTrue?$(".icons").hover(function(){$(this).css({color:"orange"})},function(){$(this).css({color:"black"})}):redTrue?$(".icons").hover(function(){$(this).css({color:"red"})},function(){$(this).css({color:"black"})}):greenTrue?$(".icons").hover(function(){$(this).css({color:"green"})},function(){$(this).css({color:"black"})}):yellowTrue?$(".icons").hover(function(){$(this).css({color:"yellow"})},function(){$(this).css({color:"black"})}):blueTrue?$(".icons").hover(function(){$(this).css({color:"blue"})},function(){$(this).css({color:"black"})}):cyanTrue?$(".icons").hover(function(){$(this).css({color:"cyan"})},function(){$(this).css({color:"black"})}):purpleTrue&&$(".icons").hover(function(){$(this).css({color:"purple"})},function(){$(this).css({color:"black"})}),$(".themodal-content").css({"background-color":"white"}),$(".themodal-content").css({color:"black"}))}function save(){var o={count:count,selfCount:selfCount,totalCount:totalCount,clickersCount:clickersCount,ovensCount:ovensCount,chefsCount:chefsCount,restaurantCount:restaurantCount,robotsCount:robotsCount,mouseCPS:mouseCPS,clickerCPS:clickerCPS,ovensCPS:ovensCPS,chefsCPS:chefsCPS,restaurantCPS:restaurantCPS,robotsCPS:robotsCPS,totalCPS:totalCPS,tomatoCPS:tomatoCPS,cheeseCPS:cheeseCPS,pepperCPS:pepperCPS,mushroomsCPS:mushroomsCPS,pepperoniCPS:pepperoniCPS,ironMouse:ironMouse,goldMouse:goldMouse,diamondMouse:diamondMouse,tomatoSauce:tomatoSauce,cheese:cheese,peppers:peppers,mushrooms:mushrooms,pepperoni:pepperoni,graduateCookers:graduateCookers,hotCookers:hotCookers,overCookers:overCookers,bigOvens:bigOvens,pizzaOvens:pizzaOvens,powerOvens:powerOvens,commisChefs:commisChefs,partieChefs:partieChefs,masterChefs:masterChefs,chainRestaurants:chainRestaurants,familyRestaurants:familyRestaurants,franchiseRestaurants:franchiseRestaurants,diyRobots:diyRobots,factoryRobots:factoryRobots,selfRobots:selfRobots,clickersPrice:clickersPrice,ovensPrice:ovensPrice,chefsPrice:chefsPrice,restaurantPrice:restaurantPrice,robotsPrice:robotsPrice,ironEnabled:ironEnabled,goldEnabled:goldEnabled,diamondEnabled:diamondEnabled,graduateEnabled:graduateEnabled,hotEnabled:hotEnabled,overEnabled:overEnabled,bigEnabled:bigEnabled,pizzaEnabled:pizzaEnabled,powerEnabled:pizzaEnabled,commisEnabled:commisEnabled,partieEnabled:partieEnabled,masterEnabled:masterEnabled,chainEnabled:chainEnabled,familyEnabled:familyEnabled,franchiseEnabled:franchiseEnabled,diyEnabled:diyEnabled,factoryEnabled:factoryEnabled,selfEnabled:selfEnabled,tomatoEnabled:tomatoEnabled,cheeseEnabled:cheeseEnabled,peppersEnabled:peppersEnabled,mushroomsEnabled:mushroomsEnabled,pepperoniEnabled:pepperoniEnabled,ovensEnabled:ovensEnabled,chefsEnabled:chefsEnabled,restaurantEnabled:restaurantEnabled,robotsEnabled:robotsEnabled,restaurantName:restaurantName,starOne:starOne};localStorage.setItem("save",JSON.stringify(o)),playModalSound(),openModalSave()}function load(){var o=JSON.parse(localStorage.getItem("save"));count=o.count,selfCount=o.selfCount,totalCount=o.totalCount,clickersCount=o.clickersCount,ovensCount=o.ovensCount,chefsCount=o.chefsCount,restaurantCount=o.restaurantCount,robotsCount=o.robotsCount,mouseCPS=o.mouseCPS,clickerCPS=o.clickerCPS,ovensCPS=o.ovensCPS,chefsCPS=o.chefsCPS,restaurantCPS=o.restaurantCPS,robotsCPS=o.robotsCPS,totalCPS=o.totalCPS,tomatoCPS=o.tomatoCPS,cheeseCPS=o.cheeseCPS,pepperCPS=o.pepperCPS,mushroomsCPS=o.mushroomsCPS,pepperoniCPS=o.pepperoniCPS,ironMouse=o.ironMouse,goldMouse=o.goldMouse,diamondMouse=o.diamondMouse,tomatoSauce=o.tomatoSauce,cheese=o.cheese,peppers=o.peppers,mushrooms=o.mushrooms,pepperoni=o.pepperoni,graduateCookers=o.graduateCookers,hotCookers=o.hotCookers,overCookers=o.overCookers,bigOvens=o.bigOvens,pizzaOvens=o.pizzaOvens,powerOvens=o.powerOvens,commisChefs=o.commisChefs,partieChefs=o.partieChefs,masterChefs=o.masterChefs,chainRestaurants=o.chainRestaurants,familyRestaurants=o.familyRestaurants,franchiseRestaurants=o.franchiseRestaurants,diyRobots=o.diyRobots,factoryRobots=o.factoryRobots,selfRobots=o.selfRobots,clickersPrice=o.clickersPrice,ovensPrice=o.ovensPrice,chefsPrice=o.chefsPrice,restaurantPrice=o.restaurantPrice,robotsPrice=o.robotsPrice,ironEnabled=o.ironEnabled,goldEnabled=o.goldEnabled,diamondEnabled=o.diamondEnabled,graduateEnabled=o.graduateEnabled,hotEnabled=o.hotEnabled,overEnabled=o.overEnabled,bigEnabled=o.bigEnabled,pizzaEnabled=o.pizzaEnabled,powerEnabled=o.powerEnabled,commisEnabled=o.commisEnabled,partieEnabled=o.partieEnabled,masterEnabled=o.masterEnabled,chainEnabled=o.chainEnabled,familyEnabled=o.familyEnabled,franchiseEnabled=o.franchiseEnabled,diyEnabled=o.diyEnabled,factoryEnabled=o.factoryEnabled,selfEnabled=o.selfEnabled,tomatoEnabled=o.tomatoEnabled,cheeseEnabled=o.cheeseEnabled,peppersEnabled=o.peppersEnabled,mushroomsEnabled=o.mushroomsEnabled,pepperoniEnabled=o.pepperoniEnabled,ovensEnabled=o.ovensEnabled,chefsEnabled=o.chefsEnabled,restaurantEnabled=o.restaurantEnabled,robotsEnabled=robotsEnabled,restaurantName=o.restaurantName,starOne=o.starOne,restaurantName?customName():defaultName(),$("#pizzaCounter").text(count.toLocaleString(void 0,{maximumFractionDigits:0})),$("#pizzaTotal").text(" "+totalCount.toLocaleString(void 0,{maximumFractionDigits:0})),$("#cps").text(totalCPS.toLocaleString(void 0,{maximumFractionDigits:2})),ovensEnabled&&$("#ovens").show(),chefsEnabled&&$("#chefs").show(),restaurantEnabled&&$("#restaurants").show(),robotsEnabled&&$("#robots").show(),ironEnabled&&$("#ironMouse").show(),goldEnabled&&$("#goldMouse").show(),diamondEnabled&&$("#diamondMouse").show(),graduateEnabled&&$("#GPC").show(),hotEnabled&&$("#HPC").show(),overEnabled&&$("#OPC").show(),bigEnabled&&$("#BO").show(),pizzaEnabled&&$("#PO").show(),powerEnabled&&$("#PowerO").show(),commisEnabled&&$("#commis").show(),partieEnabled&&$("#partie").show(),masterEnabled&&$("#master").show(),chainEnabled&&$("#chain").show(),familyEnabled&&$("#family").show(),franchiseEnabled&&$("#franchise").show(),diyEnabled&&$("#diy").show(),factoryEnabled&&$("#factory").show(),selfEnabled&&$("#self").show(),tomatoEnabled&&$("#tomato").show(),cheeseEnabled&&$("#cheese").show(),peppersEnabled&&$("#peppers").show(),mushroomsEnabled&&$("#mushrooms").show(),pepperoniEnabled&&$("#pepperoni").show(),starOne&&$("#starOne").show(),$("#clickerCount").text("Count: "+clickersCount),$("#ovensCount").text("Count: "+ovensCount),$("#chefsCount").text("Count: "+chefsCount),$("#restaurantsCount").text("Count: "+restaurantCount),$("#robotsCount").text("Count: "+robotsCount),$("#clickersPrice").text("Price: "+clickersPrice.toLocaleString(void 0,{maximumFractionDigits:0})),$("#ovensPrice").text("Price: "+ovensPrice.toLocaleString(void 0,{maximumFractionDigits:0})),$("#chefsPrice").text("Price: "+ovensPrice.toLocaleString(void 0,{maximumFractionDigits:0})),$("#restaurantsPrice").text("Price: "+restaurantPrice.toLocaleString(void 0,{maximumFractionDigits:0})),$("#robotsPrice").text("Price: "+robotsPrice.toLocaleString(void 0,{maximumFractionDigits:0})),graduateCookers&&$("#graduateButton").attr("disabled",!0),ironMouse&&$("#ironButton").attr("disabled",!0),goldMouse&&$("#goldButton").attr("disabled",!0),diamondMouse&&$("#diamondButton").attr("disabled",!0),hotCookers&&$("#hotButton").attr("disabled",!0),overCookers&&$("#overButton").attr("disabled",!0),bigOvens&&$("#bigButton").attr("disabled",!0),pizzaOvens&&$("#povenButton").attr("disabled",!0),powerOvens&&$("#powerButton").attr("disabled",!0),commisChefs&&$("#commisButton").attr("disabled",!0),partieChefs&&$("#partieButton").attr("disabled",!0),masterChefs&&$("#masterButton").attr("disabled",!0),chainRestaurants&&$("#chainButton").attr("disabled",!0),familyRestaurants&&$("#familyButton").attr("disabled",!0),franchiseRestaurants&&$("#franchiseButton").attr("disabled",!0),diyRobots&&$("#diyButton").attr("disabled",!0),factoryRobots&&$("#factoryButton").attr("disabled",!0),selfRobots&&$("#selfButton").attr("disabled",!0),tomatoSauce&&($("#top").show(),$("#tomatoButton").attr("disabled",!0),$("#TSImage").show()),cheese&&($("#cheeseButton").attr("disabled",!0),$("#CImage").show()),peppers&&($("#peppersButton").attr("disabled",!0),$("#PImage").show()),mushrooms&&($("#mushroomsButton").attr("disabled",!0),$("#MImage").show()),pepperoni&&($("#pepperonisButton").attr("disabled",!0),$("#PpImage").show()),playModalSound(),openModalLoad()}$("body").click(function(o){$(o.target).is(modal)?(modal.addClass("themodal-close"),setTimeout(function(){modal.hide(),modal.removeClass("themodal-close")},200)):$(o.target).is(modal2)?(modal2.addClass("themodal-close"),setTimeout(function(){modal2.hide(),modal2.removeClass("themodal-close")},200)):$(o.target).is(modal3)?(modal3.addClass("themodal-close"),setTimeout(function(){modal3.hide(),modal3.removeClass("themodal-close")},200)):$(o.target).is(modal4)?(modal4.addClass("themodal-close"),setTimeout(function(){modal4.hide(),modal4.removeClass("themodal-close")},200)):$(o.target).is(modal5)?(modal5.addClass("themodal-close"),setTimeout(function(){modal5.hide(),modal5.removeClass("themodal-close")},200)):$(o.target).is(modal6)?(modal6.addClass("themodal-close"),setTimeout(function(){modal6.hide(),modal6.removeClass("themodal-close")},200)):$(o.target).is(modal7)?(modal7.addClass("themodal-close"),setTimeout(function(){modal7.hide(),modal7.removeClass("themodal-close")},200)):$(o.target).is(modal8)?(modal8.addClass("themodal-close"),setTimeout(function(){modal8.hide(),modal8.removeClass("themodal-close")},200)):$(o.target).is(modal9)?(modal9.addClass("themodal-close"),setTimeout(function(){modal9.hide(),modal9.removeClass("themodal-close")},200)):$(o.target).is(modal10)?(modal10.addClass("themodal-close"),setTimeout(function(){modal10.hide(),modal10.removeClass("themodal-close")},200)):$(o.target).is(modal11)&&(modal11.addClass("themodal-close"),setTimeout(function(){modal11.hide(),modal11.removeClass("themodal-close")},200))});