mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
089a10a056
* Reorganize skills * Minor fixes
SkillUpdater
One-shot console tool that regenerates Daybreak.Shared/Models/Guildwars/Skill.g.cs
from https://wiki.guildwars.com. The wiki is the single source of truth for skill
data — this tool does not read the existing Skill.g.cs.
Run
dotnet run --project Tools/SkillUpdater
What it does
- Enumerates every skill page via the MediaWiki API
(
generator=categorymembersover the five campaign categoriesCore_skills,Prophecies_skills,Factions_skills,Nightfall_skills,Eye_of_the_North_skills) withprop=revisions&rvslots=main&rvprop=content. - Filters to pages containing a
{{Skill infobox}}template. - Parses each infobox via the tool-local
WikiSkillParser. - Resolves the canonical CDN URL for each skill icon by batched
prop=imageinfoqueries — preferring the high-resolution<Name> (large).jpg, falling back to<Name>.jpg, leaving the URL empty when neither file exists. - Writes a sorted, grouped
Skill.g.cs.