I'm currently making a character that has a familiar flowing them and if the player shoots a bullet and it goes through this familiar, the damage will be doubled, however the damage will multiply with each time a bullet hits this familiar cause the weapon to do very high damage if the player keeps shooting through the familiar.
Is there a way to make each copy of a bullet that is spawned to work independently from each other so that the multiply will increase the damage that goes through the familiar whilst keeping the damage the same for every other copy of that bullet?
I don't want to use clamp as there are different multipliers that can affect the weapons damage output.
I also don't want to create a separate variable for each weapon (for if the bullet connects with the familiar) as the more multiplies I have the more new variables I'll need to create.
Any advise is much appreciated.