Fix some more indentation.

Also only does the mostDamaged calculation when looking at a damaged
part, rather than for all parts.