Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="ReiCosCal">
- <table style="width:98%">
- <tr>
- <th>Complete list of Reincarnation benefits <input id="ReiCosRei" type="number" min="1" max="160" value="1"><span id="R10"> with time(total) <input id="R10TimTot" type="number" min="0" max="876000" value="1"> in hours</span><span id="R20"> and <input id="R20SpeBui" type="number" min="0" max="9999999" value="1">buildings of given type.</span></th>
- </tr>
- <tr>
- <td id="Ben">
- <p id="R1AllBuiPro"></p>
- <p id="R1OffPro"></p>
- <p id="R1FCChaMul"></p>
- <p id="R1MpS"></p>
- <p id="R2GemPro"></p>
- <p id="R5Ass"></p>
- <p id="R10AllBuiPro"></p>
- <p id="R12MaxMan"></p>
- <p id="R20ProEacBui"></p>
- <p id="R25RE"></p>
- <p id="R41UniBuiPro"></p>
- <p id="R45MaxMan"></p>
- <p id="R50FCChaAdd"></p>
- <p id="R60FCChaMul"></p>
- <p id="R70AddResSlo"></p>
- <p id="R85AssPerR"></p>
- <p id="R100ManRegPerR"></p>
- <p id="R108ProdUBTimeDiff"></p>
- <p id="R115FCChaMul"></p>
- <p id="RNex"></p>
- <p id="RUnl"></p>
- </td>
- </tr>
- </table>
- <script>
- function Runl(unl) {
- $('#RUnl').html('This Reincarnation unlocks <b>' + unl + '</b>.');
- $('#RUnl').css('display', 'block');
- }
- function CalRBen() {
- var rei = parseInt($('#ReiCosRei').val());
- if (rei >= 1) {
- var bonus = (rei < 40) ? 25 * rei : (Math.pow(1 + 0.25 * rei, 0.1) - 1) * 100;
- $('#R1AllBuiPro').text('Production of all buildings is increased by ' + bonus.toFixed(1) + '%.');
- $('#R1AllBuiPro').css('display', 'block');
- } else {
- $('#R1AllBuiPro').css('display', 'none');
- }
- if (rei >= 1) {
- var bonus = (rei < 40) ? 500 * rei : (Math.pow(1 + 5 * rei, 0.1) - 1) * 100;
- $('#R1OffPro').text('Offline production is increased by ' + bonus.toFixed(1) + '%.');
- $('#R1OffPro').css('display', 'block');
- } else {
- $('#R1OffPro').css('display', 'none');
- }
- if (rei >= 1) {
- var bonus = Math.pow(rei, 1.1);
- $('#R1FCChaMul').text('Faction coin chance is multiplicatively increased by ' + bonus.toFixed(1) + '%.');
- $('#R1FCChaMul').css('display', 'block');
- } else {
- $('#R1FCChaMul').css('display', 'none');
- }
- if (rei >= 1) {
- var bonus = Math.floor(12.5 * (Math.pow(1 + 8 * rei, 0.5) - 1) / 2) / 10;
- $('#R1MpS').text('Mana regeneration is increased by +' + bonus.toFixed(1) + ' m/s.');
- $('#R1MpS').css('display', 'block');
- } else {
- $('#R1MpS').css('display', 'none');
- }
- if (rei >= 2) {
- var bonus = 0.2 * rei;
- $('#R2GemPro').text('Gem production bonus is increased by +' + bonus.toFixed(1) + '%.');
- $('#R2GemPro').css('display', 'block');
- } else {
- $('#R2GemPro').css('display', 'none');
- }
- if (rei >= 5) {
- var bonus = (rei < 40) ? 2 * rei : (Math.pow(1 + 0.02 * rei, 0.1) - 1) * 100;
- $('#R5Ass').text('Add ' + rei + ' assistants and their production is increased by ' + bonus.toFixed(1) + '%.');
- $('#R5Ass').css('display', 'block');
- } else {
- $('#R5Ass').css('display', 'none');
- }
- if (rei >= 10) {
- var bonus = (rei < 40) ? Math.pow(rei, 1.75) * Math.pow(parseInt($('#R10TimTot').val()), 0.65) : (Math.pow(1 + Math.pow(rei, 1.75) * Math.pow(parseInt($('#R10TimTot').val()), 0.65) / 100, 0.1) - 1) * 100;
- $('#R10AllBuiPro').text('Production of all buildings is increased by ' + bonus.toFixed(1) + '%.');
- $('#R10AllBuiPro, #R10').css('display', 'block');
- } else {
- $('#R10AllBuiPro, #R10').css('display', 'none');
- }
- if (rei >= 12) {
- var bonus = 35 * rei;
- $('#R12MaxMan').text('Maximum mana is increased by +' + bonus.toFixed(0) + '.');
- if (rei >= 45) $('#R12MaxMan').append(' Total increase is +' + (bonus + 70 * Math.pow(rei, 1.2)).toFixed(0) + '.');
- $('#R12MaxMan').css('display', 'block');
- } else {
- $('#R12MaxMan').css('display', 'none');
- }
- if (rei >= 20) {
- var bonus = (rei < 40) ? 0.01 * rei * parseInt($('#R20SpeBui').val()) : (Math.pow(1 + 0.0001 * rei * parseInt($('#R20SpeBui').val()), 0.1) - 1) * 100;
- $('#R20ProEacBui').text('Given buildings\' production is increased by ' + bonus.toFixed(1) + '%.');
- $('#R20ProEacBui, #R20').css('display', 'block');
- } else {
- $('#R20ProEacBui, #R20').css('display', 'none');
- }
- if (rei >= 25) {
- var bonus = 0.5 * rei;
- $('#R25RE').text('Royal Exchange bonus is increased by ' + bonus.toFixed(1) + '%.');
- $('#R25RE').css('display', 'block');
- } else {
- $('#R25RE').css('display', 'none');
- }
- if (rei >= 41) {
- var bonus = 1200 * Math.pow(rei, 1.1);
- $('#R41UniBuiPro').text('Unique Buildings\' production is increased by ' + bonus.toFixed(1) + '%.');
- $('#R41UniBuiPro').css('display', 'block');
- } else {
- $('#R41UniBuiPro').css('display', 'none');
- }
- if (rei >= 45) {
- var bonus = 70 * Math.pow(rei, 1.25);
- $('#R45MaxMan').text('Maximum mana is increased by +' + bonus.toFixed(0) + '. Total increase is +' + (bonus + 35 * rei).toFixed(0) + '.');
- $('#R45MaxMan').css('display', 'block');
- } else {
- $('#R45MaxMan').css('display', 'none');
- }
- if (rei >= 50) {
- var bonus = rei;
- $('#R50FCChaAdd').text('Faction coin chance is increased by ' + bonus.toFixed(1) + '%.');
- $('#R50FCChaAdd').css('display', 'block');
- } else {
- $('#R50FCChaAdd').css('display', 'none');
- }
- if (rei >= 60) {
- var bonus = 1.2 * Math.pow(rei, 1.05);
- $('#R60FCChaMul').text('Faction coin chance is increased ' + bonus.toFixed(0) + ' times if they match your Faction or Bloodline.');
- $('#R60FCChaMul').css('display', 'block');
- } else {
- $('#R60FCChaMul').css('display', 'none');
- }
- if (rei >= 70) {
- $('#R70AddResSlo').text('You gain 1 additional Research slot for each branch.');
- $('#R70AddResSlo').css('display', 'block');
- } else {
- $('#R70AddResSlo').css('display', 'none');
- }
- if (rei >= 85) {
- var bonus = rei * 4;
- $('#R85AssPerR').text('Add ' + bonus.toFixed(0) + ' additional Assistants.');
- $('#R85AssPerR').css('display', 'block');
- } else {
- $('#R85AssPerR').css('display', 'none');
- }
- if (rei >= 100) {
- var bonus = rei;
- $('#R100ManRegPerR').text('Increase Mana Regeneration by ' + bonus.toFixed(1) + '%.');
- $('#R100ManRegPerR').css('display', 'block');
- } else {
- $('#R100ManRegPerR').css('display', 'none');
- }
- if (rei >= 108) {
- $('#R108ProdUBTimeDiff').text('Increase the production of Unique Buildings based on the difference of time spent as their respective faction against your most most used faction this reincarnation');
- $('#R108ProdUBTimeDiff').css('display', 'block');
- } else {
- $('#R108ProdUBTimeDiff').css('display', 'none');
- }
- if (rei >= 115) {
- var bonus = 1.2 * Math.pow(rei, 1.05);
- $('#R115FCChaMul').text('Faction coin chance is increased ' + bonus.toFixed(0) + ' times if they match your Faction, Bloodline or Artifact Set.');
- $('#R115FCChaMul').css('display', 'block');
- } else {
- $('#R115FCChaMul').css('display', 'none');
- }
- if (rei <= 40) {
- $('#RNex').html('To Reincarnate to R' + rei.toFixed(0) + ', you need <b>1e' + (24 + rei * 3).toFixed(0) + '</b> gems.');
- } else if (rei <= 100){
- $('#RNex').html('To Reincarnate to R' + rei.toFixed(0) + ', you need <b>1.778e' + (rei * 2 - 62).toFixed(0) + '</b> gems.');
- } else {
- $('#RNex').html('To Reincarnate to R' + rei.toFixed(0) + ', you need <b>' + (Math.pow(1e27,0.75) * Math.pow(rei , (rei - 100))).toExponential(4) + '</b> gems.');
- }
- switch (rei) {
- case 2:
- Runl('Vanilla Challenges');
- break;
- case 3:
- Runl('Mercenaries');
- break;
- case 4:
- Runl('Neutral Challenges');
- break;
- case 6:
- Runl('Prestige Challenges');
- break;
- case 7:
- Runl('Bloodlines');
- break;
- case 16:
- Runl('Vanilla Research');
- break;
- case 23:
- Runl('Neutral Research');
- break;
- case 29:
- Runl('prestige research');
- break;
- case 40:
- Runl('Ascension 1');
- break;
- case 42:
- Runl('Tiered Autocasting');
- break;
- case 46:
- Runl('Neutral Prestige (Dragons)');
- break;
- case 47:
- Runl('Neutral Prestige Research');
- break;
- case 48:
- Runl('Dragon Challenges');
- break;
- case 60:
- Runl('lineages');
- break;
- case 75:
- Runl('Mercenary Research');
- break;
- case 100:
- Runl('Ascension 2 and Second Alignments');
- break;
- case 111:
- Runl('Union Upgrades')
- break;
- case 116:
- Runl('Prestige Factions')
- break;
- default:
- $('#RUnl').css('display', 'none');
- break;
- }
- }
- $('#ReiCosRei, #R10TimTot, #R20SpeBui').on('input', CalRBen);
- CalRBen();
- </script>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement