Frame 1
_focusrect = false;
setProperty("", _focusrect, false);
Instance of Symbol 1 MovieClip "event_mc" in Frame 1
onClipEvent (load) {
function versionCheck() {
if (my_so.data.lastVer < 2) {
my_so.data.lastVer = 2;
my_so.data.skills.cost[9] = Math.floor(2800 * Math.pow(13.1999998092651, my_so.data.skills.rank[9]));
my_so.data.skills.effect[5] = my_so.data.skills.rank[5];
}
if (my_so.data.lastVer < 9) {
my_so.data.lastVer = 9;
my_so.data.skills.cost[10] = 90000000 /* 0x55D4A80 */;
my_so.data.skills.effect[10] = 1;
my_so.data.skills.rank[10] = 0;
my_so.data.skills.effect[1] = (my_so.data.skills.rank[1] * 15) + 100;
}
if (my_so.data.lastVer < 11) {
my_so.data.lastVer = 11;
my_so.data.skills.effect[10] = Math.floor(Math.pow(my_so.data.skills.rank[10], 3.40000009536743));
}
}
function commalize(n) {
if (n < 1000) {
return(n);
}
var _loc3 = 0;
var _loc4 = n;
var _loc6 = 0;
var _loc7 = -1;
var _loc5 = 100;
var _loc2 = Number(n % 10).toString();
n = Math.floor(n / 10);
while ((_loc4 / 10) >= 1) {
_loc3++;
_loc4 = _loc4 / 10;
}
if (_loc3 < 28) {
if (_loc3 < 19) {
if (_loc3 >= 10) {
n = Math.floor(n / 1000000);
_loc2 = (n % 10) + "b";
n = Math.floor(n / 10);
_loc2 = (n % 10) + _loc2;
n = Math.floor(n / 10);
_loc2 = ((n % 10) + ".") + _loc2;
_loc3 = _loc3 - 9;
n = Math.floor(n / 10);
}
} else {
n = Math.floor(n / 999999986991104);
_loc2 = (n % 10) + "qt";
n = Math.floor(n / 10);
_loc2 = (n % 10) + _loc2;
n = Math.floor(n / 10);
_loc2 = ((n % 10) + ".") + _loc2;
_loc3 = _loc3 - 18;
n = Math.floor(n / 10);
}
} else {
n = Math.floor(n / 1.00000001384843E24);
_loc2 = (n % 10) + "o";
n = Math.floor(n / 10);
_loc2 = (n % 10) + _loc2;
n = Math.floor(n / 10);
_loc2 = ((n % 10) + ".") + _loc2;
_loc3 = _loc3 - 27;
n = Math.floor(n / 10);
}
i = 1;
while (i <= _loc3) {
if ((i % 3) == 0) {
_loc2 = "," + _loc2;
}
_loc2 = Number(n % 10).toString() + _loc2;
n = Math.floor(n / 10);
i++;
}
return(_loc2);
}
function wipe() {
initSave();
updateOre(0);
_parent.wname_txt.text = my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + commalize(my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + my_so.data.weaponRarity) + "%";
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
_parent.gems_txt.text = "Gems: 5";
}
function initSave() {
my_so.data.birth = idiotDate.getTime();
my_so.data.lastTime = idiotDate.getTime();
my_so.data.age = 1;
my_so.data.xp = 1;
my_so.data.gold = 0;
my_so.data.gems = 5;
my_so.data.weaponPower = 20;
my_so.data.weaponRarity = 100;
my_so.data.weaponName = "Toy Pickaxe";
my_so.data.lastOre = 0;
my_so.data.orehp = 0;
my_so.data.oredef = 0;
my_so.data.orecost = 0;
my_so.data.highOre = 0;
my_so.data.skills = new Object();
my_so.data.skills.rank = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
my_so.data.skills.cost = [100, 400, 900, 40000, 30, 80000, 200000, 800000, 2400000, 2800, 90000000];
my_so.data.skills.effect = [3000, 100, 50, 0, 200, 0, 0, 20, 0, 0, 1];
my_so.data.lastVer = 10;
}
function managePower(n) {
_parent.life_txt.text = commalize(Math.round(my_so.data.age / 6170));
_parent.active_txt.text = commalize(Math.round(my_so.data.xp / 20));
lifeBonus = (Math.floor((Math.log(1 + (my_so.data.age / 25920000)) * Math.sqrt(1 + (my_so.data.age / 25920000))) * 100) / 100) + 1;
_parent.lifeBonus_txt.text = lifeBonus + "x";
activeBonus = (Math.floor((Math.log(1 + (my_so.data.xp / 324000)) * Math.sqrt(1 + (my_so.data.xp / 10800))) * 100) / 100) + 1;
_parent.activeBonus_txt.text = activeBonus + "x";
return(((n * lifeBonus) * activeBonus) * my_so.data.weaponPower);
}
function updateOre(n) {
if (my_so.data.lastOre < 50) {
orehp = ore.hp[my_so.data.lastOre];
oremhp = orehp;
oredef = ore.def[my_so.data.lastOre];
orename = ore.namo[my_so.data.lastOre];
orecost = ore.cost[my_so.data.lastOre];
_parent.rocks_mc.gotoAndStop(my_so.data.lastOre + 1);
} else {
if (my_so.data.lastOre != 50) {
if (n != 2) {
if (n == 1) {
my_so.data.orehp = Math.round(my_so.data.orehp / 1.20000004768372);
if (my_so.data.lastOre <= 63) {
my_so.data.oredef = Math.round(my_so.data.oredef / 1.5);
my_so.data.orecost = Math.round(my_so.data.orecost / 1.5);
} else {
my_so.data.oredef = Math.round(my_so.data.oredef / 1.20000004768372);
my_so.data.orecost = Math.round(my_so.data.orecost / 1.35000002384186);
}
}
} else {
my_so.data.orehp = Math.round(my_so.data.orehp * 1.20000004768372);
if (my_so.data.lastOre <= 64) {
my_so.data.oredef = Math.round(my_so.data.oredef * 1.5);
my_so.data.orecost = Math.round(my_so.data.orecost * 1.5);
} else {
my_so.data.oredef = Math.round(my_so.data.oredef * 1.20000004768372);
my_so.data.orecost = Math.round(my_so.data.orecost * 1.35000002384186);
}
}
} else {
my_so.data.orehp = 3199999934464;
my_so.data.oredef = 7000000000;
my_so.data.orecost = 680000026050560;
}
orehp = my_so.data.orehp;
oredef = my_so.data.oredef;
orecost = my_so.data.orecost;
oremhp = orehp;
var _loc2 = (my_so.data.lastOre - 49);
orename = "Hellstone Lv. " + _loc2;
_parent.rocks_mc.gotoAndStop(51);
}
_parent.oname_txt.text = orename;
_parent.ohp_txt.text = "HP: " + commalize(orehp);
_parent.odef_txt.text = "D: " + commalize(oredef);
_parent.ovalue_txt.text = "$" + commalize(orecost);
gps = Math.max(0, Math.floor(((3000 / my_so.data.skills.effect[0]) * Math.min(oremhp, managePower(my_so.data.skills.effect[2] / 100) - oredef)) * (orecost / oremhp)));
_parent.gps_txt.text = ("$" + commalize(gps)) + "/s";
if (my_so.data.lastOre != 0) {
_parent.leftarrow_mc.gotoAndStop(1);
} else {
_parent.leftarrow_mc.gotoAndStop(3);
}
if (!((my_so.data.lastOre > my_so.data.highOre) && (my_so.data.lastOre < 2286))) {
_parent.rightarrow_mc.gotoAndStop(1);
} else {
_parent.rightarrow_mc.gotoAndStop(3);
}
}
function hitOre(n, manual) {
idiotDate = new Date();
my_so.data.age = idiotDate.getTime() - my_so.data.birth;
attackPow = Math.floor(managePower(n));
if (!manual) {
adps = Math.min(oremhp, attackPow - oredef);
adps = Math.max(adps, 0);
_parent.adps_txt.text = commalize(Math.floor(adps * (3000 / my_so.data.skills.effect[0])));
} else {
_parent.dps_txt.text = commalize(Math.max(0, attackPow - oredef));
}
orehp = Math.min((orehp - attackPow) + oredef, orehp);
if (orehp <= 0) {
if (my_so.data.highOre < my_so.data.lastOre) {
my_so.data.highOre = my_so.data.lastOre;
_parent.rightarrow_mc.gotoAndStop(1);
}
my_so.data.gold = my_so.data.gold + orecost;
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
orehp = oremhp;
_parent.ohp_txt.text = "HP: " + commalize(orehp);
if ((Math.random() * 1000) < my_so.data.skills.effect[7]) {
my_so.data.gems++;
_parent.gems_txt.text = "Gems: " + commalize(my_so.data.gems);
}
_parent.infoWindow_mc.s_mc.canBuy();
}
_parent.ohp_txt.text = "HP: " + commalize(orehp);
if (!manual) {
gps = Math.max(0, Math.floor(((3000 / my_so.data.skills.effect[0]) * Math.min(oremhp, managePower(my_so.data.skills.effect[2] / 100) - oredef)) * (orecost / oremhp)));
_parent.gps_txt.text = ("$" + commalize(gps)) + "/s";
}
}
function cout(s) {
coutt = 270;
_parent.trace_txt.text = (s + newline) + _parent.trace_txt.text;
}
function gemRandom(kz) {
var _loc2 = ((my_so.data.skills.effect[7] * kz) / 1000);
var _loc5 = (my_so.data.skills.effect[7] / 1000);
var _loc4 = ((1000 - my_so.data.skills.effect[7]) / 1000);
var _loc3 = Math.sqrt((kz * _loc5) * _loc4);
var _loc1 = 0;
if (Math.random() <= 0.5) {
_loc1 = Math.round(_loc2 + (_loc3 * (Math.sqrt(-2 * Math.log(Math.random())) * Math.sin((2 * Math.random()) * 3.14159297943115))));
} else {
_loc1 = Math.round(_loc2 + (_loc3 * (Math.sqrt(-2 * Math.log(Math.random())) * Math.cos((2 * Math.random()) * 3.14159297943115))));
}
my_so.data.gems = my_so.data.gems + _loc1;
cout(("Found " + _loc1) + " gems.");
}
function autoSmack() {
savecount = savecount + 1;
counter = counter + 100;
if (savecount > 2000) {
savecount = savecount - 2000;
my_so.flush();
cout("Game saved.");
}
if (counter > my_so.data.skills.effect[0]) {
counter = counter - my_so.data.skills.effect[0];
coutt = coutt - 10;
hitOre(my_so.data.skills.effect[2] / 100, false);
if (coutt == 0) {
_parent.trace_txt.text = "";
}
}
my_so.data.xp++;
my_so.data.lastTime = idiotDate.getTime();
}
var kongregate = _global.kongregate;
kongregate.services.connect();
var menuOpen = 0;
var idiotDate = new Date();
var my_so = SharedObject.getLocal("minerTest");
if (my_so.data.birth != null) {
my_so.data.age = idiotDate.getTime() - my_so.data.birth;
} else {
initSave();
}
versionCheck();
var dateHack = idiotDate.getTime();
var dateHack2 = idiotDate.getTime();
var counter = 0;
var savecount = 0;
var craftPage = 0;
var skillcap = [50, 500, 500, 10, 0, 30, 50, 40, 30, 50, 5];
var ore = new Object();
ore.namo = ["Poo", "Paper", "Salt", "Clay", "Rock", "Coal", "Bone", "Lead", "Iron", "Copper", "Carbonite", "Quartz", "Spooky Bone", "Silver", "Crystal", "Topaz", "Amethyst", "Aquamarine", "Emerald", "Ruby", "Sapphire", "Haunted Bone", "Gold", "Platinum", "Diamond", "Mithril", "Obsidian", "Earth Essence", "Orbium", "Novalite", "Magic Crystal", "Darkstone", "Adamantium", "Fire Essence", "Lunalite", "Mysterium", "Cursed Bone", "Wind Essence", "Unobtanium", "Sollite", "Water Essence", "Absurdium", "Cosmolite", "Shadow Essence", "Demonite", "Eternium", "Mysticite", "Light Essence", "Soulstone", "Arcanium"];
ore.hp = [100, 400, 700, 1400, 2200, 4000, 7000, 12400, 16000, 25000, 40000, 64000, 92000, 128000, 200000, 500000, 1400000, 4800000, 13000000, 42000000, 120000000, 200000000, 360000000, 500000000, 700000000, 1000000000, 1400000000, 2000000000, 2600000000, 3500000000, 4899999744, 7200000000, 10000000000, 14000000000, 20000000000, 30000001024, 44999999488, 67999997952, 99999997952, 130000003072, 174999994368, 240000008192, 320000000000, 434999984128, 590000029696, 779999969280, 1050000031744, 1350000050176, 1799999979520, 2399999885312];
ore.def = [0, 3, 15, 35, 90, 200, 380, 700, 1140, 1600, 2500, 3800, 5400, 7200, 9999, 13500, 18000, 24500, 34000, 50000, 80000, 130000, 200000, 295000, 440000, 680000, 1050000, 1400000, 2000000, 2800000, 4000000, 5800000, 8500000, 12000000, 17000000, 24000000, 33500000, 48000000, 69000000, 95000000, 138000000, 205000000, 300000000, 440000000, 640000000, 950000000, 1400000000, 2000000000, 3100000000, 4800000000];
ore.cost = [2, 10, 22, 50, 120, 275, 580, 1100, 1850, 3200, 5200, 8600, 14000, 20000, 42000, 140000, 480000, 2200000, 7200000, 25500000, 85000000, 190000000, 400000000, 760000000, 1600000000, 2800000000, 4800000000, 8200000000, 13500000256, 24500000768, 41999998976, 70000001024, 124999999488, 199999995904, 340000014336, 580000022528, 1050000031744, 1700000038912, 3000000053248, 4799999770624, 7199999918080, 12000000212992, 19999999655936, 30000000532480, 48000000851968, 72000001277952, 110000001253376, 170000006512640, 269999998500864, 419999986483200];
_parent.gems_txt.text = "Gems: " + my_so.data.gems;
_parent.oname_txt.text = ore.namo[my_so.data.lastOre];
var orehp = 1;
var oredef = 1;
var orecost = 1;
var oremhp = 1;
var orename = "";
var lifeBonus = 1;
var activeBonus = 1;
var attackPow = 1;
var gps = 1;
var kps = 1;
var adps = 1;
my_so.data.gold = Math.max(my_so.data.gold, 0);
_parent.wname_txt.text = my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + commalize(my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + my_so.data.weaponRarity) + "%";
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
updateOre(0);
var goldGain = Math.floor((((idiotDate.getTime() - my_so.data.lastTime) * gps) * (my_so.data.skills.effect[9] / 100)) / 1000);
if (goldGain > 0) {
my_so.data.gold = my_so.data.gold + goldGain;
cout("Welcome back. While you were gone, I got $" + commalize(goldGain));
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
}
my_so.data.lastTime = idiotDate.getTime();
_parent.craftButt_mc.checkArrows();
setInterval(autoSmack, 33);
}
Instance of Symbol 20 MovieClip "leftarrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
_parent.event_mc.my_so.data.lastOre--;
_parent.event_mc.updateOre(1);
}
}
Instance of Symbol 20 MovieClip "rightarrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
_parent.event_mc.my_so.data.lastOre++;
_parent.event_mc.updateOre(2);
}
}
Instance of Symbol 27 MovieClip "rocks_mc" in Frame 1
on (release) {
_parent.event_mc.hitOre(_parent.event_mc.my_so.data.skills.effect[1] / 100, true);
_parent.event_mc.my_so.data.xp = _parent.event_mc.my_so.data.xp + 5;
}
Instance of Symbol 80 MovieClip "craftButt_mc" in Frame 1
onClipEvent (load) {
function checkArrows() {
if (_parent.event_mc.craftPage <= 0) {
_parent.downArrow_mc.gotoAndStop(3);
} else {
_parent.downArrow_mc.gotoAndStop(1);
}
if (_parent.event_mc.my_so.data.skills.rank[10] <= _parent.event_mc.craftPage) {
_parent.upArrow_mc.gotoAndStop(3);
} else {
_parent.upArrow_mc.gotoAndStop(1);
}
if (_parent.craftPage != 0) {
req_txt.text = ("Requires " + Math.floor(Math.pow(3.40000009536743, _parent.event_mc.craftPage))) + " gems.";
} else {
req_txt.text = "Requires 1 gem.";
}
}
var plusprob = new Array(0.400000005960464, 0.479999989271164, 0.550000011920929, 0.600000023841858, 0.629999995231628, 0.660000026226044, 0.689999997615814, 0.734000027179718, 0.75);
var rankprob = new Array(0.300000011920929, 0.25, 0.28999999165535, 0.310000002384186, 0.300000011920929, 0.280000001192093, 0.270000010728836, 0.259999990463257, 0.259999990463257, 0.25, 0.239999994635582, 0.230000004172325, 0.219999998807907, 0.209999993443489, 0.200000002980232, 0.189999997615814);
checkArrows();
}
on (release) {
if (_parent.event_mc.my_so.data.gems >= Math.floor(Math.pow(3.40000009536743, _parent.event_mc.craftPage))) {
if (Math.random() <= (_parent.event_mc.my_so.data.skills.effect[6] / 100)) {
_parent.event_mc.cout("Saved the gem!");
} else {
_parent.event_mc.my_so.data.gems = _parent.event_mc.my_so.data.gems - Math.floor(Math.pow(3.40000009536743, _parent.event_mc.craftPage));
_parent.gems_txt.text = "Gems: " + _parent.event_mc.my_so.data.gems;
}
var weprank = _parent.event_mc.craftPage;
var wname = "";
var prefix = "";
var bTest = Math.random();
var bFactor = 0.0500000007450581;
var bString = "";
if (bTest > 0.985000014305115) {
bFactor = 0.0799999982118607;
bString = "Blacksmith had a flash of inspiration!";
}
if (bTest > 0.995000004768372) {
bFactor = 0.100000001490116;
bString = "Blacksmith had a stroke of brilliance!";
}
if (bTest > 0.999000012874603) {
bFactor = 0.119999997317791;
bString = "Blacksmith had a vision of magnificence!";
}
while (((Math.random() - bFactor) < rankprob[weprank]) && (weprank < 16)) {
weprank++;
}
switch (weprank) {
case 0 :
wname = "Pickaxe";
break;
case 1 :
wname = "Sturdy Pick";
break;
case 2 :
wname = "Power Pick";
break;
case 3 :
wname = "Super Pick";
break;
case 4 :
wname = "Ultra Pick";
break;
case 5 :
wname = "Mega Pick";
break;
case 6 :
wname = "Hyper Pick";
break;
case 7 :
wname = "COSMIC PICK";
break;
case 8 :
wname = "ULTIMATE PICK";
break;
case 9 :
wname = "GODLY PICK";
break;
default :
wname = Math.pow(weprank - 8, 2) + " TIMES GODLY PICK";
}
var modifier = (Math.random() + (_parent.event_mc.my_so.data.skills.effect[5] / 100));
if (modifier >= 0.100000001490116) {
if (modifier >= 0.209999993443489) {
if (modifier >= 0.349999994039536) {
if (modifier <= 1.22000002861023) {
if (modifier <= 1.14999997615814) {
if (modifier <= 1.10000002384186) {
if (modifier <= 0.899999976158142) {
if (modifier <= 0.790000021457672) {
if (modifier > 0.649999976158142) {
prefix = "Good ";
}
} else {
prefix = "Amazing ";
}
} else {
prefix = "Incredible ";
}
} else {
prefix = "Astonishing ";
}
} else {
prefix = "Legendary ";
}
} else {
prefix = "Mythical ";
}
} else {
prefix = "Bad ";
}
} else {
prefix = "Awful ";
}
} else {
prefix = "Abysmal ";
}
var weppow = Math.round(((_parent.event_mc.my_so.data.skills.effect[4] / 10) * ((modifier * 5.55555532159647E37) + 0.800000011920929)) * Math.pow(1.29999995231628, weprank));
var wepplus = 0;
while (Math.random() < (plusprob[weprank] + (_parent.event_mc.my_so.data.skills.effect[3] / 100))) {
wepplus++;
}
weppow = weppow + Math.round((weppow * wepplus) * 0.0750000029802322);
var wqual = (Math.floor((weppow * 100000) / _parent.event_mc.my_so.data.skills.effect[4]) / 100);
if (wqual > _parent.event_mc.bestQual) {
_parent.event_mc.kongregate.stats.submit("Quality", Math.floor(wqual));
_parent.event_mc.bestQual = Math.floor(wqual);
}
if (weppow <= _parent.event_mc.my_so.data.weaponPower) {
if (bFactor != 0.0500000007450581) {
_parent.event_mc.cout(((("...but failed to create anything useful (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
} else {
_parent.event_mc.cout(((("Sorry, I crafted a dud (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
}
} else {
_parent.event_mc.my_so.data.weaponPower = weppow;
_parent.event_mc.my_so.data.weaponRarity = wqual;
if (wepplus <= 0) {
_parent.event_mc.my_so.data.weaponName = prefix + wname;
} else {
_parent.event_mc.my_so.data.weaponName = ((prefix + wname) + " +") + wepplus;
}
_parent.wname_txt.text = _parent.event_mc.my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + _parent.event_mc.commalize(_parent.event_mc.my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + wqual) + "%";
if (bFactor != 0.0500000007450581) {
_parent.event_mc.cout(((("...and produced a masterpiece!(Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
} else {
_parent.event_mc.cout(((("Congratulations, you got a better pick (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
}
_parent.event_mc.my_so.flush();
_parent.event_mc.cout("Game saved.");
}
if (bFactor > 0.0500000007450581) {
_parent.event_mc.cout(bString);
}
}
}
Instance of Symbol 87 MovieClip "pickButt" in Frame 1
onClipEvent (load) {
function closeMenu() {
_parent.infoWindow_mc.gotoAndStop(1);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 0;
}
}
on (release) {
closeMenu();
}
Instance of Symbol 90 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen != 2) {
_parent.infoWindow_mc.gotoAndStop(2);
_parent.infoWindow_mc.s_mc.spawnSkills();
_parent.infoWindow_mc.s_mc.canBuy();
_parent.event_mc.menuOpen = 2;
} else {
_parent.pickButt.closeMenu();
}
}
Instance of Symbol 93 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen != 3) {
_parent.infoWindow_mc.gotoAndStop(3);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 3;
} else {
_parent.pickButt.closeMenu();
}
}
Instance of Symbol 20 MovieClip "upArrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
_parent.event_mc.craftPage++;
_parent.craftButt_mc.checkArrows();
}
}
Instance of Symbol 20 MovieClip "downArrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.craftPage > 0) {
_parent.event_mc.craftPage--;
_parent.craftButt_mc.checkArrows();
}
}
Instance of Symbol 99 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen != 4) {
_parent.infoWindow_mc.gotoAndStop(4);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 4;
} else {
_parent.pickButt.closeMenu();
}
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 144 Button
on (release) {
_parent.event_mc.my_so.flush();
_parent.event_mc.cout("Game saved.");
}
Symbol 148 Button
on (release) {
gotoAndStop (5);
counter = 5;
}
Symbol 102 MovieClip Frame 1
var confirm = 5;
stop();
Instance of Symbol 1 MovieClip "s_mc" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
function spawnSkills() {
var _loc2 = 1000;
_parent.skill_mc.duplicateMovieClip("sk1", _loc2, {skid:1, _y:226, _x:118});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk2", _loc2, {skid:2, _y:126, _x:18});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk3", _loc2, {skid:3, _y:226, _x:18});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk4", _loc2, {skid:4, _y:26, _x:218});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk5", _loc2, {skid:5, _y:26, _x:18});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk6", _loc2, {skid:6, _y:26, _x:118});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk7", _loc2, {skid:7, _y:26, _x:318});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk8", _loc2, {skid:8, _y:126, _x:318});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk9", _loc2, {skid:9, _y:226, _x:1318});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk10", _loc2, {skid:10, _y:226, _x:218});
_loc2++;
_parent.skill_mc.duplicateMovieClip("sk11", _loc2, {skid:11, _y:26, _x:418});
_loc2++;
_parent.skname_txt.text = "";
_parent.skdesc_txt.text = "";
_parent.skeffect_txt.text = "";
_parent.skcost_txt.text = "";
}
function canBuy() {
i = 1;
while (i <= 11) {
if ((_parent._parent.event_mc.my_so.data.gold >= _parent._parent.event_mc.my_so.data.skills.cost[i - 1]) && ((_parent._parent.event_mc.my_so.data.skills.rank[i - 1] < _parent._parent.event_mc.skillcap[i - 1]) || (_parent._parent.event_mc.skillcap[i - 1] == 0))) {
_parent["sk" + i]._alpha = 100;
} else {
_parent["sk" + i]._alpha = 30;
}
i++;
}
}
function cleanUp() {
i = 1;
while (i <= 11) {
_parent["sk" + i].removeMovieClip();
i++;
}
}
}
onClipEvent (unload) {
cleanUp();
}
Instance of Symbol 108 MovieClip "skill_mc" in Symbol 102 MovieClip Frame 2
onClipEvent (load) {
function updateDesc() {
_parent.skcost_txt.text = "Cost: $" + _parent._parent.event_mc.commalize(_parent._parent.event_mc.my_so.data.skills.cost[skid - 1]);
switch (skid) {
case 1 :
_parent.skname_txt.text = "Auto-Click faster";
_parent.skdesc_txt.text = "Increases the frequency of automatic clicks";
_parent.skeffect_txt.text = (("Clicks per second: " + (Math.floor(300000 / _parent._parent.event_mc.my_so.data.skills.effect[0]) / 100)) + " -> ") + (Math.floor(300000 / (_parent._parent.event_mc.my_so.data.skills.effect[0] * 0.949999988079071)) / 100);
break;
case 2 :
_parent.skname_txt.text = "Manual Click Power";
_parent.skdesc_txt.text = "Increases the power of manual clicking";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[1]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[1] + 15)) + "%";
break;
case 3 :
_parent.skname_txt.text = "Auto-Click Power";
_parent.skdesc_txt.text = "Increases the power of automatic clicks";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[2]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[2] + 8)) + "%";
break;
case 4 :
_parent.skname_txt.text = "Blacksmith Expertise";
_parent.skdesc_txt.text = "Increases the likelihood of crafting with + bonuses";
_parent.skeffect_txt.text = (("Level: " + _parent._parent.event_mc.my_so.data.skills.rank[3]) + " -> ") + (_parent._parent.event_mc.my_so.data.skills.rank[3] + 1);
break;
case 5 :
_parent.skname_txt.text = "Upgrade Blacksmith";
_parent.skdesc_txt.text = "Makes the blacksmith slightly better, increasing the base power of the pickaxes he produces.";
_parent.skeffect_txt.text = (("Base power: " + _parent._parent.event_mc.commalize(Math.floor(_parent._parent.event_mc.my_so.data.skills.effect[4] / 10))) + " -> ") + _parent._parent.event_mc.commalize(Math.floor(((_parent._parent.event_mc.my_so.data.skills.effect[4] * 1.05999994277954) + 120) / 10));
break;
case 6 :
_parent.skname_txt.text = "Blacksmith Skill";
_parent.skdesc_txt.text = "Increases the general quality of crafted gear.";
_parent.skeffect_txt.text = ((("Average quality: " + (_parent._parent.event_mc.my_so.data.skills.effect[5] + 100)) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[5] + 101)) + "%";
break;
case 7 :
_parent.skname_txt.text = "Blacksmith Efficiency";
_parent.skdesc_txt.text = "Small chance the Blacksmith will not use a gem while crafting.";
_parent.skeffect_txt.text = ((("Chance: " + _parent._parent.event_mc.my_so.data.skills.effect[6]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[6] + 1)) + "%";
break;
case 8 :
_parent.skname_txt.text = "Gem Finder";
_parent.skdesc_txt.text = "Increases odds of finding a gem.";
_parent.skeffect_txt.text = ((("Chance: " + (Math.floor(100 * _parent._parent.event_mc.my_so.data.skills.effect[7]) / 1000)) + "% -> ") + (Math.floor(100 * (_parent._parent.event_mc.my_so.data.skills.effect[7] + 4)) / 1000)) + "%";
break;
case 9 :
_parent.skname_txt.text = "Gem Idler";
_parent.skdesc_txt.text = "Can find gems even when the game is closed.";
_parent.skeffect_txt.text = ((("Chance: " + (Math.floor(100 * _parent._parent.event_mc.my_so.data.skills.effect[8]) / 1000)) + "% -> ") + (Math.floor(100 * (_parent._parent.event_mc.my_so.data.skills.effect[8] + 2)) / 1000)) + "%";
break;
case 10 :
_parent.skname_txt.text = "Idle Power";
_parent.skdesc_txt.text = "Can earn gold even when the game is closed.";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[9]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[9] + 2)) + "%";
break;
case 11 :
_parent.skname_txt.text = "Gem Waster";
_parent.skdesc_txt.text = "Allows you to use several gems at once to ensure crafting a higher tier of pick. But it's not really worth it.";
_parent.skeffect_txt.text = (("Max gems at once: " + Math.floor(Math.pow(3.40000009536743, _parent._parent.event_mc.my_so.data.skills.rank[10]))) + " -> ") + Math.floor(Math.pow(3.40000009536743, _parent._parent.event_mc.my_so.data.skills.rank[10] + 1));
}
if ((_parent._parent.event_mc.my_so.data.skills.rank[skid - 1] >= _parent._parent.event_mc.skillcap[skid - 1]) && (_parent._parent.event_mc.skillcap[skid - 1] != 0)) {
_parent.skcost_txt.text = "Max level. Cannot upgrade further.";
}
}
function clearDesc() {
_parent.skname_txt.text = "";
_parent.skdesc_txt.text = "";
_parent.skeffect_txt.text = "";
_parent.skcost_txt.text = "";
}
if (skid > 0) {
gotoAndStop(skid);
}
}
on (rollOver) {
updateDesc();
}
on (rollOut) {
clearDesc();
}
on (dragOut) {
clearDesc();
}
on (release) {
if ((_parent._parent.event_mc.my_so.data.gold >= _parent._parent.event_mc.my_so.data.skills.cost[skid - 1]) && ((_parent._parent.event_mc.my_so.data.skills.rank[skid - 1] < _parent._parent.event_mc.skillcap[skid - 1]) || (_parent._parent.event_mc.skillcap[skid - 1] == 0))) {
_parent._parent.event_mc.my_so.data.skills.rank[skid - 1]++;
_parent._parent.event_mc.my_so.data.gold = _parent._parent.event_mc.my_so.data.gold - _parent._parent.event_mc.my_so.data.skills.cost[skid - 1];
_parent._parent.gold_txt.text = "$" + _parent._parent.event_mc.commalize(_parent._parent.event_mc.my_so.data.gold);
switch (skid) {
case 1 :
_parent._parent.event_mc.my_so.data.skills.effect[0] = Math.floor(_parent._parent.event_mc.my_so.data.skills.effect[0] * 0.949999988079071);
_parent._parent.event_mc.my_so.data.skills.cost[0] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[0] * 2.79999995231628) + (_parent._parent.event_mc.my_so.data.skills.rank[0] * 400));
break;
case 2 :
_parent._parent.event_mc.my_so.data.skills.effect[1] = _parent._parent.event_mc.my_so.data.skills.effect[1] + 15;
_parent._parent.event_mc.my_so.data.skills.cost[1] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[1] * 1.20000004768372) + (_parent._parent.event_mc.my_so.data.skills.rank[1] * 1700));
break;
case 3 :
_parent._parent.event_mc.my_so.data.skills.effect[2] = _parent._parent.event_mc.my_so.data.skills.effect[2] + 8;
_parent._parent.event_mc.my_so.data.skills.cost[2] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[2] * 1.20000004768372) + (_parent._parent.event_mc.my_so.data.skills.rank[2] * 3000));
break;
case 4 :
_parent._parent.event_mc.my_so.data.skills.effect[3] = _parent._parent.event_mc.my_so.data.skills.effect[3] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[3] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[3] * 16);
break;
case 5 :
_parent._parent.event_mc.my_so.data.skills.effect[4] = Math.floor((_parent._parent.event_mc.my_so.data.skills.effect[4] * 1.05999994277954) + 120);
_parent._parent.event_mc.my_so.data.skills.cost[4] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[4] * 1.20000004768372) + (_parent._parent.event_mc.my_so.data.skills.rank[4] * 100));
break;
case 6 :
_parent._parent.event_mc.my_so.data.skills.effect[5] = _parent._parent.event_mc.my_so.data.skills.effect[5] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[5] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[5] * 4.19999980926514);
break;
case 7 :
_parent._parent.event_mc.my_so.data.skills.effect[6] = _parent._parent.event_mc.my_so.data.skills.effect[6] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[6] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[6] * 8.5);
break;
case 8 :
_parent._parent.event_mc.my_so.data.skills.effect[7] = _parent._parent.event_mc.my_so.data.skills.effect[7] + 4;
_parent._parent.event_mc.my_so.data.skills.cost[7] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[7] * 22);
break;
case 9 :
_parent._parent.event_mc.my_so.data.skills.effect[8] = _parent._parent.event_mc.my_so.data.skills.effect[8] + 2;
_parent._parent.event_mc.my_so.data.skills.cost[8] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[8] * 7);
break;
case 10 :
_parent._parent.event_mc.my_so.data.skills.effect[9] = _parent._parent.event_mc.my_so.data.skills.effect[9] + 2;
_parent._parent.event_mc.my_so.data.skills.cost[9] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[9] * 13.1999998092651) + (_parent._parent.event_mc.my_so.data.skills.rank[9] * 30000));
break;
case 11 :
_parent._parent.event_mc.my_so.data.skills.effect[10] = Math.floor(Math.pow(3.40000009536743, _parent._parent.event_mc.my_so.data.skills.rank[10]));
_parent._parent.event_mc.my_so.data.skills.cost[10] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[10] * 10000000);
_parent._parent.craftButt_mc.checkArrows();
}
_parent.s_mc.canBuy();
updateDesc();
}
}
Instance of Symbol 138 MovieClip in Symbol 102 MovieClip Frame 3
onClipEvent (load) {
var hp = 200;
}
on (release) {
this.hp--;
if (hp == 0) {
_parent.bob_txt.text = "by Crovie, only to appear on Kongregate. If you see this anywhere else, it's stolen.";
}
}
Symbol 102 MovieClip Frame 5
deltext_txt.text = "ARE YOU SURE YOU WANT TO PERMANENTLY DELETE YOUR DATA?";
Instance of Symbol 156 MovieClip "yes_mc" in Symbol 102 MovieClip Frame 5
on (release) {
if (_parent.confirm <= 0) {
_parent._parent.event_mc.wipe();
_parent._parent.pickButt.closeMenu();
} else {
_parent.deltext_txt.text = ("Click " + _parent.confirm) + " more times to confirm";
_parent.confirm--;
}
}
Instance of Symbol 159 MovieClip in Symbol 102 MovieClip Frame 5
on (release) {
_parent._parent.pickButt.closeMenu();
}
Instance of Symbol 162 MovieClip in Symbol 102 MovieClip Frame 5
on (release) {
_parent._parent.pickButt.closeMenu();
}