• 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 362: Line 362:  
     if prefix == "~" then
 
     if prefix == "~" then
 
     local kv = mw.text.split(string.sub(arg, 2), "%s*~%s*")
 
     local kv = mw.text.split(string.sub(arg, 2), "%s*~%s*")
     table.insert(filterArgs, kv)
+
    local xs = mw.text.split(kv[2], "%s*,%s*")
 +
     table.insert(filterArgs, {kv[1], xs})
 
     end
 
     end
 
     end
 
     end
Line 378: Line 379:  
    local test = true
 
    local test = true
 
for _, kv in ipairs(filterArgs) do
 
for _, kv in ipairs(filterArgs) do
--local xs = mw.text.split(kv[2], "%s*,%s*")
+
local test2 = false
--local test2 = false
+
for _, e2 in ipairs(kv[2]) do
--for _, e2 in ipairs(xs) do
+
if tostring(ship[kv[1]](ship)) == e2 then
if tostring(ship[kv[1]](ship)) ~= kv[2] then
+
test2 = true
--test2 = true
+
break
--break
+
end
--end
+
end
--end
+
if not test2 then
--if not test2 then
   
test = false
 
test = false
 
break
 
break
cssedit, gkautomate
7,064

edits

Navigation menu