• 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 1: Line 1:  +
local U = require("Module:Core")
 
local BaseData = require("Module:BaseData")
 
local BaseData = require("Module:BaseData")
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
Line 673: Line 674:  
local function convert_compatibility(compatibility_table, equipment_type, name)
 
local function convert_compatibility(compatibility_table, equipment_type, name)
 
local value = compatibility_table[name] or compatibility_table[equipment_type]
 
local value = compatibility_table[name] or compatibility_table[equipment_type]
return value == true and 1 or type(value) == 'string' and {value = 2, note = value, code = value} or 0
+
return value == true and 1 or type(value) == 'string' and {value = U.startsWith(value, 'Only') and 2 or 3, note = value, code = value} or 0
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu