migitation, thac0 cap
I am trying to model EQ combat, and was looking through the code to extract the relevant info. A few things surprise me, and I wonder if anyone can explain them.
When using the default interval-ac rule, weapon damage is always calculated at the max. Mitigation seems to the the source of all the randomness in damage done. (I haven't completed going over the mitigation code, so this may become clear later). I found this puzzling, and wanted to mention this in case anyone is curious about this stuff too.
I also see that thac0 is capped in Mob::MeleeMitigation, yet this occurs after the value is used (and the variable goes out of scope immediately afterwards). A search of the forum shows that this issue was raised 2 years ago, with no response or code change. If the caps aren't desired would someone remove this dead code please. If this is intentional, it would help me to know what is going on here.
|