Line 2: |
Line 2: |
| local format = require('Module:StringInterpolation').format | | local format = require('Module:StringInterpolation').format |
| local getArgs = require('Module:GetArgs') | | local getArgs = require('Module:GetArgs') |
− | --local Ship = require('Module:Ship')
| + | local Ship = require('Module:Ship') |
| | | |
| function format_category(name) | | function format_category(name) |
Line 78: |
Line 78: |
| end | | end |
| | | |
− | --[[
| |
| function isCarrier(base_ship_name, remodel) | | function isCarrier(base_ship_name, remodel) |
| local ship = Ship(base_ship_name .. "/" .. (remodel or "")) | | local ship = Ship(base_ship_name .. "/" .. (remodel or "")) |
| return ship:type() == 11 or ship:type() == 16 or ship:type() == 18 | | return ship:type() == 11 or ship:type() == 16 or ship:type() == 18 |
| end | | end |
− | ]]--
| |
| | | |
| -- Global variable, potentially altered by insertRow, checked by Quotes.ShipQuotes. | | -- Global variable, potentially altered by insertRow, checked by Quotes.ShipQuotes. |
Line 109: |
Line 107: |
| local is_empty_pre_kai_line = not remodel and not ja and not en and not jaEn and (args[line.name .. "/Kai"] or args[line.name .. "/Kai/En"] or args[line.name .. "/Kai/Both"]) | | local is_empty_pre_kai_line = not remodel and not ja and not en and not jaEn and (args[line.name .. "/Kai"] or args[line.name .. "/Kai/En"] or args[line.name .. "/Kai/Both"]) |
| | | |
− | --[[
| |
| if line.name == "Night Attack" then | | if line.name == "Night Attack" then |
| line.extra = isCarrier(args.ship, remodel) | | line.extra = isCarrier(args.ship, remodel) |
Line 115: |
Line 112: |
| line.extra = not isCarrier(args.ship, remodel) | | line.extra = not isCarrier(args.ship, remodel) |
| end | | end |
− | ]]--
| |
| | | |
| if (not remodel and not line.extra or jaEn or ja or en or note) and not is_empty_pre_kai_line then | | if (not remodel and not line.extra or jaEn or ja or en or note) and not is_empty_pre_kai_line then |