Drop bronze shears, fix spell favourites on login, add fairy silk mob.
Bronze shears matched cotton with nothing to shear; favourites now render without opening the spell panel; fairies drop fairy silk (70%) with temp sprite art.
@@ -48,10 +48,9 @@ export function initSpells ({ socket, MessageType, getSkillLevel } = {})
48
48
}
49
49
}
50
50
if (changed || !panel.hidden)
51
{
52
renderList();
53
renderBar();
54
}
51
{ renderList(); }
52
/** Favourites sit outside the panel — always sync so they show after login. */
53
renderBar();
55
54
}
56
55
57
56
function disarmLocal ()
@@ -48,10 +48,9 @@ export function initSpells ({ socket, MessageType, getSkillLevel } = {})48
}48
}49
}49
}50
if (changed || !panel.hidden)50
if (changed || !panel.hidden)51
{51
{ renderList(); }52
renderList();52
/** Favourites sit outside the panel — always sync so they show after login. */53
renderBar();53
renderBar();54
}55
}54
}56
55
57
function disarmLocal ()56
function disarmLocal ()@@ -95,8 +95,9 @@ test("shears are magenta-tinted metal and craft from one bar", () =>
95
95
assert.deepEqual(recipe.inputs, [{ itemId: ItemId.ironBar, quantity: 1 }]);
96
96
assert.equal(
97
97
recipesForStation(CraftingStationId.anvil).filter((r) => r.craftGroup === "shears").length,
98
7
98
6
99
99
);
100
assert.equal(recipeDefinition("shears-bronze"), null);
100
101
});
101
102
102
103
test("sheep and cashmere goat are shearable with fleece/shorn sprites", () =>
@@ -110,6 +111,18 @@ test("sheep and cashmere goat are shearable with fleece/shorn sprites", () =>
110
111
assert.equal(mobSpriteName(MobId.cashmereGoat, "fleece"), "mob:cashmere-goat:fleece");
111
112
});
112
113
114
test("fairy reuses sprite art and drops fairy silk", () =>
115
{
116
const fairy = mobDefinition(MobId.fairy);
117
assert.equal(fairy.spriteKey, "sprite");
118
assert.equal(mobSpriteName(MobId.fairy), "mob:sprite:sprite");
119
assert.equal(fairy.drops.length, 1);
120
assert.equal(fairy.drops[0].itemId, ClothItemId.fairySilk);
121
assert.equal(fairy.drops[0].chance, 0.7);
122
assert.equal(MetalItemId.bronzeShears, undefined);
123
assert.equal(itemDefinition(MetalItemId.ironShears)?.equipment?.kind, EquipmentKind.shears);
124
});
125
113
126
test("flax needs steel-or-better clippers; linen fibre is named Flax", () =>
114
127
{
115
128
assert.equal(itemDefinition(ClothItemId.linen).displayName, "Flax");
@@ -95,8 +95,9 @@ test("shears are magenta-tinted metal and craft from one bar", () =>95
assert.deepEqual(recipe.inputs, [{ itemId: ItemId.ironBar, quantity: 1 }]);95
assert.deepEqual(recipe.inputs, [{ itemId: ItemId.ironBar, quantity: 1 }]);96
assert.equal(96
assert.equal(97
recipesForStation(CraftingStationId.anvil).filter((r) => r.craftGroup === "shears").length,97
recipesForStation(CraftingStationId.anvil).filter((r) => r.craftGroup === "shears").length,98
798
699
);99
);100
assert.equal(recipeDefinition("shears-bronze"), null);100
});101
});101
102
102
test("sheep and cashmere goat are shearable with fleece/shorn sprites", () =>103
test("sheep and cashmere goat are shearable with fleece/shorn sprites", () =>@@ -110,6 +111,18 @@ test("sheep and cashmere goat are shearable with fleece/shorn sprites", () =>110
assert.equal(mobSpriteName(MobId.cashmereGoat, "fleece"), "mob:cashmere-goat:fleece");111
assert.equal(mobSpriteName(MobId.cashmereGoat, "fleece"), "mob:cashmere-goat:fleece");111
});112
});112
113
114
test("fairy reuses sprite art and drops fairy silk", () =>115
{116
const fairy = mobDefinition(MobId.fairy);117
assert.equal(fairy.spriteKey, "sprite");118
assert.equal(mobSpriteName(MobId.fairy), "mob:sprite:sprite");119
assert.equal(fairy.drops.length, 1);120
assert.equal(fairy.drops[0].itemId, ClothItemId.fairySilk);121
assert.equal(fairy.drops[0].chance, 0.7);122
assert.equal(MetalItemId.bronzeShears, undefined);123
assert.equal(itemDefinition(MetalItemId.ironShears)?.equipment?.kind, EquipmentKind.shears);124
});125
113
test("flax needs steel-or-better clippers; linen fibre is named Flax", () =>126
test("flax needs steel-or-better clippers; linen fibre is named Flax", () =>114
{127
{115
assert.equal(itemDefinition(ClothItemId.linen).displayName, "Flax");128
assert.equal(itemDefinition(ClothItemId.linen).displayName, "Flax");