tcb.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>PrUn TCB</title>
  6. <link rel="stylesheet" type="text/css" href="style.css">
  7. <link rel="icon" href="https://www.raylu.net/hammer-man.svg" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta name="theme-color" content="#222">
  10. </head>
  11. <body>
  12. <a href="/">← back</a>
  13. <main class="production">
  14. <form>
  15. <label>PUNoted API key: <input type="password" size="30" id="api-key"></label>
  16. <input type="button" value="fetch" id="fetch">
  17. </form>
  18. <section id="loader"></section>
  19. <div id="shipbuilding"></div>
  20. </main>
  21. <div id="popover" popover="hint"></div>
  22. <script type="module">
  23. import {setupProduction} from './production.js';
  24. const blueprint = {
  25. 'FFC': 1,
  26. 'FSE': 1,
  27. 'HYR': 1,
  28. 'MFE': 2,
  29. 'SFE': 2,
  30. 'LFL': 1,
  31. 'SSL': 1,
  32. 'TCB': 1,
  33. 'BGS': 1,
  34. 'LHP': 38,
  35. 'SSC': 33,
  36. 'BR2': 1,
  37. 'CQT': 1,
  38. };
  39. const buy = new Set([
  40. // definitely buy
  41. 'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
  42. // maybe buy
  43. 'AIR', 'AU', 'BE', 'BRM', 'BOR', 'BTS', 'CU', 'EES', 'FAN', 'FC', 'FE', 'FIR', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF',
  44. 'NV2', 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TCO', 'TPU',
  45. // import
  46. 'AAR', 'AWF', 'CAP', 'CF', 'RAD',
  47. // skip
  48. 'BGS', 'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
  49. ])
  50. setupProduction(blueprint, buy, 'IC1', 5, document.querySelector('#shipbuilding'));
  51. </script>
  52. </body>
  53. </html>