1"""The nine WoW: Forever classes and the guides the guild recommends for each, shown in every class hall.
2
3Edit ``CLASS_GUIDES`` to change the recommendations; the hall posts update at the next sweep. Each site fills one
4row of link buttons, so keep it to five guides per site per class.
5"""
6
7from dataclasses import dataclass
8from typing import TYPE_CHECKING, Final
9
10if TYPE_CHECKING:
11 from collections.abc import Mapping
12
13WOW_CLASSES: Final = ("Druid", "Hunter", "Mage", "Paladin", "Priest", "Rogue", "Shaman", "Warlock", "Warrior")
14"""Class names as Blizzard's patch notes and the guild's class roles spell them."""
15
16_METHOD: Final = "https://www.method.gg/wow-forever"
17_MOBALYTICS: Final = "https://mobalytics.gg/wow-forever"
18
19
20@dataclass(frozen=True, slots=True)
[docs]
21class Guide:
22 """One recommended guide: the site it's on, what it covers and where it lives."""
23
24 site: str
25 label: str
26 url: str
27
28
29def _method(*specs: tuple[str, str], wow_class: str) -> tuple[Guide, ...]:
30 """Method's spec guides (``(label, slug)`` under ``/class-guides/``) and its leveling guide for ``wow_class``."""
31 leveling_url = f"{_METHOD}/wow-forever-{wow_class.lower()}-leveling-guide-and-talents"
32 return (
33 *(Guide("Method", label, f"{_METHOD}/class-guides/{slug}") for label, slug in specs),
34 Guide("Method", "Leveling", leveling_url),
35 )
36
37
38def _mobalytics(*specs: tuple[str, str], wow_class: str) -> tuple[Guide, ...]:
39 """Mobalytics' spec guides (``(label, slug)`` under ``/classes/``) and its page of every ``wow_class`` guide."""
40 all_url = f"{_MOBALYTICS}/{wow_class.lower()}-guides"
41 return (
42 *(Guide("Mobalytics", label, f"{_MOBALYTICS}/classes/{slug}") for label, slug in specs),
43 Guide("Mobalytics", f"All {wow_class} guides", all_url),
44 )
45
46
47CLASS_GUIDES: Final[Mapping[str, tuple[Guide, ...]]] = {
48 "Druid": (
49 *_method(
50 ("Balance", "balance-druid"),
51 ("Feral (Cat)", "feral-dps-druid"),
52 ("Feral (Bear)", "feral-tank-druid"),
53 ("Restoration", "restoration-druid"),
54 wow_class="Druid",
55 ),
56 *_mobalytics(
57 ("Balance", "balance-druid-guide"),
58 ("Feral (Cat)", "feral-druid-guide"),
59 ("Feral (Bear)", "feral-druid-tank-guide"),
60 ("Restoration", "restoration-druid-guide-progress"),
61 wow_class="Druid",
62 ),
63 ),
64 "Hunter": (
65 *_method(
66 ("Beast Mastery", "beast-mastery-hunter"),
67 ("Marksmanship", "marksmanship-hunter"),
68 ("Survival", "survival-hunter"),
69 wow_class="Hunter",
70 ),
71 *_mobalytics(
72 ("Beast Mastery", "beast-mastery-hunter-guide-progress"),
73 ("Marksmanship", "marksmanship-hunter-guide"),
74 wow_class="Hunter",
75 ),
76 ),
77 "Mage": (
78 *_method(("Arcane", "arcane-mage"), ("Fire", "fire-mage"), ("Frost", "frost-mage"), wow_class="Mage"),
79 *_mobalytics(("Arcane", "arcane-mage-guide-progress"), ("Frost", "frost-mage-guide"), wow_class="Mage"),
80 ),
81 "Paladin": (
82 *_method(
83 ("Holy", "holy-paladin"),
84 ("Protection", "protection-paladin"),
85 ("Retribution", "retribution-paladin"),
86 wow_class="Paladin",
87 ),
88 *_mobalytics(
89 ("Protection", "protection-paladin-guide"),
90 ("Retribution", "retribution-paladin-guide"),
91 wow_class="Paladin",
92 ),
93 ),
94 "Priest": (
95 *_method(("Holy", "holy-priest"), ("Shadow", "shadow-priest"), wow_class="Priest"),
96 *_mobalytics(
97 ("Discipline", "discipline-priest-guide-progress"),
98 ("Shadow", "shadow-priest-guide-progress"),
99 wow_class="Priest",
100 ),
101 ),
102 "Rogue": (
103 *_method(
104 ("Assassination", "assassination-rogue"),
105 ("Combat", "combat-rogue"),
106 ("Subtlety", "subtlety-rogue"),
107 wow_class="Rogue",
108 ),
109 *_mobalytics(wow_class="Rogue"),
110 ),
111 "Shaman": (
112 *_method(
113 ("Elemental", "elemental-shaman"),
114 ("Enhancement", "enhancement-shaman"),
115 ("Restoration", "restoration-shaman"),
116 wow_class="Shaman",
117 ),
118 *_mobalytics(
119 ("Elemental", "elemental-shaman-guide"),
120 ("Enhancement", "enhancement-shaman-guide"),
121 ("Restoration", "restoration-shaman-guide"),
122 wow_class="Shaman",
123 ),
124 ),
125 "Warlock": (
126 *_method(
127 ("Affliction", "affliction-warlock"),
128 ("Demonology", "demonology-warlock"),
129 ("Destruction", "destruction-warlock"),
130 wow_class="Warlock",
131 ),
132 *_mobalytics(
133 ("Affliction", "affliction-warlock-guide"),
134 ("Demonology", "demonology-warlock-guide"),
135 ("Destruction", "destruction-warlock-guide"),
136 wow_class="Warlock",
137 ),
138 ),
139 "Warrior": (
140 *_method(
141 ("Arms", "arms-warrior"),
142 ("Fury", "fury-warrior"),
143 ("Protection", "protection-warrior"),
144 wow_class="Warrior",
145 ),
146 *_mobalytics(("Protection", "protection-warrior-guide-progress"), wow_class="Warrior"),
147 ),
148}