Skip to content

Conversation

@sida-wang
Copy link
Contributor

Update skill export to following schema

skills[GrantedEffectId] = {
name: string
baseTypeName: string
color: number
levels: table
description: string
weaponTypes: table
statDescriptionScope: string
castTime: number
statSets: table
statSets table objects
{
label: string
baseEffectiveness: number
incrementalEffectiveness: number
damageIncrementalEffectiveness: number
baseFlags: table
constantStats: table
stats: table
levels: table

Currently not ready for merge as I'm working through logic in the rest of the app to handle the new format of skills

Copy link
Contributor

@LocalIdentity LocalIdentity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still has some issues but skills at least work now so we can start implementing them on dev

@LocalIdentity LocalIdentity merged commit 4eea0c6 into PathOfBuildingCommunity:dev Jan 8, 2025
@LocalIdentity LocalIdentity changed the title Skills export Change skills to use new stat set format Jan 8, 2025
majochem added a commit to majochem/PathOfBuilding-PoE2 that referenced this pull request Aug 25, 2025
`addFlags` functionality was accidentally broken in PathOfBuildingCommunity#62 because
`mainSkillFlags` and `calcSkillFlags` variables were introduced but
seemingly later made redundant to use the original `skillFlags`.

However the `addFlags` section still checked the old variables which were
now `nil`. This wasn't a problem until now, because the PoE2 skills had
not used `addFlags` yet.
LocalIdentity pushed a commit that referenced this pull request Sep 2, 2025
* Add 'totem' flag to Vile Effusion (Dark Effigy)

The 'totem' flag was missing for the damaging part of the skill

* Fix `addFlags` parsing

`addFlags` functionality was accidentally broken in #62 because
`mainSkillFlags` and `calcSkillFlags` variables were introduced but
seemingly later made redundant to use the original `skillFlags`.

However the `addFlags` section still checked the old variables which were
now `nil`. This wasn't a problem until now, because the PoE2 skills had
not used `addFlags` yet.

* Remove "Base" mod for "ActiveTotemLimit"

`CalcSetup` previous added +1 to "ActiveTotemLimit" as a base, but
totem skills in PoE2 always come with "base_number_of_totems_allowed"
values, which led to the values always being 1 too high

* Let "Ancestral Warrior Totem" add the `totem` flag

* Get totem stats from "base" totem skill

This fixes previous problems that were caused by totem skills consisting
of multiple parts, such as inability to get correct skillTotemId and
level requirement for the "active" portion of a totem skill.

The skill (or support) that provides the baseTotem data is now
identified within `CalcActiveSkill`

Examples:
- "Shockwave Totem" -> "Wave" would not show correct totem stats
- "Sunder" attached to "Ancestral Warrior Totem" would not show any
  totem stats at all

* Reword "totemification" to "totemified"

* Get rid of "totemified"

* Add support for Mortar Cannon

Adds support for a few stats on mortar cannon and ancestral totem too

---------

Co-authored-by: majochem <majochem@users.noreply.github.com>
Co-authored-by: LocalIdentity <localidentity2@gmail.com>
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.

3 participants