• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 8: Line 8:  
     if (tonumber(string.sub(shipNum, 1, 3)) == nil and string.sub(shipNum, 1, 4) ~= "Mist" ) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
 
     if (tonumber(string.sub(shipNum, 1, 3)) == nil and string.sub(shipNum, 1, 4) ~= "Mist" ) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
 
     shipNum = shipdb.findID(frame)
 
     shipNum = shipdb.findID(frame)
end
+
    end
return shipNum
+
    return shipNum
 
end
 
end
   Line 323: Line 323:     
function shipmodule.getArtVoice(frame)
 
function shipmodule.getArtVoice(frame)
local shipNum = frame.args[1]
+
    local shipNum = shipmodule.getIDNum(frame)
    -- Getting ship ID, number, & info
  −
    if (tonumber(string.sub(shipNum, 1, 3)) == nil and string.sub(shipNum, 1, 4) ~= "Mist" ) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
  −
    shipNum = shipdb.findID(frame)
  −
end
      
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
 
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
5,421

edits

Navigation menu