Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Percentile on Fractured Bases #136

Open
pfeigl opened this issue Sep 21, 2023 · 0 comments
Open

[Request] Percentile on Fractured Bases #136

pfeigl opened this issue Sep 21, 2023 · 0 comments

Comments

@pfeigl
Copy link

pfeigl commented Sep 21, 2023

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.

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

No branches or pull requests

1 participant