| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>PrUn shipbuilding</title>
- <link rel="stylesheet" type="text/css" href="style.css">
- <link rel="icon" href="https://www.raylu.net/hammer-man.svg" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="theme-color" content="#222">
- </head>
- <body>
- <a href="/">← back</a>
- <main class="production">
- <form>
- <label>PUNoted API key: <input type="password" size="30" id="api-key"></label>
- <input type="button" value="fetch" id="fetch">
- </form>
- <section id="loader"></section>
- <div id="shipbuilding"></div>
- </main>
- <div id="popover" popover="hint"></div>
- <script type="module">
- import {setupProduction} from './production.js';
- const blueprint = {
- 'FFC': 1,
- 'FSE': 1,
- 'LFE': 2,
- 'MFE': 2,
- 'RCT': 1,
- 'SFE': 1,
- 'LCB': 1,
- 'MFL': 1,
- 'MSL': 1,
- 'LHP': 94,
- 'SSC': 128,
- 'BR1': 1,
- 'CQM': 1,
- };
- const buy = new Set([
- // definitely buy
- 'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
- // maybe buy
- 'AIR', 'AU', 'BE', 'BRM', 'BOR', 'BTS', 'CU', 'FAN', 'FC', 'FE', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF',
- 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TCO', 'TPU',
- // import
- 'AAR', 'AWF', 'CAP', 'CF', 'RAD',
- // skip
- 'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
- ])
- setupProduction(blueprint, buy, 'IC1', document.querySelector('#shipbuilding'));
- </script>
- </body>
- </html>
|