… | |
… | |
1050 | vuln[i] += ((100 - vuln[i]) * -tmp->resist[i]) / 100; |
1050 | vuln[i] += ((100 - vuln[i]) * -tmp->resist[i]) / 100; |
1051 | } |
1051 | } |
1052 | } |
1052 | } |
1053 | |
1053 | |
1054 | /* There may be other things that should not adjust the attacktype */ |
1054 | /* There may be other things that should not adjust the attacktype */ |
1055 | if (tmp>-type != BOW && tmp->type != SYMPTOM) |
1055 | if (tmp->type != BOW && tmp->type != SYMPTOM) |
1056 | attacktype |= tmp->attacktype; |
1056 | attacktype |= tmp->attacktype; |
1057 | |
1057 | |
1058 | path_attuned |= tmp->path_attuned; |
1058 | path_attuned |= tmp->path_attuned; |
1059 | path_repelled |= tmp->path_repelled; |
1059 | path_repelled |= tmp->path_repelled; |
1060 | path_denied |= tmp->path_denied; |
1060 | path_denied |= tmp->path_denied; |
… | |
… | |
1081 | if (tmp->stats.exp && tmp->type != SKILL) |
1081 | if (tmp->stats.exp && tmp->type != SKILL) |
1082 | { |
1082 | { |
1083 | if (tmp->stats.exp > 0) |
1083 | if (tmp->stats.exp > 0) |
1084 | { |
1084 | { |
1085 | added_speed += tmp->stats.exp / 3.f; |
1085 | added_speed += tmp->stats.exp / 3.f; |
1086 | bonus_speed += 1.f + tmp->stats.exp / 3.f; |
1086 | bonus_speed += tmp->stats.exp / 3.f + 1.f; |
1087 | } |
1087 | } |
1088 | else |
1088 | else |
1089 | added_speed += tmp->stats.exp; |
1089 | added_speed += tmp->stats.exp; |
1090 | } |
1090 | } |
1091 | |
1091 | |