• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 38: Line 38:  
         if accuracy_value_1 and accuracy_value_3 then
 
         if accuracy_value_1 and accuracy_value_3 then
 
             return string.format('<span class="explain" title="Before fit: %.2f%%">%d%%</span>', accuracy_value_1, math.floor(accuracy_value_3))
 
             return string.format('<span class="explain" title="Before fit: %.2f%%">%d%%</span>', accuracy_value_1, math.floor(accuracy_value_3))
 +
        else
 +
            return "nil"
 +
        end
 +
    end,
 +
 +
    fit = function(ship, target, context)
 +
        context._ng = ship._ng
 +
        context._ci, context._hit_rate = Stat.error_(context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2)
 +
        local fit, min_fit, max_fit = Combat2.find_fit(ship, target, context)
 +
        if fit and min_fit and max_fit then
 +
            return string.format('<span class="explain" title="%d ~ %d">%d</span>', min_fit, max_fit, fit)
 
         else
 
         else
 
             return "nil"
 
             return "nil"
cssedit, gkautomate
7,064

edits

Navigation menu