Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calcPerf(op) {
- tempCPerf = 0;
- if (op == 0) {
- tempCPerf = 40 + _root.save.botLevel * 1;
- } else {
- if (op == 1) {
- tempCPerf = Math.floor(100 + _root.save.highPong * 0.0065 + Math.pow(_root.save.totalPong / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 2) {
- tempCPerf = Math.floor(100 + _root.save.highAvoidance * 0.0065 + Math.pow(_root.save.totalAvoidance / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 3) {
- tempCPerf = Math.floor(100 + _root.save.highMath * 0.0065 + Math.pow(_root.save.totalMath / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 4) {
- tempCPerf = Math.floor(100 + _root.save.highWhack * 0.0065 + Math.pow(_root.save.totalWhack / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 5) {
- tempCPerf = Math.floor(100 + _root.save.highCount * 0.0065 + Math.pow(_root.save.totalCount / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 6) {
- tempCPerf = Math.floor(100 + _root.save.highMind * 0.0065 + Math.pow(_root.save.totalMind / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 7) {
- tempCPerf = Math.floor(100 + _root.save.highBalance * 0.0065 + Math.pow(_root.save.totalBalance / 100000, 0.4) * 10) * 100;
- } else {
- if (op == 8) {
- tempCPerf = Math.floor(50 + _root.save.stadiumAbilityCost / 4 + Math.pow(_root.save.stadiumRace, 0.3) * 10 + Math.pow(_root.save.stadiumImpossibleRace, 0.4) * 15) / 10;
- } else {
- if (op == 9) {
- tempCPerf = Math.floor(50 + _root.save.stadiumAbilityCost / 4 + Math.pow(_root.save.stadiumItem, 0.3) * 10 + Math.pow(_root.save.stadiumImpossibleItem, 0.4) * 15) / 10;
- } else {
- if (op == 10) {
- tempCPerf = Math.floor(50 + _root.save.stadiumAbilityCost / 8 + _root.save.stadiumBestDeathMatch * 0.65 + Math.pow(_root.save.stadiumDeathMatch, 0.5) * 2);
- } else {
- if (op == 11) {
- tempCPerf = Math.floor(50 + 500 * _root.save.fcgMaxStreak0 / (_root.save.fcgMaxStreak0 + 25) + Math.pow(_root.save.fcgLevel0, 0.4) * 15 + _root.save.fcgLevel * 10) / 10;
- } else {
- if (op == 12) {
- tempCPerf = Math.floor(45 + 500 * _root.save.fcgMaxStreak1 / (_root.save.fcgMaxStreak1 + 25) + Math.pow(_root.save.fcgLevel1, 0.4) * 14 + _root.save.fcgLevel * 9) / 10;
- } else {
- if (op == 13) {
- tempCPerf = Math.floor(40 + 500 * _root.save.fcgMaxStreak2 / (_root.save.fcgMaxStreak2 + 25) + Math.pow(_root.save.fcgLevel2, 0.4) * 13 + _root.save.fcgLevel * 8) / 10;
- } else {
- if (op == 14) {
- tempCPerf = Math.floor(35 + 500 * _root.save.fcgMaxStreak3 / (_root.save.fcgMaxStreak3 + 25) + Math.pow(_root.save.fcgLevel3, 0.4) * 12 + _root.save.fcgLevel * 7) / 10;
- } else {
- if (op == 15) {
- tempCPerf = Math.floor(30 + 500 * _root.save.fcgMaxStreak4 / (_root.save.fcgMaxStreak4 + 25) + Math.pow(_root.save.fcgLevel4, 0.4) * 11 + _root.save.fcgLevel * 6) / 10;
- } else {
- if (op == 16) {
- tempCPerf = Math.floor(25 + 500 * _root.save.fcgMaxStreak6 / (_root.save.fcgMaxStreak6 + 25) + Math.pow(_root.save.fcgLevel6, 0.3) * 9 + _root.save.fcgLevel * 4) / 10;
- } else {
- if (op == 17) {
- tempCPerf = Math.floor(20 + 500 * _root.save.fcgMaxStreak7 / (_root.save.fcgMaxStreak7 + 25) + Math.pow(_root.save.fcgLevel7, 0.3) * 8 + _root.save.fcgLevel * 3) / 10;
- } else {
- if (op == 18) {
- tempCPerf = Math.floor(15 + 500 * _root.save.fcgMaxStreak8 / (_root.save.fcgMaxStreak8 + 25) + Math.pow(_root.save.fcgLevel8, 0.3) * 7 + _root.save.fcgLevel * 2) / 10;
- } else {
- if (op == 19) {
- tempCPerf = Math.floor(10 + 500 * _root.save.fcgMaxStreak10 / (_root.save.fcgMaxStreak10 + 25) + Math.pow(_root.save.fcgLevel10, 0.3) * 5 + _root.save.fcgLevel * 1) / 10;
- } else {
- if (op == 20) {
- tempCPerf = Math.floor(10 + 500 * _root.save.fishBestStreak / (_root.save.fishBestStreak + 25) + Math.pow(_root.save.fishPerfect, 0.3) * 5 + _root.save.fishBestLevel * 5) / 10;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- if (op != 0) {
- tempCPerf += (_root.cyborgActMaxPerf[op] - tempCPerf) * (_root.save.botLevel * 0.0025 + Math.pow(_root.save.botOp[op] * Math.max(30, _root.cyborgActTime[op]) / 30, 0.45) * 0.001);
- }
- if (op >= 1 && op <= 7) {
- tempCPerf = Math.floor(tempCPerf / 100) * 100;
- } else {
- if (op == 10) {
- tempCPerf = Math.floor(tempCPerf);
- } else {
- tempCPerf = Math.floor(tempCPerf * 10) / 10;
- }
- }
- if (tempCPerf > _root.cyborgActMaxPerf[op]) {
- tempCPerf = _root.cyborgActMaxPerf[op];
- }
- if (tempCPerf < _root.cyborgActMinPerf[op]) {
- tempCPerf = _root.cyborgActMinPerf[op];
- }
- if (isNaN(tempCPerf)) {
- tempCPerf = 0;
- }
- return tempCPerf;
- }
Advertisement
Add Comment
Please, Sign In to add comment