Crystal Project

Crystal Project

View Stats:
Vitrias Apr 11, 2022 @ 1:29pm
How do the damage formulas for physical attacks work?
Trying to figure out how the formulas for the physical attacks are actually calculated. Almost all of them that I've seen always take a form similar to:

Flat number (optional) + Attack + Attack x Stat + Stat

with each instance of attack or a stat (str, dex, etc.) potentially being multiplied by a number. (0.5, 2.0, etc.) Assuming that the x is multiplication though, that would result in really huge numbers for any reasonably large amount of attack and stat, which is never reflected by teh actual damage. As an example, the formula for Backstab is:

50 + 2.0 Atk + Atk x Dex + Dex

For my rogue with 76 dex and 115 attack, the final damage value given for Backstab is 443. However, just the Atk x Dex portion of that formula would result in 8,740 damage. I have to assume that the x operation ISN'T multiplication, but haven't been able to figure out what it is or what the order of operations would be to get the 443 result.

Hoping someone (or even the dev) can shed some light on this. I LOVE when games let you see how the numbers actually work, but not being able to figure out the math here is triggering my OCD =)
< >
Showing 1-6 of 6 comments
Mechalibur Apr 11, 2022 @ 2:04pm 
It's Atk * dex/100 for the middle part
Turtle Apr 11, 2022 @ 4:22pm 
yeah all the multiplications in the formulas are reading the latter value as a percentage

it's not clear, so i can understand why you needed to ask
Vitrias Apr 11, 2022 @ 4:24pm 
Math checks out, thanks! And yea, would be nice if it was represented in the formulas somehow!
River Running Games  [developer] Apr 12, 2022 @ 7:52pm 
Yeah, I never really liked how this wasn't clear. The problem I was having was that a lot of formulas are too long. I need to find a better way to abbreviate them.
Admiral Billy Apr 12, 2022 @ 9:15pm 
In the case of dividing by 100 at least, you could write it as something like "dex%", so the formula would be atk + atk * dex% + dex. That being said, this won't work for anything that *isn't* divided by 100 heh.

Something else you could do is make the font size a bit smaller and use a second line for abbreviation explanations. E.g. the formula might be something like:

Atk + Atk x Dex* + dex
*Dex divided by 100

although this isn't the most elegant either. But yeah, I'm not sure if anything uses a formula beyond dividing by 100 like that so maybe a simple % sign could do the job. If the values work out nicely too, you could always talk in terms of %s regardless, e.g. dividing by 50 = 2 x dex%.
Last edited by Admiral Billy; Apr 12, 2022 @ 9:16pm
Mechalibur Apr 12, 2022 @ 9:34pm 
Maybe have a duck explain it
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Apr 11, 2022 @ 1:29pm
Posts: 6