{"id":116,"date":"2022-03-27T19:05:29","date_gmt":"2022-03-28T00:05:29","guid":{"rendered":"https:\/\/ic-tools.net\/?page_id=116"},"modified":"2022-04-02T05:47:55","modified_gmt":"2022-04-02T10:47:55","slug":"fleet-jump-calcuator","status":"publish","type":"page","link":"https:\/\/ic-tools.net\/fleet-jump-calcuator\/","title":{"rendered":"Fleet Jump"},"content":{"rendered":"\n\n \n \n\tToadies IC Tools – Calculate fleet jump<\/title>\n\t<style type=\"text\/css\">\n\t\t#wrapper {\n\t\t\twidth: 410px;\n\t\t}\n\t\t#needs {\n\t\t\tpadding-left: 15px;\n\t\t}\n\t<\/style>\n\t\n \n\t<script type=\"text\/javascript\">\n\t\t<!--\t\t\n\t\tfunction update_resource()\n\t\t{\n\t\t\tvar gold = 0;\n\t\t\tvar iron = 0;\n\t\t\tvar endurium = 0;\n\t\t\tvar octarine = 0;\n\t\t\tvar networth = 0;\n\t\t\t\n\t\t\tvar research = document.getElementById('research').value;\n\t\t\t\n\t\t\t\/\/ Units\n\t\t\tfunction Bomber()\n\t\t\t{\n\t\t\t\tthis.gold = 400;\n\t\t\t\tthis.iron = 30;\n\t\t\t\tthis.endurium = 1;\n\t\t\t\tthis.networth = 5;\n\t\t\t}\n\t\t\tfunction Fighter()\n\t\t\t{\n\t\t\t\tthis.gold = 200;\n\t\t\t\tthis.iron = 15;\n\t\t\t\tthis.endurium = 1;\n\t\t\t\tthis.networth = 3;\n\t\t\t}\n\t\t\tfunction Soldier()\n\t\t\t{\n\t\t\t\tthis.gold = 100;\n\t\t\t\tthis.iron = 0;\n\t\t\t\tthis.endurium = 1;\n\t\t\t\tthis.networth = 1;\n\t\t\t}\n\t\t\tfunction Transport()\n\t\t\t{\n\t\t\t\tthis.gold = 800;\n\t\t\t\tthis.iron = 30;\n\t\t\t\tthis.endurium = 10;\n\t\t\t\tthis.networth = 6;\n\t\t\t}\n\t\t\tfunction Droid()\n\t\t\t{\n\t\t\t\tthis.gold = 50;\n\t\t\t\tthis.iron = 5;\n\t\t\t\tthis.endurium = 1;\n\t\t\t\tthis.networth = 1;\n\t\t\t}\n\t\t\tfunction Agent()\n\t\t\t{\n\t\t\t\tthis.gold = 150;\n\t\t\t\tthis.iron = 0;\n\t\t\t\tthis.endurium = 5;\n\t\t\t\tthis.networth = 1;\n\t\t\t}\n\t\t\tfunction Wizzard()\n\t\t\t{\n\t\t\t\tthis.gold = 150;\n\t\t\t\tthis.iron = 0;\n\t\t\t\tthis.endurium = 0;\n\t\t\t\tthis.octarine = 5;\n\t\t\t\tthis.networth = 1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\/\/ Bombers\n\t\t\tvar Bomber = new Bomber();\n\t\t\tvar bombers = document.getElementById('bomber').value;\n\t\t\t\n\t\t\t\/\/ Fighters\n\t\t\tvar Fighter = new Fighter();\n\t\t\tvar fighters = document.getElementById('fighter').value;\n\t\t\n\t\t\t\/\/ Soldiers\n\t\t\tvar Soldier = new Soldier();\n\t\t\tvar soldiers = document.getElementById('soldier').value;\n\t\t\t\n\t\t\t\/\/ Transports\n\t\t\tvar Transport = new Transport();\n\t\t\tvar transports = document.getElementById('transport').value;\n\t\t\t\n\t\t\t\/\/ Droids\n\t\t\tvar Droid = new Droid();\n\t\t\tvar droids = document.getElementById('droid').value;\n\t\t\t\n\t\t\t\/\/ Agents\n\t\t\tvar Agent = new Agent();\n\t\t\tvar agents = document.getElementById('agent').value;\n\t\t\t\n\t\t\t\/\/ Wizzards\n\t\t\tvar Wizzard = new Wizzard();\n\t\t\tvar wizzards = document.getElementById('wizzard').value;\n\t\t\t\n\t\t\tgold = (Math.ceil(bombers * Bomber.gold)) + (Math.ceil(fighters * Fighter.gold)) + (Math.ceil(soldiers * Soldier.gold)) + (Math.ceil(transports * Transport.gold)) + (Math.ceil(droids * Droid.gold)) + (Math.ceil(agents * Agent.gold)) + (Math.ceil(wizzards * Wizzard.gold));\n\t\t\tiron = (Math.ceil(bombers * Bomber.iron)) + (Math.ceil(fighters * Fighter.iron)) + (Math.ceil(soldiers * Soldier.iron)) + (Math.ceil(transports * Transport.iron)) + (Math.ceil(droids * Droid.iron)) + (Math.ceil(agents * Agent.iron)) + (Math.ceil(wizzards * Wizzard.iron));\n\t\t\tendurium = (Math.ceil(bombers * Bomber.endurium)) + (Math.ceil(fighters * Fighter.endurium)) + (Math.ceil(soldiers * Soldier.endurium)) + (Math.ceil(transports * Transport.endurium)) + (Math.ceil(droids * Droid.endurium)) + (Math.ceil(agents * Agent.endurium)) + (Math.ceil(wizzards * Wizzard.endurium));\n\t\t\toctarine = (Math.ceil(wizzards * Wizzard.octarine));\n\t\t\tnetworth = (Math.ceil(bombers * Bomber.networth)) + (Math.ceil(fighters * Fighter.networth)) + (Math.ceil(soldiers * Soldier.networth)) + (Math.ceil(transports * Transport.networth)) + (Math.ceil(droids * Droid.networth)) + (Math.ceil(agents * Agent.networth)) + (Math.ceil(wizzards * Wizzard.networth));\n\n\t\t\tdocument.getElementById('gold').innerHTML = Math.ceil((gold \/ ( 1 + (research\/100) ) ));\n\t\t\tdocument.getElementById('iron').innerHTML = Math.ceil((iron \/ ( 1 + (research\/100) ) ));\n\t\t\tdocument.getElementById('endurium').innerHTML = Math.ceil((endurium \/ ( 1 + (research\/100) ) ));\n\t\t\tdocument.getElementById('octarine').innerHTML = Math.ceil((octarine \/ ( 1 + (research\/100) ) ));\n\t\t\tdocument.getElementById('networth').innerHTML = Math.ceil(networth);\n\t\t}\n\t\t-->\n\t<\/script>\n \n\n\n\n\t\n\n<div class=\"clear_both\"><\/div> <div class=\"box_information\">\n\t\t\t\t<p>\n\t\t\t\t\tJust fill in the numbers and it will calculate the needed resources.\n\t\t\t\t<\/p>\n\t\t\t<\/div> <center>\n <form name=\"units\" onkeyup=\"update_resource()\">\n <table id=\"units\" align=\"center\">\n <tbody><tr>\n <td>\n <label for=\"research\">Research:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"research\" value=\"0\" size=\"1\" maxlength=\"3\">%\n <\/td>\n <td rowspan=\"8\">\n <table id=\"needs\">\n <tbody><tr>\n <th>\n Gold:\n <\/th>\n <td id=\"gold\">\n 0\n <\/td>\n <\/tr>\n <tr>\n <th>\n Iron:\n <\/th>\n <td id=\"iron\">\n 0\n <\/td>\n <\/tr>\n <tr>\n <th>\n Endurium:\n <\/th>\n <td id=\"endurium\">\n 0\n <\/td>\n <\/tr>\n <tr>\n <th>\n Octarine:\n <\/th>\n <td id=\"octarine\">\n 0\n <\/td>\n <\/tr>\n <tr>\n <th>\n Networth:\n <\/th>\n <td id=\"networth\">\n 0\n <\/td>\n <\/tr>\n <\/tbody><\/table>\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"bomber\">Bomber:<\/label>\n <\/td>\n <td colspan=\"2\">\n <input type=\"text\" id=\"bomber\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"fighter\">Fighter:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"fighter\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"soldier\">Soldier:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"soldier\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"droid\">Droid:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"droid\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"transport\">Transport:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"transport\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"agent\">Agent:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"agent\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <tr>\n <td>\n <label for=\"wizzard\">Wizard:<\/label>\n <\/td>\n <td>\n <input type=\"text\" id=\"wizzard\" value=\"0\" size=\"8\" maxlength=\"12\">\n <\/td>\n <\/tr>\n <\/tbody><\/table>\n <\/form>\n \t<div class=\"clear_both\"><\/div>\n<div id=\"def_footer\">\n\t | \n Credit goes to Toadie @ sandervdwal.nl | \n \n<\/div> <\/center>\n","protected":false},"excerpt":{"rendered":"<p>Toadies IC Tools – Calculate fleet jump Just fill in the numbers and it will calculate the needed resources. Research: % Gold: 0 Iron: 0 Endurium: 0 Octarine: 0 Networth: 0 Bomber: Fighter: Soldier: Droid: Transport: Agent: Wizard: | Credit goes to Toadie @ sandervdwal.nl |<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/pages\/116"}],"collection":[{"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":7,"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/pages\/116\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/pages\/116\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/ic-tools.net\/wp-json\/wp\/v2\/media?parent=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}