Difference between revisions of "To hit"

From CrawlWiki
Jump to: navigation, search
(Other modifiers: rmv food and the now removed armour/shield penalty)
(no idea if this is correct but removing stuff out of date)
Line 1: Line 1:
{{version019}}
+
{{version028}}
 
'''To hit''' (short for 'chance to hit') is the probability that an attack will hit a target. It is one of the two key factors in determining the success of an attack, the other being damage.
 
'''To hit''' (short for 'chance to hit') is the probability that an attack will hit a target. It is one of the two key factors in determining the success of an attack, the other being damage.
  
Line 17: Line 17:
 
====Other modifiers====
 
====Other modifiers====
 
*If in wisp, fungus, pig, or non-vampire bat form, add random2(XL*100+100)/100 instead of using your weapon skill above.
 
*If in wisp, fungus, pig, or non-vampire bat form, add random2(XL*100+100)/100 instead of using your weapon skill above.
*Subtract 5 for vertigo.
+
*Subtract 5 for [[vertigo]].
 
*If you have the eyeballs mutation, add 2*[eyeballs level]+1.
 
*If you have the eyeballs mutation, add 2*[eyeballs level]+1.
  
 
====The Roll====
 
====The Roll====
*Take this total and roll a random number from 0 to total - 1.
+
*Take this total and roll a random number from 0 to (total - 1).
  
 
====Post Roll====
 
====Post Roll====
*If the player is wearing an [[amulet of inaccuracy]], they get a -5 penalty.
 
 
*Subtract 5 if missing an eye (Ru sacrifice) or you are confused.
 
*Subtract 5 if missing an eye (Ru sacrifice) or you are confused.
 
*Subtract 6 if you cannot see the target (invisibility).
 
*Subtract 6 if you cannot see the target (invisibility).
*Add 2 + roll between 0 and 7 if the target is backlit (corona, sticky flame, or haloed and not affected by umbra).
+
*Add 2 + roll between 0 and 7 if the target is backlit ([[Corona]], [[Sticky Flame]], or under a [[halo]]).
 
*Subtract 2 + roll between 0 and 3 if the target is in umbra and you do not have night vision (Dithmenos power).
 
*Subtract 2 + roll between 0 and 3 if the target is in umbra and you do not have night vision (Dithmenos power).
*If the player is bonded to their weapon with the [[Sure Blade]] spell, they get +(5 + remaining duration of Sure Blade (MAX: +15)).
 
 
*If the player is not wielding a weapon:
 
*If the player is not wielding a weapon:
 
**The [[Confusing Touch]] spell grants +0 to +(DEX-1).
 
**The [[Confusing Touch]] spell grants +0 to +(DEX-1).
Line 63: Line 61:
 
Ranged attacks ("beams", to use the game's internal terminology) have a to hit number, just like melee attacks do. This is modified as follows:
 
Ranged attacks ("beams", to use the game's internal terminology) have a to hit number, just like melee attacks do. This is modified as follows:
 
*If you are invisible and the attacker can't see invisible, the to hit number is halved.
 
*If you are invisible and the attacker can't see invisible, the to hit number is halved.
*If you have [[Deflect Missiles]] running, the to hit number is reduced to a random number between 0 and 2/3 of its value.
+
*If you have [[Repel Missiles]], the to hit number is reduced ''by'' a random number between 0 and 1/2 of its value (rounded down).
*If you don't have Deflect Missiles running, but do have [[Repel Missiles]] running or the Repulsion Field mutation at level 3, the to hit number is reduced ''by'' a random number between 0 and 1/2 of its value (rounded down).
 
  
 
[[Category:Game_mechanics]]
 
[[Category:Game_mechanics]]

Revision as of 09:25, 21 February 2022

Version 0.28: This article may not be up to date for the latest stable release of Crawl.

To hit (short for 'chance to hit') is the probability that an attack will hit a target. It is one of the two key factors in determining the success of an attack, the other being damage.

The to hit can be calculated for melee and ranged attacks, and is calculated differently for players and monsters. The largest factors for players are weapon (or unarmed) skill and fighting skill - with good training on both skills and decent dexterity, it should be rare to miss most targets.

Player To Hit (Melee and Ranged)

The player's to-hit in melee and ranged combat is determined by the following factors:

Base Value

  • Start with 15 + dexterity/2 + a random roll between 0 and your fighting skill.

Weapons

  • Add a random roll from 0 to your weapon skill (unarmed is considered a weapon skill here).
  • Add the weapon's base accuracy; unarmed has +2, or +4 if you have claws.
  • Add your weapon enchantment level and slaying bonuses.

Other modifiers

  • If in wisp, fungus, pig, or non-vampire bat form, add random2(XL*100+100)/100 instead of using your weapon skill above.
  • Subtract 5 for vertigo.
  • If you have the eyeballs mutation, add 2*[eyeballs level]+1.

The Roll

  • Take this total and roll a random number from 0 to (total - 1).

Post Roll

Monster To Hit (Melee)

A monster's to hit is calculated as follows:

Base Value

The base value is 18.

Hit Dice

Monsters with the Fighter class flag get a bonus of +(2.5 * HD). Other monsters get +(1.5 * HD). Decimals are rounded down.

Situational Modifiers

  • An aquatic monster "using the terrain to its advantage" gets +5.
  • A monster wielding a weapon receives that weapon's inherent and magical to hit modifiers.
  • A confused monster gets -5.
  • A monster attacking a backlit defender gets +2 to +9.
  • A monster attacking an invisible target suffers a 35% penalty to its to hit number.

Monster To Hit (Ranged)

Ranged attacks ("beams", to use the game's internal terminology) have a to hit number, just like melee attacks do. This is modified as follows:

  • If you are invisible and the attacker can't see invisible, the to hit number is halved.
  • If you have Repel Missiles, the to hit number is reduced by a random number between 0 and 1/2 of its value (rounded down).