lightning strike

Anything regarding UO or Age of Valor
Locked
d.
Posts: 1119
Joined: Sat Aug 04, 2007 6:13 pm

lightning strike

Post by d. »

im wondering if anyone could tell me the equation for the chance of lightning strike doing a critical shot. ty

Archived topic from AOV, old topic ID:1836, old post ID:11870
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

lightning strike

Post by Red Squirrel »

Looks like critical strike is basically armor ignore, this is a bool that determines if a special shot ignores armor:

Code: Select all

		public override bool IgnoreArmor( Mobile attacker )
		{
			double bushido = attacker.Skills[SkillName.Bushido].Value;

			double criticalChance = (bushido * bushido) / 72000.0;

			return ( criticalChance >= Utility.RandomDouble() );
		}
Archived topic from AOV, old topic ID:1836, old post ID:11878
Honk if you love Jesus, text if you want to meet Him!
Locked