Skip to content

Add companion beast and attack controls to the Skills tab#2165

Open
ltogniolli wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
ltogniolli:companion-attack-full-dps
Open

Add companion beast and attack controls to the Skills tab#2165
ltogniolli wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
ltogniolli:companion-attack-full-dps

Conversation

@ltogniolli

Copy link
Copy Markdown
Contributor

Builds upon PR#2147

Adds supports for a beast selector for companions in the skill panel, lists beasts attacks, with rich tooltips, and allows each one to be selected for Full DPS calculations independently, and tweaks the display format of minion damage on the full dps report.

After screenshot:

image image image image

Rare tamed beasts carry randomly rolled monster modifiers, returned by the
character API as "tamedBeastProperties". These were previously discarded on
import, so companions were modeled only as their base monster.

- Import: parse tamedBeastProperties into a per-gem modifier list, resolving
  mod ids from "[ModId |Display]" tokens with a display-line fallback for
  nameplate-only lines; user enable/disable choices survive re-import
- Data: new generated Data/TamedBeastMods.lua (export script iterates the
  Monster-domain mod pool, naming entries from KeywordPopups/ArchnemesisMods
  and resolving effects through SkillStatMap); mods with a positive spawn
  weight are flagged rollable and offered in the UI
- Calcs: enabled modifiers apply to the companion minion's modDB, gated on
  the active skill being a Companion so stale lists never leak
- UI: "Beast Modifiers" section in the socket group editor with per-row
  selection dropdown, enable checkbox, remove button and calc-comparison
  tooltips, mirroring the gem slot layout
- Persistence: modifiers saved as TamedBeastMod child elements of Gem;
  old builds are unaffected
Tamed beasts roll "Monster*" mods in the wild, but the itemised companion
carries the standalone "PlayerMonster*" twin, which is what the character
API reports. The exporter now enumerates ArchnemesisMods and emits only
Player mods whose beast-side twin is a rollable prefix/suffix, resolving
display text through the twin and replacing the rollable flag with the
twin's spawn weight table.

Mods whose spawn weights can never roll on the selected beast's tags
(e.g. Haste Aura has fast_movement = 0) are ignored by calcs and flagged
in red on the skill panel and the selection tooltip.

Spectres.lua picks up "boss" monster tags for boss beasts so boss-gated
mods (spawn weight boss = 0) validate correctly; the exporter change
producing them ships separately.
The socket group panel for Companion gems gains a beast selector and
the list of the beast's attacks. Each attack can be included in Full
DPS as its own entry, instead of only the active attack counting:
checking an attack pulls the group into Full DPS, unchecking the last
one removes it, and enabling Include in Full DPS selects the first
attack. The selection is stored per gem by skill id, so it survives
beast swaps and falls back to the active attack when nothing matches.

Full DPS minion entries now lead with the attack name and show the
owning skill as their source line, like the best-ailment entries.

Hovering an attack shows its skill data in the player gem tooltip
style: tag line, cost, cooldown with stored uses, attack speed, time
and damage, crit chance, description, and stat description lines
coloured by calc support. Labels gain opt-in tooltip hosting for this;
unconfigured labels stay mouse-transparent.

Changing the beast renames the Companion gem and refreshes the gem
slot display, from both the Skills tab and the sidebar dropdowns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant