Open Foks256 opened 2 years ago
Also it could be divided into two functions for item multipliers and character specific multipliers.
there is no such thing as a damage multiplier. damage is calculated on a continuous basis from start to finish. for example, picking up sacred heart after already having magic mushroom does not "change your damage multiplier". it just increases your damage because an additional if statement is evaluated.
not quite; read https://bindingofisaacrebirth.fandom.com/wiki/Damage#Damage_Multipliers for more info but the system is quite a bit more complicated than that:
Some items multiply damage rather than simply adding to it. Damage multipliers do not simply multiply the character's damage once; the damage stat is constantly recalculated and the damage multipliers are multiplied with the end result.
the wiki's formula does not reflect what the actual C++ code is doing
A function that just returns the current damage multiplier would be very handy.