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 04:11, 6 April 2015
240 bytes added
,
9 years ago
m
no edit summary
Line 48:
Line 48:
local equip, plane_count, icon, equip_type
local equip, plane_count, icon, equip_type
equip, plane_count = ships[fleet_slot]:slot(i)
equip, plane_count = ships[fleet_slot]:slot(i)
−
equip = ships[fleet_slot][i].name
+
equip = ships[fleet_slot]
.equip
[i].name
if equip then
if equip then
icon = equip:icon()
icon = equip:icon()
Line 57:
Line 57:
equip_type = false
equip_type = false
equip = "- Unequipped -"
equip = "- Unequipped -"
+
plane_count = 0
end
end
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equip_type)}
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equip_type)}
Line 73:
Line 74:
for i = 1, 6 do
for i = 1, 6 do
ships[i] = Ship(args["ship" .. tostring(i)], args["ship" .. tostring(i) .. "_remodel"])
ships[i] = Ship(args["ship" .. tostring(i)], args["ship" .. tostring(i) .. "_remodel"])
+
--Also get all the equips for the ship
+
ships[i].equipment = {}
+
for a = 1, 4 do
+
ships[i].equip[a] = args["ship" .. tostring(i) .. "_equip" .. tostring(a)]
+
end
end
end
return format(self._template)
return format(self._template)
Nanamin
48
edits