Created
September 14, 2014 06:24
-
-
Save stu43005/204d2cd3fe77b7301355 to your computer and use it in GitHub Desktop.
more Chickens!!! http://gamehelp16.github.io/chickens/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function() { | |
if (!exploring) { | |
slaychicken(); | |
furnace('gold chicken nugget', 10); | |
for (var i = 0; i < 10; i++) { | |
trade('wheat'); | |
if (chickenspop < ironchickenspop && chickenspop < goldchickenspop) breed('chicken'); | |
else if (ironchickenspop < chickenspop && ironchickenspop < goldchickenspop) breed('iron chicken'); | |
else if (goldchickenspop < chickenspop && goldchickenspop < ironchickenspop) breed('gold chicken'); | |
} | |
} else { | |
for (var i = 0; i < enemies.length; i++) { | |
if (!enemies[i].isdead) { | |
if (enemies[i].iscd == 0) { | |
attackenemy(i); | |
} | |
} | |
} | |
for (var k = 0; k < drops.length; k++) { | |
var thisdrop = drops[k]; | |
if (!thisdrop.taken) { | |
if (thisdrop.from != "no show") { | |
takedrop(thisdrop.id); | |
} | |
} | |
} | |
while (battleinvt[1].owned >= 1 && playerhp != playerhpmax && !healcd) { | |
heal(); | |
} | |
if (totalenemies == 0) { | |
if (battleinvt[0].owned > 0) { | |
if (kmexplored >= 20 && kmexplored < 1500) { | |
explorefurther(); | |
} | |
} | |
} | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment