Wet-Boys / LookingGlass

A QoL UI mod that exposes statistics for items and the player, adjusts the size and features of command and scrapper menus, and much more. Fully open source and compatible with RiskUI!
https://thunderstore.io
GNU Lesser General Public License v3.0
9 stars 5 forks source link

Calculate probability for items with proc coefficient #81

Open Warmek opened 4 days ago

Warmek commented 4 days ago

This PR is a continuation of https://github.com/Wet-Boys/LookingGlass/pull/79. It aims to add to the description of a skill:

showcase

I changed how functions calculating item probabilities are called to include Proc Coefficient and to take luck (float) as an argument instead of passing whole CharacterMaster. This was necessary to calculate item count needed to cap, as luck in this case does not matter.

Warmek commented 4 days ago

(The screenshot shows data with 1 clover in the inventory)