exile-center / better-trading

QoL improvements for the official PathOfExile trading site.
36 stars 7 forks source link

[Request] Percentile on Fractured Bases #136

Open pfeigl opened 1 year ago

pfeigl commented 1 year ago

I'm often searching for fractured bases and would like to buy the ones with a good percentile, meaning the ones which are at the higher end of the possible values.

This is especially true for weapons with elemental damage rolls.

The required info is all there in the HTML and could be easily calculated from there and updated into the DOM. Here is an example result from a spine bow search:

<div class="fracturedMod" data-mod="0">
    <span class="lc l pr">
        P2
        <span class="d">&nbsp;[137—188 to 279—325]</span>
    </span>
    <span class="lc s" data-field="stat.fractured.stat_709508406">Adds 160 to 281 Fire Damage</span>
    <span class="lc r pr">
        <span class="d">Cremating (≥74)</span>
    </span>
</div>

Just to be clear what I want. The current roll is (160 + 281) / 2 = 220,5. The max roll would be (188 + 325) / 2) = 256,5. The min roll is (137 + 279) / 2 = 208 The percentile of the current roll is 100 / (max - min) * (current - min) (in this example 25,77%)

I'M not sure if you accept PR and if this feature would be desirable, but I could add it myself if wanted.