Append full item catalogue to the content manifest.
Lists every defined item with id, key, and description after the mobs section. Co-authored-by: Cursor <cursoragent@cursor.com>
@@ -37,7 +37,7 @@ import { CRAFT_RECIPES } from "../shared/crafting/stationRecipes.js";
37
37
import { ALCHEMY_POTION_DEFINITIONS } from "../shared/definitions/alchemy.js";
38
38
import { formatAlchemyStep, alchemyItemLabel } from "../shared/alchemy/recipes.js";
39
39
import { MOB_DEFINITIONS, defaultSpawnerConfig } from "../shared/definitions/mobs.js";
40
import { itemDefinition } from "../shared/definitions/items.js";
40
import { ITEM_DEFINITIONS, itemDefinition } from "../shared/definitions/items.js";
41
41
import { ARMOUR_CRAFT_PIECES } from "../shared/definitions/armourItems.js";
42
42
import { LEATHER_ARMOUR_PIECES } from "../shared/definitions/leatherArmourItems.js";
43
43
import { WIZARD_PIECES } from "../shared/definitions/wizardItems.js";
@@ -558,6 +558,25 @@ function buildMarkdown ()
558
558
}
559
559
lines.push("");
560
560
561
// --- All items ---
562
lines.push("## All items");
563
lines.push("");
564
{
565
const rows = Object.values(ITEM_DEFINITIONS)
566
.filter((def) => def?.itemId != null)
567
.slice()
568
.sort((a, b) => String(a.displayName ?? "").localeCompare(String(b.displayName ?? ""))
569
|| ((a.itemId | 0) - (b.itemId | 0)))
570
.map((def) => [
571
def.displayName ?? String(def.itemId),
572
String(def.itemId),
573
def.key ?? "—",
574
def.description ?? "—"
575
]);
576
lines.push(mdTable(["Name", "Id", "Key", "Description"], rows));
577
}
578
lines.push("");
579
561
580
return `${lines.join("\n")}\n`;
562
581
}
563
582
@@ -37,7 +37,7 @@ import { CRAFT_RECIPES } from "../shared/crafting/stationRecipes.js";37
import { ALCHEMY_POTION_DEFINITIONS } from "../shared/definitions/alchemy.js";37
import { ALCHEMY_POTION_DEFINITIONS } from "../shared/definitions/alchemy.js";38
import { formatAlchemyStep, alchemyItemLabel } from "../shared/alchemy/recipes.js";38
import { formatAlchemyStep, alchemyItemLabel } from "../shared/alchemy/recipes.js";39
import { MOB_DEFINITIONS, defaultSpawnerConfig } from "../shared/definitions/mobs.js";39
import { MOB_DEFINITIONS, defaultSpawnerConfig } from "../shared/definitions/mobs.js";40
import { itemDefinition } from "../shared/definitions/items.js";40
import { ITEM_DEFINITIONS, itemDefinition } from "../shared/definitions/items.js";41
import { ARMOUR_CRAFT_PIECES } from "../shared/definitions/armourItems.js";41
import { ARMOUR_CRAFT_PIECES } from "../shared/definitions/armourItems.js";42
import { LEATHER_ARMOUR_PIECES } from "../shared/definitions/leatherArmourItems.js";42
import { LEATHER_ARMOUR_PIECES } from "../shared/definitions/leatherArmourItems.js";43
import { WIZARD_PIECES } from "../shared/definitions/wizardItems.js";43
import { WIZARD_PIECES } from "../shared/definitions/wizardItems.js";@@ -558,6 +558,25 @@ function buildMarkdown ()558
}558
}559
lines.push("");559
lines.push("");560
560
561
// --- All items ---562
lines.push("## All items");563
lines.push("");564
{565
const rows = Object.values(ITEM_DEFINITIONS)566
.filter((def) => def?.itemId != null)567
.slice()568
.sort((a, b) => String(a.displayName ?? "").localeCompare(String(b.displayName ?? ""))569
|| ((a.itemId | 0) - (b.itemId | 0)))570
.map((def) => [571
def.displayName ?? String(def.itemId),572
String(def.itemId),573
def.key ?? "—",574
def.description ?? "—"575
]);576
lines.push(mdTable(["Name", "Id", "Key", "Description"], rows));577
}578
lines.push("");579
561
return `${lines.join("\n")}\n`;580
return `${lines.join("\n")}\n`;562
}581
}563
582