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
lightning strike
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
lightning strike
Looks like critical strike is basically armor ignore, this is a bool that determines if a special shot ignores armor:
Archived topic from AOV, old topic ID:1836, old post ID:11878
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() );
}
Honk if you love Jesus, text if you want to meet Him!