Просмотр исходного кода

shipbuilding: add more buyable mats

raylu 4 месяцев назад
Родитель
Сommit
d33bd298df
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      ts/shipbuilding.ts

+ 5 - 1
ts/shipbuilding.ts

@@ -4,7 +4,9 @@ const buy = new Set([
 	// definitely buy
 	// definitely buy
 	'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
 	'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
 	// maybe buy
 	// maybe buy
-	'AU', 'BRM', 'CU', 'FE', 'LI', 'RG', 'ROM', 'SI', 'TI',
+	'AIR', 'AU', 'BE', 'BRM', 'CU', 'FAN', 'FC', 'FE', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF', 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TI', 'TPU',
+	// import
+	'AAR', 'AWF', 'CAP', 'CF',
 	// skip
 	// skip
 	'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
 	'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
 ])
 ])
@@ -64,6 +66,8 @@ async function render() {
 		renderAnalysis(analysisNodes),
 		renderAnalysis(analysisNodes),
 		element('p', {textContent: `total cost: ${formatWhole(cost)}`}),
 		element('p', {textContent: `total cost: ${formatWhole(cost)}`}),
 		renderProduction(expertiseGroups, production, prices),
 		renderProduction(expertiseGroups, production, prices),
+		element('h2', {textContent: 'buy'}),
+		element('p', {textContent: Array.from(buy).join(', ')}),
 	);
 	);
 }
 }