shipbuilding.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>PrUn shipbuilding</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. 'LFE': 2,
  28. 'MFE': 2,
  29. 'RCT': 1,
  30. 'SFE': 1,
  31. 'LCB': 1,
  32. 'MFL': 1,
  33. 'MSL': 1,
  34. 'LHP': 94,
  35. 'SSC': 128,
  36. 'BR1': 1,
  37. 'CQM': 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', 'FAN', 'FC', 'FE', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF',
  44. 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TCO', 'TPU',
  45. // import
  46. 'AAR', 'AWF', 'CAP', 'CF', 'RAD',
  47. // skip
  48. 'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
  49. ])
  50. setupProduction(blueprint, buy, 'IC1', document.querySelector('#shipbuilding'));
  51. </script>
  52. </body>
  53. </html>