Add Magic Missile as a tier-2 attack spell with spellbook.
Gives Magic an early non-elemental damage option at the same gate as Dark, learnable from item 402.
@@ -0,0 +1,4 @@
1
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
2
<rect width="32" height="32" rx="6" fill="#4a7a98"/>
3
<text x="16" y="21" text-anchor="middle" fill="#f0ece0" font-size="11" font-family="Segoe UI,sans-serif" font-weight="600">MM</text>
4
</svg>
@@ -0,0 +1,4 @@1
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">2
<rect width="32" height="32" rx="6" fill="#4a7a98"/>3
<text x="16" y="21" text-anchor="middle" fill="#f0ece0" font-size="11" font-family="Segoe UI,sans-serif" font-weight="600">MM</text>4
</svg>@@ -51,7 +51,8 @@ test("magic unlocks use tier skill gates, not every level", () =>
51
51
{
52
52
assert.deepEqual(skillUnlockMessages(SkillId.magic, 2, 3), []);
53
53
const atTen = skillUnlockMessages(SkillId.magic, 9, 10);
54
assert.ok(atTen.some((line) => /cast Dark/i.test(line) || /Birch staves/i.test(line)));
54
assert.ok(atTen.some((line) => /cast Dark/i.test(line) || /Magic Missile/i.test(line) || /Birch staves/i.test(line)));
55
assert.ok(atTen.some((line) => /Magic Missile/i.test(line)));
55
56
const atTwenty = skillUnlockMessages(SkillId.magic, 19, 20);
56
57
assert.ok(atTwenty.some((line) => /tier 3|Firebolt|Poison|Tinders/i.test(line)));
57
58
assert.equal(skillUnlockMessages(SkillId.magic, 3, 4).filter((l) => /cast/i.test(l)).length, 0);
@@ -51,7 +51,8 @@ test("magic unlocks use tier skill gates, not every level", () =>51
{51
{52
assert.deepEqual(skillUnlockMessages(SkillId.magic, 2, 3), []);52
assert.deepEqual(skillUnlockMessages(SkillId.magic, 2, 3), []);53
const atTen = skillUnlockMessages(SkillId.magic, 9, 10);53
const atTen = skillUnlockMessages(SkillId.magic, 9, 10);54
assert.ok(atTen.some((line) => /cast Dark/i.test(line) || /Birch staves/i.test(line)));54
assert.ok(atTen.some((line) => /cast Dark/i.test(line) || /Magic Missile/i.test(line) || /Birch staves/i.test(line)));55
assert.ok(atTen.some((line) => /Magic Missile/i.test(line)));55
const atTwenty = skillUnlockMessages(SkillId.magic, 19, 20);56
const atTwenty = skillUnlockMessages(SkillId.magic, 19, 20);56
assert.ok(atTwenty.some((line) => /tier 3|Firebolt|Poison|Tinders/i.test(line)));57
assert.ok(atTwenty.some((line) => /tier 3|Firebolt|Poison|Tinders/i.test(line)));57
assert.equal(skillUnlockMessages(SkillId.magic, 3, 4).filter((l) => /cast/i.test(l)).length, 0);58
assert.equal(skillUnlockMessages(SkillId.magic, 3, 4).filter((l) => /cast/i.test(l)).length, 0);