… | |
… | |
939 | vuln[i] += ((100 - vuln[i]) * -tmp->resist[i]) / 100; |
939 | vuln[i] += ((100 - vuln[i]) * -tmp->resist[i]) / 100; |
940 | } |
940 | } |
941 | } |
941 | } |
942 | |
942 | |
943 | /* There may be other things that should not adjust the attacktype */ |
943 | /* There may be other things that should not adjust the attacktype */ |
944 | if ((tmp->type != WEAPON && tmp->type != BOW && tmp->type != SYMPTOM) |
944 | if (tmp->type != SYMPTOM) |
945 | || current_weapon == tmp) |
|
|
946 | { |
945 | { |
947 | attacktype |= tmp->attacktype; |
946 | attacktype |= tmp->attacktype; |
948 | path_attuned |= tmp->path_attuned; |
947 | path_attuned |= tmp->path_attuned; |
949 | path_repelled |= tmp->path_repelled; |
948 | path_repelled |= tmp->path_repelled; |
950 | path_denied |= tmp->path_denied; |
949 | path_denied |= tmp->path_denied; |