doomeer / kalandralang

A programming language for Path of Exile crafting recipes.
MIT License
57 stars 4 forks source link

Reforge rare item: fix maximum affix count generation #9

Closed raphaelrieuhelft closed 2 years ago

raphaelrieuhelft commented 2 years ago

Currently, using chaos on a jewel always generates four modifiers, which is clearly incorrect.

I've also tried to look into more precise weights for mod counts, here are the values I ended up using:

I've also looked into the code of the craftofexile simulator and it seems to use the same values.

doomeer commented 2 years ago

Thank you, that's a great contribution! I need to test a bit before merging but it looks good to me (aside from the small comment above).

raphaelrieuhelft commented 2 years ago

Oh no. Good catch!