… | |
… | |
2266 | { |
2266 | { |
2267 | /* target is unseen */ |
2267 | /* target is unseen */ |
2268 | if (target->invisible || QUERY_FLAG (attacker, FLAG_BLIND)) |
2268 | if (target->invisible || QUERY_FLAG (attacker, FLAG_BLIND)) |
2269 | adjust -= 10; |
2269 | adjust -= 10; |
2270 | /* dark map penalty for the hitter (lacks infravision if we got here). */ |
2270 | /* dark map penalty for the hitter (lacks infravision if we got here). */ |
2271 | else if (target->map && target->map->darkness > 0 && !stand_in_light (target)) |
2271 | else if (target->map && target->map->darklevel () > 0 && !stand_in_light (target)) |
2272 | adjust -= target->map->darkness; |
2272 | adjust -= target->map->darklevel (); |
2273 | } |
2273 | } |
2274 | |
2274 | |
2275 | if (QUERY_FLAG (attacker, FLAG_SCARED)) |
2275 | if (QUERY_FLAG (attacker, FLAG_SCARED)) |
2276 | adjust -= 3; |
2276 | adjust -= 3; |
2277 | |
2277 | |