I just noticed I use variable nLevel once, when it was intended to replace all further uses of GetLevel(), before I created the math statement to apply bonus damage for increments of 5 levels at 50+. Before it was calling GetLevel() 4 or 5 times. It was too late for me to edit the post, so maybe include that little tweak when implementing. That is, replace all further uses (only one more exists in that method) of GetLevel() with nLevel.
__________________
Expert developer, I do it for a living.
Don't let the "Junior" tag fool you.
|