1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-27 07:52:25 +01:00

Nonweapons use touch accuracy

Otherwise, thrown potions/eggs/corpses etc are too inaccurate to be helpful.
Hitting their armor with the potion works just as well as hitting them on an unprotected thigh (or whatever).
This commit is contained in:
NeroOneTrueKing 2020-12-27 00:42:18 -06:00
parent 391ef3de63
commit 96f44be73b

View file

@ -3326,7 +3326,9 @@ int flat_acc;
(weapon && arti_shining(weapon)) ||
(melee && attk->aatyp == AT_TUCH) ||
(melee && attk->aatyp == AT_VINE) ||
(melee && attk->aatyp == AT_SRPR)) {
(melee && attk->aatyp == AT_SRPR) ||
(weapon && !valid_weapon(weapon)) /* potions, cream pies, rubber chickens, eggs, etc. */
) {
if (youdef) {
defn_acc += AC_VALUE(base_uac() + u.uspellprot) + 10 - u.uspellprot;
}