Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleet
(view source)
Revision as of 11:24, 6 April 2015
27 bytes added
,
9 years ago
m
no edit summary
Line 70:
Line 70:
end
end
−
function NanaminFleet:create_table(frame
)
+
function NanaminFleet:create_table(
)
+
local _args =
frame
.args
local ships = {}
local ships = {}
local vars = {}
local vars = {}
for i = 1, 6 do
for i = 1, 6 do
ships[i] = {}
ships[i] = {}
−
ships[i].object = Ship(
args
["ship" .. tostring(i)],
args
["ship" .. tostring(i) .. "_remodel"])
+
ships[i].object = Ship(
_args
["ship" .. tostring(i)],
_args
["ship" .. tostring(i) .. "_remodel"])
--Get the equips categorized under each ship specifically so the ship number doesn't have to be passed.
--Get the equips categorized under each ship specifically so the ship number doesn't have to be passed.
ships[i].equip = {}
ships[i].equip = {}
for a = 1, 4 do
for a = 1, 4 do
−
ships[i].equip[a] = { name =
args
["ship" .. tostring(i) .. "_equip" .. tostring(a)] }
+
ships[i].equip[a] = { name =
_args
["ship" .. tostring(i) .. "_equip" .. tostring(a)] }
end
end
Nanamin
48
edits