AnthonyWhitakerJr / WFReliquary

Companion app for Warframe game. Allows users to anticipate results of fissure missions.
1 stars 1 forks source link

Update odds of reward for duplicates. #2

Closed AnthonyWhitakerJr closed 8 years ago

AnthonyWhitakerJr commented 8 years ago

When there are multiple relics with the same reward (duplicates/overlap), the drop odds of rewards should be updated accordingly. Need to find formula for combining probabilities.

AnthonyWhitakerJr commented 8 years ago

Current implementation is bugged: updating a reward updates all similar rewards as well potentially throwing off any calculations beyond the first pair. This is a core data issue, need to investigate how to grab individual instances.

AnthonyWhitakerJr commented 8 years ago

First attempt to solve will be setting up drop odds as a transient property. This will, however, give it public write access outside its designated methods. Also unknown is how transient variables persist on refreshes.

AnthonyWhitakerJr commented 8 years ago

Fixed instance bug by creating another layer of abstraction.