• 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
no edit summary
Line 22: Line 22:  
end
 
end
 
equipment_table = success2 and equipment_table2 or eq or { _name = name }
 
equipment_table = success2 and equipment_table2 or eq or { _name = name }
 +
if eq and eq._module then
 +
equipment_table._module = eq._module
 +
end
 
end
 
end
 
local equipment = EquipmentData(equipment_table)
 
local equipment = EquipmentData(equipment_table)
Line 33: Line 36:     
function Equipment:get_module(name)
 
function Equipment:get_module(name)
return name and mw.ustring.format('Module:%s', name) or nil
+
return name and mw.ustring.format('Module:%s', equipments[name] and equipments[name]._module or name) or nil
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu