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 17:39, 9 November 2017
190 bytes added
,
7 years ago
m
no edit summary
Line 15:
Line 15:
local shipCapabilities = {}
local shipCapabilities = {}
+
-- $('.calc-debug').show().appendTo('#mw-content-text')
local debug = {}
local debug = {}
Line 240:
Line 241:
function interpret_args()
function interpret_args()
debugLog("#args", #args)
debugLog("#args", #args)
+
debugLog("type(args)", type(args))
+
local i = 1
local values = {}
local values = {}
repeat
repeat
for _, arg in ipairs(args) do
for _, arg in ipairs(args) do
+
debugLog("i", i)
debugLog("arg", arg)
debugLog("arg", arg)
local value = interpret_arg(arg)
local value = interpret_arg(arg)
Line 249:
Line 253:
table.insert(values, value)
table.insert(values, value)
end
end
+
i = i + 1
end
end
until not sequence or sequence_position > #sequence
until not sequence or sequence_position > #sequence
Line 267:
Line 272:
Calc.format(nil, {
Calc.format(nil, {
format = "table",
format = "table",
+
debug = "true",
"!Nagato/Kai Ni",
"!Nagato/Kai Ni",
"!_equipment ~ 41cm Triple Gun Mount Kai, 41cm Triple Gun Mount Kai, Type 13 Air Radar Kai",
"!_equipment ~ 41cm Triple Gun Mount Kai, 41cm Triple Gun Mount Kai, Type 13 Air Radar Kai",
がか
cssedit, gkautomate
7,064
edits