Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KingBecks123 authored Jan 12, 2022
1 parent bb51d53 commit af77832
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 533 deletions.
2 changes: 1 addition & 1 deletion aesthetic.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function addAesthetic() {
if (gameData.lookAround == 3)
hide('lookAroundButton')
else
tabs('lookAroundButton', "inline-block")
show('lookAroundButton', "inline")

if (gameData.juiceBulkAmountToggle == 100 && gameData.deliveryTypeToggle < 2)
colorChanger('increaseJuiceSoldButton', grayAccent)
Expand Down
97 changes: 27 additions & 70 deletions bars.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
function working() {
gameData.employeeIsWorking = 1
barStart("working")

}


function basket() {
gameData.basketBar = 0;
gameData.limes += gameData.limesInBaskets;
gameData.goldenLimes += gameData.goldenLimesInBaskets;
gameData.limesInBaskets = 0;
gameData.goldenLimesInBaskets = 0;

gameData.basketBar = 0
gameData.limes += gameData.limesInBaskets
gameData.goldenLimes += gameData.goldenLimesInBaskets
gameData.limesInBaskets = 0
gameData.goldenLimesInBaskets = 0
}

function workingBar() {
if (gameData.workingBar < 100 && gameData.employeeIsWorking == 1) {
gameData.workingBar += 1;
setTimeout(workingBar, 600 / gameData.tickspeed)
}

else {
if (gameData.employeeIsWorking == 1) {
gameData.limes += gameData.employeeCurrentSpeed
gameData.employeeWorking -= 1
}

if (gameData.employeeWorking > 0) {
if (gameData.employeeWorking > 0)
working()
} else {
else
gameData.employeeIsWorking = 0
}
}
}

Expand All @@ -47,26 +42,17 @@ function teachBarEnd() {}

function eat() {
if (canStartBar('eat') && gameData.eat < 100) {
if (gameData.foodTypeToggle == 0 && gameData.limes > 0) {
gameData.limes -= 1
gameData.foodType = 5

if (gameData.eatBar == 100 || gameData.eatBar == 0) {
gameData.eatBar = 0
eatBar()
}


} else if (gameData.foodTypeToggle == 1 && gameData.rottenLimes > 0) {
gameData.rottenLimes -= 1
gameData.foodType = 1

if (gameData.eatBar == 100 || gameData.eatBar == 0) {
gameData.eatBar = 0
eatBar()
}
}
if (gameData.foodTypeToggle == 0 && gameData.limes > 0)
startEating ('limes', 5)
else if (gameData.foodTypeToggle == 1 && gameData.rottenLimes > 0)
startEating ('rottenLimes', 1)
}
function startEating (type, amount) {
gameData[type] -= 1
gameData.foodType = amount
gameData.eatBar = 0
eatBar()
}
}

function eatBar() {
Expand All @@ -77,7 +63,6 @@ function eatBarEnd() {
gameData.eat += gameData.foodType * (gameData.nutritionists + 1)
}


function autoCollecting() {
if (gameData.autoCollectingBar == (gameData.nourishment + 1) * 100 || gameData.autoCollectingBar == 0) {
gameData.autoCollectingBar = 0
Expand All @@ -92,11 +77,8 @@ function autoCollectingBar() {
moveAutoCollecting()
setTimeout(autoCollectingBar, 50)
}

if (gameData.autoCollectingBar % (10 / (gameData.shoes + 1)) == 0) {
if (gameData.autoCollectingBar % (10 / (gameData.shoes + 1)) == 0)
getLimes()
}

}

function convertCoinsNow() {
Expand All @@ -119,9 +101,8 @@ function convertCoinsNowBarEnd() {


function learnANewSkill() {
if (gameData.learnANewSkill - gameData.tomes <= 2) {
if (gameData.learnANewSkill - gameData.tomes <= 2)
barStart("learnANewSkill")
}
}


Expand Down Expand Up @@ -222,7 +203,6 @@ function delivery() {

deliveryBar()
}

}

function deliveryBar() {
Expand All @@ -244,86 +224,66 @@ function deliveryBarEnd() {

function makeJuice() {

if ((gameData.juicerBar >= 99 || gameData.juicerBar == 0) && gameData.juicerBarRunning == 0)
{
if (gameData.limeTypeToJuice == 0 && gameData.limes >= gameData.limesPerJuice)
{
if ((gameData.juicerBar >= 99 || gameData.juicerBar == 0) && gameData.juicerBarRunning == 0) {
if (gameData.limeTypeToJuice == 0 && gameData.limes >= gameData.limesPerJuice) {
gameData.limes -= gameData.limesPerJuice
gameData.juicerBar = 0
gameData.howMuchJuice = 1
gameData.limeTypeToJuiceToggle = 0
juicerBar()
}
else if (gameData.limeTypeToJuice == 1 && gameData.peeledLimes >= gameData.peeledLimesPerJuice)
{
else if (gameData.limeTypeToJuice == 1 && gameData.peeledLimes >= gameData.peeledLimesPerJuice) {
gameData.peeledLimes -= gameData.peeledLimesPerJuice
gameData.juicerBar = 0
gameData.howMuchJuice = 1
gameData.limeTypeToJuiceToggle = 1
juicerBar()
}
}

}


function peelerPeel() {

if ((gameData.peelerBar >= 99 || gameData.peelerBar == 0) && gameData.limes >= 1 && gameData.peelerBarRunning == false) {
gameData.howManyPeeledLimes = 1
gameData.limes -= 1
gameData.peelerBar = 0
peelerBar()
}

}


function peelerPeelMax() {

if ((gameData.peelerBar >= 99 || gameData.peelerBar == 0) && gameData.peelerBarRunning == false)
{
if ((gameData.peelerBar >= 99 || gameData.peelerBar == 0) && gameData.peelerBarRunning == false) {
gameData.howManyPeeledLimes = gameData.limes

if (gameData.howManyPeeledLimes > gameData.peelers)
gameData.howManyPeeledLimes = gameData.peelers

gameData.limes -= gameData.howManyPeeledLimes

if (gameData.howManyPeeledLimes > 0) {

gameData.peelerBar = 0;
peelerBar()

}
}
}


function makeMaxJuice() {

if ((gameData.juicerBar >= 100 || gameData.juicerBar == 0) && gameData.juicerBarRunning == 0) {

if (gameData.limeTypeToJuice == 0)
{
gameData.howMuchJuice = Math.floor(gameData.limes / gameData.limesPerJuice)

if (gameData.howMuchJuice > gameData.juicers)
gameData.howMuchJuice = gameData.juicers

gameData.limeTypeToJuiceToggle = 0
gameData.limes -= gameData.howMuchJuice * gameData.limesPerJuice
}
else
{
else {
gameData.howMuchJuice = Math.floor(gameData.peeledLimes / gameData.peeledLimesPerJuice)
if (gameData.howMuchJuice > gameData.juicers)
gameData.howMuchJuice = gameData.juicers

gameData.peeledLimes -= gameData.howMuchJuice * gameData.peeledLimesPerJuice
gameData.limeTypeToJuiceToggle = 1
}

if (gameData.howMuchJuice > 0) {
gameData.juicerBar = 0;
juicerBar()
Expand All @@ -349,19 +309,16 @@ function juicerBarEnd() {
}

function eatGoldenLime(){
if(gameData.goldenLimes > 0)
{
if(gameData.goldenLimes > 0) {
gameData.goldenLimes -= 1
gameData.eatGoldenLimeBar = 100
gameData.bitterSpeeding = 1
eatGoldenLimeBar()
}
}

function eatGoldenLimeBar(){

if (gameData.eatGoldenLimeBar > 0)
{
function eatGoldenLimeBar() {
if (gameData.eatGoldenLimeBar > 0) {
gameData.eatGoldenLimeBar -= 0.5;
moveBar("eatGoldenLime")
setTimeout(eatGoldenLimeBar, (gameData.bitterSpeedSkillLevel / gameData.tickspeed))
Expand Down
Loading

0 comments on commit af77832

Please sign in to comment.