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 05:56, 14 March 2018
179 bytes added
,
6 years ago
m
no edit summary
Line 138:
Line 138:
local formatting_function = formatting_functions[key]
local formatting_function = formatting_functions[key]
if formatting_function then
if formatting_function then
−
return formatting_function(ship, target)
+
if ship then
+
return formatting_function(ship, target)
+
else
+
return formatting_function(ship, target)
+
end
else
else
if shipCapabilities[key] then
if shipCapabilities[key] then
Line 171:
Line 175:
env[c] = env[c] or require("Module:" .. c)
env[c] = env[c] or require("Module:" .. c)
env[k] = env[c](v)
env[k] = env[c](v)
+
if k == "_" and not ship then
+
ship = env[k]
+
end
return true
return true
elseif k and v then
elseif k and v then
がか
cssedit, gkautomate
6,940
edits