Changes

m
46 revisions imported
Line 3: Line 3:  
local Ship = require('Module:Ship')
 
local Ship = require('Module:Ship')
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
local format = require('Module:StringInterpolation').format
+
local format = require('Module:Core').format
    
local NanaminShipInfo = {
 
local NanaminShipInfo = {
Line 109: Line 109:  
              
 
              
 
             local name = entries[a][1]:nick() and entries[a][1]:nick() or entries[a][1]:name()
 
             local name = entries[a][1]:nick() and entries[a][1]:nick() or entries[a][1]:name()
 +
            local image = string.gsub(entries[a][1]:battle_card(), "FastBB", "BC")
 
             table.insert(self._rows, format{self._ship_card_template,
 
             table.insert(self._rows, format{self._ship_card_template,
 
                 class = name:gsub(" ", ""),
 
                 class = name:gsub(" ", ""),
                 ship_card = Formatting:format_image{entries[a][1]:battle_card(), align = "left", valign = "center"},
+
                 ship_card = Formatting:format_image{image, align = "left", valign = "center"},
 
             })
 
             })
 
             table.insert(self._rows, format{self._level_template,
 
             table.insert(self._rows, format{self._level_template,
Line 154: Line 155:  
     self:build_table("Destroyer")
 
     self:build_table("Destroyer")
 
     self:build_table("Submarine")
 
     self:build_table("Submarine")
 +
    self:build_table("Other")
 
     return table.concat(self._rows, "\n")
 
     return table.concat(self._rows, "\n")
 
end
 
end
Bots, gkautomate
13,304

edits