BlueGit

timfa questward

Point silver, gold, and electrum bars at the jewelering station.

Those metals are jewellery stock, not anvil smithing; keep other bars on the anvil copy.

timfa Tim Falken · pushed by timfa

Authored 2026-09-03 · 2 months ago

Hash
e21125860cd6bbcaa08dc6c5907f4708bb2175e0
Parent
093f370f
2 files changed +20 −1
server/tests/jewelry.test.js +11 −0
@@ -40,6 +40,17 @@ test("jewellery uses silver gold electrum by gem tier", () =>
40 40 assert.equal(jewelryMetalIdForGemTier(GemTier.jadeite), GatherMaterialId.electrum);
41 41 });
42 42
43 test("precious bars describe the jewelering station, not the anvil", () =>
44 {
45 for (const itemId of [MetalItemId.silverBar, MetalItemId.goldBar, MetalItemId.electrumBar])
46 {
47 const def = itemDefinition(itemId);
48 assert.match(def.description, /jewelering station/i);
49 assert.doesNotMatch(def.description, /anvil/i);
50 }
51 assert.match(itemDefinition(MetalItemId.ironBar).description, /anvil/i);
52 });
53
43 54 test("jewellery recipes take one bar one cut gem and yarn for amulets", () =>
44 55 {
45 56 const ring = recipeDefinition("ring-opal");
@@ -40,6 +40,17 @@ test("jewellery uses silver gold electrum by gem tier", () =>
40 assert.equal(jewelryMetalIdForGemTier(GemTier.jadeite), GatherMaterialId.electrum);
40 assert.equal(jewelryMetalIdForGemTier(GemTier.jadeite), GatherMaterialId.electrum);
41});
41});
42
42
43test("precious bars describe the jewelering station, not the anvil", () =>
44{
45 for (const itemId of [MetalItemId.silverBar, MetalItemId.goldBar, MetalItemId.electrumBar])
46 {
47 const def = itemDefinition(itemId);
48 assert.match(def.description, /jewelering station/i);
49 assert.doesNotMatch(def.description, /anvil/i);
50 }
51 assert.match(itemDefinition(MetalItemId.ironBar).description, /anvil/i);
52});
53
43test("jewellery recipes take one bar one cut gem and yarn for amulets", () =>
54test("jewellery recipes take one bar one cut gem and yarn for amulets", () =>
44{
55{
45 const ring = recipeDefinition("ring-opal");
56 const ring = recipeDefinition("ring-opal");
shared/definitions/metalItems.js +9 −1
@@ -180,9 +180,17 @@ export const METAL_ITEM_DEFINITIONS = Object.freeze({
180 180 ...buildFamilyDefinitionMap(ItemFamilyId.axe, AXE_ITEM_BY_METAL),
181 181 ...buildFamilyDefinitionMap(ItemFamilyId.plantClippers, PLANT_CLIPPERS_ITEM_BY_METAL),
182 182 ...buildFamilyDefinitionMap(ItemFamilyId.shears, SHEARS_ITEM_BY_METAL),
183 [MetalItemId.silverBar]: Object.freeze({
184 ...BAR_ITEM_DEFINITIONS[MetalItemId.silverBar],
185 description: "Smelted silver. Work at a jewelering station."
186 }),
187 [MetalItemId.goldBar]: Object.freeze({
188 ...BAR_ITEM_DEFINITIONS[MetalItemId.goldBar],
189 description: "Smelted gold. Work at a jewelering station."
190 }),
183 191 [MetalItemId.electrumBar]: Object.freeze({
184 192 ...BAR_ITEM_DEFINITIONS[MetalItemId.electrumBar],
185 description: "A pale gold-silver alloy. Fit for fine jewellery."
193 description: "A pale gold-silver alloy. Work at a jewelering station."
186 194 }),
187 195 [MetalItemId.coal]: Object.freeze({
188 196 itemId: MetalItemId.coal,
@@ -180,9 +180,17 @@ export const METAL_ITEM_DEFINITIONS = Object.freeze({
180 ...buildFamilyDefinitionMap(ItemFamilyId.axe, AXE_ITEM_BY_METAL),
180 ...buildFamilyDefinitionMap(ItemFamilyId.axe, AXE_ITEM_BY_METAL),
181 ...buildFamilyDefinitionMap(ItemFamilyId.plantClippers, PLANT_CLIPPERS_ITEM_BY_METAL),
181 ...buildFamilyDefinitionMap(ItemFamilyId.plantClippers, PLANT_CLIPPERS_ITEM_BY_METAL),
182 ...buildFamilyDefinitionMap(ItemFamilyId.shears, SHEARS_ITEM_BY_METAL),
182 ...buildFamilyDefinitionMap(ItemFamilyId.shears, SHEARS_ITEM_BY_METAL),
183 [MetalItemId.silverBar]: Object.freeze({
184 ...BAR_ITEM_DEFINITIONS[MetalItemId.silverBar],
185 description: "Smelted silver. Work at a jewelering station."
186 }),
187 [MetalItemId.goldBar]: Object.freeze({
188 ...BAR_ITEM_DEFINITIONS[MetalItemId.goldBar],
189 description: "Smelted gold. Work at a jewelering station."
190 }),
183 [MetalItemId.electrumBar]: Object.freeze({
191 [MetalItemId.electrumBar]: Object.freeze({
184 ...BAR_ITEM_DEFINITIONS[MetalItemId.electrumBar],
192 ...BAR_ITEM_DEFINITIONS[MetalItemId.electrumBar],
185 description: "A pale gold-silver alloy. Fit for fine jewellery."
193 description: "A pale gold-silver alloy. Work at a jewelering station."
186 }),
194 }),
187 [MetalItemId.coal]: Object.freeze({
195 [MetalItemId.coal]: Object.freeze({
188 itemId: MetalItemId.coal,
196 itemId: MetalItemId.coal,