Talk:Damage Scaling

From The Binding of Isaac: Rebirth Wiki
Jump to navigation Jump to search

Confusion about the formula

In the code, a comment on the variable reduction says "high value = high reduction", but the formula for final damage, float damage = tear_damage * reduction;, would suggest that high value of reduction would lead to high damage, which means low damage reduction. How does one make sense of this? --24.22.244.6 07:30, 8 October 2020 (UTC)

I tried to run some numbers and compare them to the demo video, couldn't get anything useful out of the formulas with the damage reduction always being a large enough multiplier so it can't just be a division swapped with multiplication. There has to be an error or something missing, which means the pseudocode probably has no use and could be removed, as long as the actual gist of it is preserved. --Frionil (talk) 12:07, 8 October 2020 (UTC)

So is the actual exact formula unknown? MysterymasterX (talk) 23:25, 6 April 2021 (UTC)

We had a formula extracted from the game itself, but there was something wrong with the version written here, giving nonsensical results. I suppose the answer is that unless someone does a code dive and can provide us a fixed version, we don't have one. --Frionil (talk) 23:28, 6 April 2021 (UTC)