Add support for tamed beast modifiers on Companion gems#2147
Open
ltogniolli wants to merge 2 commits into
Open
Add support for tamed beast modifiers on Companion gems#2147ltogniolli wants to merge 2 commits into
ltogniolli wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.