RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Exceptional Quality Damage Bonus

deez

Sorceror
Greetings,
I have successfully created a T2A era shard many years ago but I can see a lot of scripts have changed. I disabled all expansions, got instahit working and many other things. For some reason is just does not seem like exceptional weapon bonus is being calculated into the damage equationWhile testing damage on the shard it just does not seem to be hitting any harder than a low quality weapon. Is there somewhere I need to turn on these "old quality bonuses" or do they auto apply when expansions are disabled. I never had to change this code in the past.

Code:
            // Apply bonuses
            damage += (damage * tacticsBonus) + (damage * strBonus) + (damage * anatomyBonus) + (damage * qualityBonus) + ((damage * VirtualDamageBonus)
 
/ 100);
 
            // Old quality bonus:
#if false
            /* Apply quality offset
            * : Low        : -4
            * : Regular    :  0
            * : Exceptional : +4
            *\
            damage += ((int)m_Quality - 1) * 4.0;
#endif
 
            /* Apply damage level offset
            * : Regular : 0
            * : Ruin    : 1
            * : Might  : 3
            * : Force  : 5
            * : Power  : 7
            * : Vanq    : 9
            */
            if ( m_DamageLevel != WeaponDamageLevel.Regular )
                damage += (2.0 * (int)m_DamageLevel) - 1.0;
 
            // Halve the computed damage and return
            damage /= 2.0;
 
            return ScaleDamageByDurability( (int)damage );
        }
 

deez

Sorceror
I even change the weapon to vanquishing and it has no effect on the damage the weapon causes.
 
Top