• 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 45: Line 45:  
     local branching = { index = {}, }
 
     local branching = { index = {}, }
 
     for route, rules in pairs(args) do
 
     for route, rules in pairs(args) do
         local from, to = route:match("(%S+)%s*->%s*(%S+)")
+
         if route ~= "width" then
        local from_color = from:match("%S+/(%S+)")
+
            local from, to = route:match("(%S+)%s*->%s*(%S+)")
        local to_color = to:match("%S+/(%S+)")
+
            local from_color = from:match("%S+/(%S+)")
        from = from_color and from:match("(%S+)/") or from
+
            local to_color = to:match("%S+/(%S+)")
        to = to_color and to:match("(%S+)/") or to
+
            from = from_color and from:match("(%S+)/") or from
        if not find(branching.index, from) then
+
            to = to_color and to:match("(%S+)/") or to
            table.insert(branching.index, from)
+
            if not find(branching.index, from) then
        end
+
                table.insert(branching.index, from)
        if not branching[from] then
+
            end
            branching[from] = { color = from_color, index = {} }
+
            if not branching[from] then
        end
+
                branching[from] = { color = from_color, index = {} }
        branching[from][to] = { color = to_color, rules = rules }
+
            end
        if not find(branching[from].index, to) then
+
            branching[from][to] = { color = to_color, rules = rules }
            table.insert(branching[from].index, to)
+
            if not find(branching[from].index, to) then
 +
                table.insert(branching[from].index, to)
 +
            end
 
         end
 
         end
 
     end
 
     end
cssedit, gkautomate
6,928

edits

Navigation menu