Changes

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