Changes

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