m_fDefense and DefDmgMult values

3 posts / 0 new
Last post
#1
m_fDefense and DefDmgMult values

m_fDefense is literally defense, higher values decreases damage received.
where as DefDmgMult is received damage multiplier, normally this is used with a positive value.

anyway, how does these values scale?
does m_fDefense with a value of +1 halve the damage taken?
does DefDmgMult with a value of +1 double the damage taken?
how about DefDmgMult with a value of -1?

edit: also how does multiple m_fDefense or DefDmgMult stack?
e.g. frail (0.5) and exposed weakness (0.5) both adds DefDmgMult.

bump for info

Been a while, so you're relying on my memory and note-checking :)

m_fDefense: Controls chance to hit. Assume 1.0 (100%) chance by default, minus m_fDefense score when checking to-hit chance. So +1 is 0% chance (1 - 1 = 0), -1 is 200% chance (1 - -1 = 2) to hit.

Note that visibility, range, and other factors apply after this base value is calculated. Also, the game pegs min chance at 5%, so there's always a chance of a hit.

DefDmgMult: Affects damage applied after armor reduces value. 1.0 (100%) by default. So if DefDmgMult is 0.5, the damage is 50%. Increasing DefDmgMult by +1 means double damage (1 + 1 = 2). -1 would result in 0% damage. Anything lower would...heal, I guess?

I'm pretty sure stacking is just straight addition. So frail + exposed weakness would result in a total change of 0.5 + 0.5 = 1.0, meaning such a target gets double damage (1.0 + 1.0 = 2.0) after armor.

Hopefully this helps!

Dan Fedor - Founder, Blue Bottle Games