• 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 164: Line 164:  
             if values[1]["isFinalForm"] ~= nil then  
 
             if values[1]["isFinalForm"] ~= nil then  
 
                 text = "<span style='color:red'>" .. text .."<br>" .. "Final Form</span>"
 
                 text = "<span style='color:red'>" .. text .."<br>" .. "Final Form</span>"
 +
            end
 +
            if values[1]["isSecondPhase"] ~= nil then
 +
                text = "<span style='color:blue'>" .. text .."<br>" .. "Second Phase</span>"
 
             end
 
             end
 
             if values[1]["isPostFinalForm"] ~= nil then  
 
             if values[1]["isPostFinalForm"] ~= nil then  
Line 232: Line 235:  
                     local row = mw.html.create("tr")
 
                     local row = mw.html.create("tr")
 
                     local text = "Pattern " .. i
 
                     local text = "Pattern " .. i
 +
                    if values[i]["isSecondPhase"] ~= nil then
 +
                        text = "<span style='color:red'>" .. text .."<br>" .. "Second Phase</span>"
 +
                    end
 
                     if values[i]["isFinalForm"] ~= nil then
 
                     if values[i]["isFinalForm"] ~= nil then
 
                         text = "<span style='color:red'>" .. text .."<br>" .. "Final Form</span>"
 
                         text = "<span style='color:red'>" .. text .."<br>" .. "Final Form</span>"
Line 415: Line 421:  
                     if mapEncounterTable[nodeLetter][patternNum] ~= nil then
 
                     if mapEncounterTable[nodeLetter][patternNum] ~= nil then
 
                         mapEncounterTable[nodeLetter][patternNum]["isFinalForm"] = true
 
                         mapEncounterTable[nodeLetter][patternNum]["isFinalForm"] = true
 +
                    end
 +
                end
 +
            end
 +
        end
 +
    end
 +
      if frame.args["second_phase"] ~= nil then
 +
        local nodeAndPatterns = mw.text.split(frame.args["second_phase"]," ")
 +
        for _,nodePattern in pairs(nodeAndPatterns) do
 +
            local nodeLetter = mw.text.split(nodePattern,"")[1]       
 +
            if validNodeLetters[nodeLetter] then
 +
                local patternNum = mw.text.split(nodePattern,"")[2]
 +
                if tonumber(patternNum) ~= nil then
 +
                    patternNum = tonumber(patternNum)
 +
                    if mapEncounterTable[nodeLetter][patternNum] ~= nil then
 +
                        mapEncounterTable[nodeLetter][patternNum]["isSecondPhase"] = true
 
                     end
 
                     end
 
                 end
 
                 end
advmod, cssedit, Moderators, oversight, prechecked, Account Reviewers
18,475

edits

Navigation menu