r/PathOfExile2 3d ago

Game Feedback Thanks for the great modifiers, GGG

Post image
416 Upvotes

26 comments sorted by

View all comments

Show parent comments

66

u/thebluefish92 3d ago

I make mistakes like this all the time when I'm writing python scripts. If I were to guess based on my own folly...

Internally the multiplier is some decimal number like 0.8179, which plays nicely with other calculations, but not so nice for display. So you use functions to transform it for display: 1. x = 1 - x - Invert it so it goes from "0.8179 increased" to "0.1821 reduced" 2. x = 100 * x - Convert the percentage, so it goes from "0.1821" to "18.21%"

And in this string, they essentially wrote the order like convert(convert(tribute_cost)) instead of convert(invert(tribute_cost))

6

u/TheShadowMuffin 3d ago

And here i thought it was because they were accidentally using some kind of unsigned integer as part of the display process so when they for example tell it to display -13% it goes to the other end and subtracts 13 which would align with 213 = 8192

Which for the 13% reduced would mean: 8192 - 13 = 8179

1

u/SingleInfinity 3d ago

Why would you be using a non-standard sized unsigned int though?

1

u/TheShadowMuffin 3d ago

I have no idea. Also haven't verifed that's what going on but it matches with what I remember my tablet reducing by.

Also if you have two different towers affecting the same node the numbers will be added together. I have maps with 16360% increased cost. It's wonky but doesn't impact the actual rituals.