diff --git a/src/pages/skills.tsx b/src/pages/skills.tsx index 9740a3a..24a9994 100644 --- a/src/pages/skills.tsx +++ b/src/pages/skills.tsx @@ -33,6 +33,7 @@ import { const reqs: Record = { "Singular Talent": 1, // platform specific "Master Of The Five Ways": 5, // platform specific + "Well-Read": 19, }; export default function SkillsMasteryPowers() { @@ -49,6 +50,7 @@ export default function SkillsMasteryPowers() { if (activePlayer) { const skills = new Set(["Singular Talent", "Master Of The Five Ways"]); const quests = new Set(["Gofer", "A Big Help"]); + const powers = new Set(["Well-Read"]); if (skills.has(name)) { // use maxLevelCount and compare to reqs @@ -64,6 +66,11 @@ export default function SkillsMasteryPowers() { else { additionalDescription = ` - ${reqs[name] - questsCompleted} left`; } + } else if (powers.has(name)) { + if (playerPowers.size >= reqs[name]) completed = true; + else { + additionalDescription = ` - ${reqs[name] - playerPowers.size} left`; + } } } @@ -474,6 +481,25 @@ export default function SkillsMasteryPowers() {
+
+ {Object.values(achievements) + .filter((achievement) => + achievement.description.includes("power book"), + ) + .map((achievement) => { + const { completed, additionalDescription } = + getAchievementProgress(achievement.name); + + return ( + + ); + })} +
{Object.entries(powers) .filter(([key, power]) => key.includes("Book_"))