PoeStack/poestack-sage

"Total Div Value" is calculated wrong with a "Min Total Value" set and "Reduce Stacks" enabled

Opened this issue · 0 comments

Describe the bug
If you toggle "Reduce Stacks" and use "Min Total Value" the "Total Div Value" could be calculated incorrectly.
Example items with which the bug appear frequently:
chaos orbs, sextants, stacked decks, ...

Basically if you use the Reduced Stacks option, you see like 2div worth of chaos.
if you say your "Min Total Value" is like 215c, then all those chaos orbs and sextants won't be counted into the total.
Since the tool just looks at each and every stack itself and not the "Reduced Stacks".

To Reproduce
Setup steps to do:

  1. open a simple/quad stash tab
  2. put in like 12 or more 20 chaos stacks in it

Steps to reproduce the behavior:

  1. Go to https://poestack.com/poe/stash-view?league=Affliction
  2. Click/Select the stash with the chaos in it
  3. Select the "Reduce Stacks" toggle
  4. Set a "Min Total Value" of 20
  5. ERROR: you see a "Total Div Value" of 0

Expected behavior
The chaos orbs should be counted into the "Total Div Value" when you enable the "Reduce Stacks" if they all together are in reach of the "Min Total Value"

Screenshots
19
20

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chrome
  • Version Version 120.0.6099.200 (Official Build) (64-bit)

Additional context
I wrote a simple JS that grabbed the "Total Value" for each thing and added them up.
After a 20 map session the difference when you selected a min-value of 215 was ~50div
Because all the sextants, chaos, stacked decks and voidborn reliquary keys where not counted into it.

Also PuzzleBoxes are not getting fetched atm, would be nice if they where.