To-hit

From NetHackWiki
Revision as of 11:54, 3 November 2006 by Killian (talk | contribs) (further details)
Jump to navigation Jump to search

When attacking a monster, you must make a successful to-hit roll in order to actually strike it.

These are some of the factors that might affect your chance to hit in melee:

  • +1 for all melee attacks.[9]
  • Bonuses based on your strength and dexterity.[10]
  • A bonus equal to your Luck.[11]
  • The target monster's AC.[12]
  • A bonus equal to the enchantment level(s) of any rings of increase accuracy you are wearing.[13]
  • A bonus equal to your experience level, if you are in your natural form.
  • A bonus equal to your monster type's "level" if you are polymorphed.[14]
  • +2 (cumulative) against a stunned, fleeing, or sleeping monster.[15]
  • +4 against a paralysed monster.[16]
  • +1 if you are an elf (either naturally or by polymorph) hitting any orc.[17]
  • -20 if you are a Monk wearing body armor.
  • If you are a Monk not wearing body armor or a shield, and not wielding any item, +(experience level / 3)+2.[18]
  • -1 if you are burdened, -3 if you are stressed, or -5 if you are strained; if you are overtaxed or overloaded you will be unable to attack at all.[19]
  • -3 if you are currently trapped.[20]


References

  1. weapon.c#line133 (enchantment bonus for weapons)
  2. weapon.c#line137 (item to-hit bonus)
  3. weapon.c#line142 (blessed bonus against demons/undead)
  4. weapon.c#line145 (spear versus "kebabable" monster)
  5. weapon.c#line149 (trident versus swimmers)
  6. mondata.h#line30 (is_swimmer)
  7. weapon.c#line155 (pick versus phasing and thick-skinned)
  8. weapon.c#line164 (artifact bonus)
  9. uhitm.c#line236 (base +1 for melee)
  10. weapon.c#line688 (strength and dexterity bonuses)
  11. uhitm.c#line236 (Luck bonus)
  12. uhitm.c#line236 (monster AC)
  13. uhitm.c#line236 (your to-hit bonus from rings, u.uhitinc)
  14. uhitm.c#line237 (natural and polymorphed level bonuses)
  15. uhitm.c#line250 (monster status bonuses)
  16. uhitm.c#line257 (paralysed monster bonus)
  17. uhitm.c#line264 (elves versus orcs)
  18. uhitm.c#line267 (monk penalty and bonus)
  19. uhitm.c#line277 (weight penalty)
  20. uhitm.c#line278 (trap penalty)


This page is a stub. Should you wish to do so, you can contribute by expanding this page.