Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:EquipmentData
(view source)
Revision as of 20:18, 30 March 2024
70 bytes added
,
7 months ago
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