Searched refs:attackCoefficient (Results 1 – 2 of 2) sorted by relevance
239 int attackCoefficient = 0; in hitAttempt() local241 attackCoefficient = _rangedAttack ? getCoefficientRangedAttack() : 0; in hitAttempt()243 attackCoefficient = getCoefficientCloseAttack(); in hitAttempt()246 if (attackCoefficient == 0) { in hitAttempt()252 if (random <= attackCoefficient) { in hitAttempt()266 damage = getDamageRangedAttack(random, attackCoefficient); in hitAttempt()268 damage = getDamageCloseAttack(random, attackCoefficient); in hitAttempt()
241 int attackCoefficient = 0; in hitAttempt() local243 attackCoefficient = _rangedAttack ? getCoefficientRangedAttack() : 0; in hitAttempt()245 attackCoefficient = getCoefficientCloseAttack(); in hitAttempt()248 if (attackCoefficient == 0) { in hitAttempt()254 if (random <= attackCoefficient) { in hitAttempt()268 damage = getDamageRangedAttack(random, attackCoefficient); in hitAttempt()270 damage = getDamageCloseAttack(random, attackCoefficient); in hitAttempt()