I ran into an issue involving my core damage formula. Nothing super complex; STR - DEF = Damage Done.
The thing is that several abilities use the same damage formula, and then vary on Efficiency. One ability might have 2.0 efficiency, while another might have .2 efficiency, etc.
The problem I'm running into is this:
I never want the Player to deal 0 points of damage on these particular abilities, and the Formula covers this by having 1 as a minimum value. However, since efficiency is calculated after the Formula, we run into attacks where an attack that should deal 1 point of damage, after adding .2 efficiency, deals 0 damage. (It also runs into Attack Attributes, which potentially may cut the final number even lower).
Is there a way to add a minimum value so I can always round up to at least 1 damage? I don't really want to create an exponential amount of additional formulas as a workaround. D:
tl;dr: can I force a minimum final value on ability AFTER factoring in the ability's efficiency and Attack Attributes, in some way?