It was a rewrite of the following code that is found in
if(RuleB(Combat, UseIntervalAC))
damage = (max_dmg+eleBane);
else
damage = MakeRandomInt((min_dmg+eleBane),(max_dmg+eleBane)) ;
and not a changing of settings.
Yes cavedude I will share the code with you. I want to make a special case for raid mobs or if you want to do that after I show you the code thats fine. A column to npc_types called isRaid will need to be added to check and see if its a raid target because they operate differently as far as this goes than normal mobs.
Edit: since you know all of the eqemu code better than me you might see a better way to check for raid target than what I suggested with a new column. I was thinking along the lines of the new isQuest column.
|