Skip to content

Apply an explicit zero for Corrupting Blood, Cruelty and Herald config values - #10609

Open
zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix/10586-config-explicit-zero
Open

zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix/10586-config-explicit-zero

Conversation

@zubSero

@zubSero zubSero commented Nov 27, 2026

Copy link
Copy Markdown

Fixes #10586.

Description of the problem being solved:

For a few config options 0 is a real value, but an entered 0 was treated the same as an empty field:

  • 0 Corrupting Cry or Bloodsoaked Banner stacks still counted one stack of Corrupting Blood.
  • 0 for the Cruelty override still gave the full 40%.

These options now use the existing countAllowZero type. With 0 stacks the Corrupting Blood from that skill is not applied at all, and Cruelty at 0 gives no bonus.

I also switched the Herald of Agony Virulence, Herald of Ash overkill and Herald of the Hive pressure fields, as the issue lists them. For those three 0 already gave the same numbers as an empty field, so nothing changes in the results. They can come out of this PR if you'd rather leave them alone.

This only covers the calculation while the 0 is entered. Keeping the 0 through save and reload is #10143, which #10354 takes care of.

This was part of #10585. I split it out so it can be reviewed on its own.

Steps taken to verify a working solution:

  • Added tests for 0 Corrupting Cry stacks, 0 Bloodsoaked Banner stacks against the default and a positive value, and 0 Cruelty. They fail on dev.

…g values

The six options now use countAllowZero, so an entered 0 is applied instead of falling back to the default. Zero Corrupting Cry or Bloodsoaked Banner stacks leaves the skill's Corrupting Blood unapplied.
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.

Configuration ignores explicit zero for Corrupting Blood, Cruelty and Herald values

1 participant