- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:CalcFit"
Jump to navigation
Jump to search
(Created page with "local Stat = require("Module:Stat") return { hit = function(context) return Stat.rate({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.c...") |
m |
||
Line 4: | Line 4: | ||
hit = function(context) | hit = function(context) | ||
− | return Stat.rate({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) | + | return Stat.rate({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%" |
end, | end, | ||
crit = function(context) | crit = function(context) | ||
− | return Stat.rate({ args = { context.cl2, context.cl0 + context.cl1 + context.cl2 } }) | + | return Stat.rate({ args = { context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%" |
end, | end, | ||
error = function(context) | error = function(context) | ||
− | return Stat.error({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) | + | return Stat.error({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%" |
end, | end, | ||
difference = function(context) | difference = function(context) | ||
− | return " | + | return "nil" |
end, | end, | ||
} | } |
Revision as of 09:52, 5 November 2017
Documentation for this module may be created at Module:CalcFit/doc
local Stat = require("Module:Stat")
return {
hit = function(context)
return Stat.rate({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%"
end,
crit = function(context)
return Stat.rate({ args = { context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%"
end,
error = function(context)
return Stat.error({ args = { context.cl1 + context.cl2, context.cl0 + context.cl1 + context.cl2 } }) .. "%"
end,
difference = function(context)
return "nil"
end,
}