Project-Path-of-Exile-Wiki / PyPoE

Collection of Python Tools for Path of Exile
GNU General Public License v3.0
24 stars 21 forks source link

Pr/mod stats #127

Closed lvlvllvlvllvlvl closed 1 year ago

lvlvllvlvllvlvl commented 1 year ago

Abstract

Remove unnecessary stats from modifiers, fixing https://github.com/Project-Path-of-Exile-Wiki/PyPoE/issues/126

Action Taken

Modifiers that grant buffs contain their own stats as well as the stats granted by the buff in the mods.dat table. This change removes all stats granted by the buff from the modifier, so mods such as Nearby Enemies' Chaos Resistance is 0 will not also say "Chaos Resistance is Zero".

Caveats

This is a naive approach to this issue; there may be some other way that the game hides these stats, but it seems to work for all the cases that l am aware of.