• 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 7: Line 7:  
local ShipBattleCardKai = require("Module:ShipBattleCardKai")
 
local ShipBattleCardKai = require("Module:ShipBattleCardKai")
 
local FitData = require("Module:FitData")
 
local FitData = require("Module:FitData")
 +
local Combat2 = require("Module:Combat2")
    
local args = nil
 
local args = nil
Line 86: Line 87:  
     end,
 
     end,
   −
     test = function()
+
     hit_rate = function(ship, target)
         return (ship:level() or 0) + (ship._accuracy or 0) - (target:evasion() or 0)
+
         local r = Combat2.hit_rate(ship, target)
 +
        if r then
 +
            ship.hit_rate = r
 +
            return r .. "%"
 +
        else
 +
            return "nil"
 +
        end
 
     end,
 
     end,
  
cssedit, gkautomate
7,064

edits

Navigation menu