anothersimulacrum
anothersimulacrum
> That appears to be how compare() works in C++ Compare is a lambda function in the code you posted, and it uses `npc_attack_rating::operator>(const npc_atack_rating &)` to compare two attacks....
To-hit is not applied when using worn weapons. I think this should be considered a bug. Hit is determined: https://github.com/CleverRaven/Cataclysm-DDA/blob/11886ea0ff57064e63e901c4d03afbb479fc7f3c/src/melee.cpp#L613 Worn weapons enter the equation: https://github.com/CleverRaven/Cataclysm-DDA/blob/11886ea0ff57064e63e901c4d03afbb479fc7f3c/src/melee.cpp#L775-L786