Skip to content

feat: omit scalings that apply at a rate of zero - #437

Open
Vergir wants to merge 1 commit into
developfrom
feature/trim-zero-rate-scalings
Open

feat: omit scalings that apply at a rate of zero#437
Vergir wants to merge 1 commit into
developfrom
feature/trim-zero-rate-scalings

Conversation

@Vergir

@Vergir Vergir commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Don't write scaling to ability-data / ability-cards if it is zero.

Since scaling: 0 is the same as no scaling (I've checked all abilities to make sure it's true) we can just omit it to say the same thing in less space, and it means an editor reading ability-cards.json can know a scaling is present when they see it, rather than checking its value before believing it

Also items.py has left them out of item data all along, so this brings the two parsers into line.

Also it would omit weird zero scalings from ability cards for Doorway and Fixation and make them look closer to their in-game counterparts.

Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data

A scale function with m_flStatScale of 0 is how the game files opt an
attribute out of a stat it would otherwise grow with, eg. Card Trick's
0.6s cooldown ignoring cooldown reduction, or Naptime's channel time
ignoring ability duration. Exporting those is accurate but says nothing:
a rate of zero and no scale at all describe the same attribute.

Leaving them out makes the data say the same thing in less space, and
means a reader can take a Scale at face value rather than checking its
rate before believing it. items.py has left them out of item data all
along, so this also brings the two parsers into line.

Nine attributes keep their value and lose a scale that claimed nothing,
including Doorway's throw distance, where only the zero spirit half goes
and the range it really grows with stays. The other 24 held a zero value
as well as a zero rate, so they fall out of the output entirely, as
every other zero-valued attribute already does.
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