wcb_upgrade.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>PrUn WCB upgrade</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="wcb_upgrade"></div>
  20. </main>
  21. <div id="popover" popover="hint"></div>
  22. <script type="module">
  23. import {setupProduction} from './production.js';
  24. const blueprint = {
  25. 'LFE': 1,
  26. 'WCB': 1,
  27. 'MFL': 1,
  28. 'LHP': 64,
  29. 'SSC': 26,
  30. };
  31. const buy = new Set([
  32. // definitely buy
  33. 'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
  34. // maybe buy
  35. 'AIR', 'AU', 'BE', 'BRM', 'BOR', 'BTS', 'CU', 'FAN', 'FC', 'FE', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF', 'NFI',
  36. 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TCO', 'TPU',
  37. // import
  38. 'AAR', 'AWF', 'CAP', 'CF', 'RAD',
  39. ])
  40. setupProduction(blueprint, buy, 'IC1', 10, document.querySelector('#wcb_upgrade'));
  41. </script>
  42. </body>
  43. </html>