Ok, I didn't fully understand why the amulet was so bad so I did some research.
Ogre in robe with Dex 9, Fighting 15, Maces&Flails 27 and +5 Giant Spiked Club vs EV 4 (Yaktaur).
- Code:
No amulet
27 | 24.9 | 92 | 87% | 21.8 | 70 | 1.43 | 31.1
With amulet
27 | 25.1 | 91 | 73% | 18.5 | 70 | 1.43 | 26.5
According to
http://crawl.develz.org/info/inline.php?q=accuracy and my source code diving it should be the following:
mhit = 15 + 4 (from Dex 9)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L143mhit += random2 (15 * 100 + 100)/100 (from Fighting)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L160https://github.com/crawl/crawl/blob/mas ... om.cc#L145because "random" parameter of calc_to_hit is true
https://github.com/crawl/crawl/blob/mas ... ck.cc#L359mhit += random2 (27 * 100 + 100)/100 (from M&F)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L170mhit += 5 (from enchantment of the +5 GSC)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L191mhit += -7 (from base accuracy of GSC)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L192then mhit = random2(mhit)
https://github.com/crawl/crawl/blob/mas ... ck.cc#L219So we have something like
mhit = random2(15 + 4 + random2(15) + random2(27) + 5 - 7)=random2(17 + random2(15) + random2(27))
https://github.com/crawl/crawl/blob/mas ... ck.cc#L237If there is amulet of inaccuracy, then this value is decreased:
mhit += -5
And this value is used in
https://github.com/crawl/crawl/blob/mas ... ck.cc#L779vs Yaktaur's EV by simple comparison which value is greater
https://github.com/crawl/crawl/blob/mas ... k.cc#L1408so effectively the Yaktaur has EV 9 instead of 4. All other monsters have their EV increased by 5 too.
For better understanding why random2(17 + random2(15) + random2(27)) > 4 happens much more often than random2(17 + random2(15) + random2(27)) - 5 > 9 you can check
http://anydice.com/program/894fAlso just to be sure I ran fsim vs a monster with EV 9 (Alligator). Pretty close indeed
- Code:
27 | 24.8 | 80 | 74% | 18.4 | 70 | 1.43 | 26.2
So maybe the amulet should have a more clear description: all enemy monsters have their EV increased by 5 for player attacks.It has nothing common with -5 enchantment, -5 base accuracy, -5 slaying or -5 Fighting/Weapon skill, it is much worse.