Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eatFood(food)
- {
- var timeItTakes = 0;
- var energyGains = 0;
- var exploringLevel = getLevel(exploringXp);
- if(food == "potato")
- {
- timeItTakes = 1;
- energyGains = 5000;
- }
- var textToShow = "<div class='basic-smallbox'><b>+" + energyGains + " Energy</b><br />Over " + timeItTakes + " minutes.</div>";
- if(exploringLevel == 1)
- textToShow = "Feeding your explorers will give them energy. Note that you cannot eat two things at a time.<br /><br />" + textToShow;
- openDialogue("Energy++;",textToShow,"EAT_FOOD=" + food);
- }
- function explore(areaChosen)
- {
- openDialogue("Confrim","Send your explorers to examine the " + areaChosen + "?","EXPLORE=" + areaChosen);
- }
- function explorerTick()
- {
- //explorer status
- var energyElement = document.getElementById("energy-amount");
- var statusElement = document.getElementById("explorer-status");
- statusElement.innerHTML = "";
- energyElement.innerHTML = "Energy: " + energy;
- if(eatingTimer > 0)
- {
- var minLeft = parseInt(eatingTimer / 60);
- statusElement.innerHTML = "("+eatingTimer+")";
- }
- if(exploringTimer > 0)
- {
- var minLeft = parseInt(exploringTimer / 60) + 1;
- statusElement.innerHTML = "<span style='font-size:10pt;'>("+exploringTimer+")</span>";
- }
- }
- //d0n4te sum g0ld t0 safe on DH f0r th1s c0de pl0x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement