Commit Graph
2 Commits
Author SHA1 Message Date
Karrz1 db7a313d94 Bots: talent links of Wowhead's current Forever trees; bot builds keep the row rule
Checked against Wowhead (T4, 11-12): its Forever calculator writes the tree version as a
word now ("vkndmh"), and moves an older "v2" link to it. It then dropped talents from the
links our bots printed, because the bots held talents in rows their own tab had not opened
(an Arms warrior's Anger Management on 9 Arms points, a mage's Arcane Subtlety with no point
in the top row). The Forever trait data opens a row by the points of all three tabs, so the
game let our builds through; a player's talent frame and Wowhead do not.

- TalentCode: reads "v<word>" as well as "v<digit>" in front of the code; links are written
  with the current version ("vkndmh...<code>_t0") so they open as they are; RowsOpen checks
  the talent frame's row rule (5 points per row above, same tab).
- PlayerbotAPI: the talent walk keeps that rule for our builds too
  (Playerbot.ClassicTalents.RowsPerTab = 1, new; 0 = as before), and always for a code the
  owner gives. A bot that holds a build which breaks it is walked once more.
- Tests: the vkndmh links, and the bot builds Wowhead dropped talents from.
2026-11-12 17:04:11 +00:00
Karrz1 a799ec37ec Bots: change talents <Wowhead link> learns the owner's own build
Asked on Discord #bot-feedback (Dumpins, 11-12), as ike3 bots' talents order: make the
talents in the Wowhead Forever talent calculator, whisper the bot "change talents <link>"
(or the code alone) and it learns that build.

- Api/TalentCode.h: reads the calculator link or code (class word, "v2" version, the
  "_t0/..." tail skipped), checks it against the class's tabs (talents per tab, ranks,
  5 points per row, 51 points), writes a build back as a code and a link, and gives the
  levelling order (the tab with most points first, row by row).
- ClassicSpec: GetTalentTabs lays the class's three tabs out from the trait data the way
  the calculator does (tabs left to right, rows 600 apart, talents left to right; hidden
  off-grid nodes left out). Checked against the 70862 client data for all nine classes.
  The owner's code per bot (SetTalentCode / GetTalentCode), and InferSpecFromRanks so the
  rotation and role follow the build.
- PlayerbotAPI: apply_classic_talents learns the owner's code instead of our build when one
  is set; the old talents go, the ranks are bought in the levelling order and each new
  level's point goes on down the build.
- BotCommandParser: "change talents <link>" (also "set talents", "talents <link>"),
  "talents link" (the bot's talents as a calculator link), "talents default" (our builds
  again); setspec clears the code. Refusals say why (another class's link, a code that does
  not fit the trees). Russian replies in BotLocaleRu.
- OwnerRegistry + migration 0040: a companion's code is kept across relog and restart.
- .playerbot talentcode <Name> [<link or code> | clear] (GM, console): the class's tabs as
  laid out, sets the code, walks at once and prints the code the bot then holds, so it can
  be tested with world bots and nobody in game.
2026-11-12 14:22:09 +00:00