Vestibule Violator
Posts: 1500
Joined: Monday, 3rd January 2011, 17:47
Sling damage
Average damage = (B/2 + L/8 + A/16 + min((str - 10)*(2B+A)*C, (L+1)/4))*(1+skill/D)*(brand multiplier) + slaying/4 + A/2 + (L/2 if using xbow). Here A is the ammo enchantment, L is the launcher enchantment, and B, C, and D are constants depending on what type of launcher you are using (see [2]).
B = 4 for sling+stone, 6 for sling+bullet, 6.5 for bow+arrow, 9.5 for longbow+arrow or xbow+bolt. C = 1/72 for slings, 1/32 for bows, and 0 for xbows. D = 28 for slings, 34 for bows, and 44 for xbows.
My hope (I don't feel like code diving) is that it actually works like (B/2 + L/8 + A/16 + min((str - 10)*(2B+A)*C, (L+1)/4)))*...