Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Fleet
(view source)
Revision as of 10:57, 12 June 2019
123 bytes added
,
5 years ago
no edit summary
Line 5:
Line 5:
local loadData = require('Module:Data').load
local loadData = require('Module:Data').load
local getArgs = require('Module:GetArgs')
local getArgs = require('Module:GetArgs')
+
local Ship = require('Module:Ship')
local ShipBattleCardKai = require('Module:ShipBattleCardKai')
local ShipBattleCardKai = require('Module:ShipBattleCardKai')
local EquipmentCardKai = require('Module:EquipmentCardKai')
local EquipmentCardKai = require('Module:EquipmentCardKai')
Line 51:
Line 52:
local function getFleetName(fleet, event)
local function getFleetName(fleet, event)
local names = fleetNames[event] or {}
local names = fleetNames[event] or {}
−
if names[1] then
+
if
names == 'flagship' then
+
return Ship(fleet[1]):base_name() .. ' FS'
+
elseif
names[1] then
for _, f in ipairs(names) do
for _, f in ipairs(names) do
for i, ship in ipairs(f.ships) do
for i, ship in ipairs(f.ships) do
がか
cssedit, gkautomate
7,064
edits