Line 90: |
Line 90: |
| if r then | | if r then |
| ship.hit_rate = r | | ship.hit_rate = r |
| + | return r .. "%" |
| + | else |
| + | return "nil" |
| + | end |
| + | end, |
| + | |
| + | critical_hit_rate = function(ship, target) |
| + | local r = Combat2.critical_hit_rate(ship, target) |
| + | if r then |
| + | ship.critical_hit_rate = r |
| return r .. "%" | | return r .. "%" |
| else | | else |