Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Calc
(view source)
Revision as of 10:38, 5 November 2017
148 bytes added
,
7 years ago
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