Add the Ixian Powercore recipe and current device names to the Cookbook

This commit is contained in:
unimatrixgit 2026-11-30 19:49:58 +01:00
commit a4e2fc64eb

View file

@ -99,6 +99,14 @@ export function recipeCatalogue() {
recipes.push({ id: 'spice_boosted_potion', station: 'Brewing stand', inputs: [entry('imported_potion', 'Imported Potion', 'potion'), spice], output: entry('spice_boosted_potion', 'Spice-Boosted Potion', 'potion', true), amount: 1, notes: 'Brew once on Arrakis. Effect levels are multiplied by 1.25 and rounded to the nearest whole level; duration stays the same.' });
const storage = JSON.parse(readFileSync(duneChest, 'utf8'));
for (const recipe of storage.recipes) {
if (recipe.shapeless) {
if (!Array.isArray(recipe.shapeless) || !recipe.shapeless.length || recipe.shapeless.length > 9) throw Error('Invalid shapeless DuneChest recipe');
const inputs = recipe.shapeless.map(ingredient => item(ingredient));
recipes.push({id: 'dunechest_' + recipe.id, station: crafting, inputs,
grid: Array.from({length: 9}, (_, index) => inputs[index] ?? null),
output: storage.items[recipe.id], amount: 1, shaped: false, notes: recipe.notes});
continue;
}
if (recipe.pattern.length !== 3 || recipe.pattern.some(row => row.length !== 3)) throw Error('Invalid DuneChest crafting grid');
const grid = recipe.pattern.flatMap(row => [...row].map(symbol => {
if (symbol === ' ') return null;
@ -109,7 +117,7 @@ export function recipeCatalogue() {
}));
recipes.push({id: 'dunechest_' + recipe.id, station: crafting, inputs: grid.filter(Boolean), grid,
output: storage.items[recipe.id], amount: 1, shaped: true,
notes: 'Available on Arrakis, Caladan, Giedi Prime, Kaitain and Sigmadraken IV. Not installed on Lobby.'});
notes: 'Available on all six servers, including Lobby.'});
}
for (const recipe of recipes) {
if (foodIds.has(recipe.output.id)) {