• 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 460: Line 460:  
             return frame:preprocess(format{string.sub(arg, 3), this = env[this] or ""})
 
             return frame:preprocess(format{string.sub(arg, 3), this = env[this] or ""})
 
         else
 
         else
            return format_arg(format_value(string.sub(arg, 2), ship, target))
+
        if args.filter then
 +
        local kv = U.split(args.filter, " = ")
 +
        if tostring(ship[kv[1]](ship)) == kv[2] then
 +
        return format_arg(format_value(string.sub(arg, 2), ship, target))
 +
        else
 +
        return nil
 +
        end
 +
        else
 +
            return format_arg(format_value(string.sub(arg, 2), ship, target))
 +
            end
 
         end
 
         end
 
     else
 
     else
Line 493: Line 502:  
     until not sequence or sequence_position > #sequence
 
     until not sequence or sequence_position > #sequence
 
     debugLog("#values", #values)
 
     debugLog("#values", #values)
     return table.concat(values, args.concat or "") .. debugString()
+
     return table.concat(values, args.concat or ", ") .. debugString()
 
end
 
end
   Line 551: Line 560:  
     mw.log(
 
     mw.log(
 
         Calc.format(nil, {
 
         Calc.format(nil, {
            type = "1",
+
             "@all_names",
             "@equipmentByType",
   
             "!@",
 
             "!@",
 
             "?link",
 
             "?link",
 +
            filter = "hp_mod_married = 0"
 
         })
 
         })
 
     )
 
     )
cssedit, gkautomate
7,064

edits

Navigation menu