• 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
m
no edit summary
Line 7: Line 7:  
local NodeInfo = BaseTable({
 
local NodeInfo = BaseTable({
 
     _item_class = EnemyShip,
 
     _item_class = EnemyShip,
     _header_template = [[!Node
+
     _header_template = [[!#
     !Formation
+
     !Form
 
     !Fleet
 
     !Fleet
 
     !AP/AS/AS+]],
 
     !AP/AS/AS+]],
 
     _column_cell_templates = {
 
     _column_cell_templates = {
         node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; color: ${color}; background-color: ${bg_color};" |${values.node}<br /><span style="color: ${time_color};">${values.time}</span>]],
+
         node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; color: ${color}; background-color: ${bg_color};" |${values.node}]],
         formation = [[| style="text-align: center; background-color: ${bg_color};" |${values.formation}]],
+
         formation = [[| style="text-align: center; background-color: ${bg_color}; color: ${color};" |${values.formation}]],
 
         fleet = [[| style="width: 500px; background-color: ${bg_color};" |${values.fleet}]],
 
         fleet = [[| style="width: 500px; background-color: ${bg_color};" |${values.fleet}]],
 
         as = [[| style="text-align: center; background-color: ${bg_color};" |${values.as}]],
 
         as = [[| style="text-align: center; background-color: ${bg_color};" |${values.as}]],
Line 32: Line 32:  
     _night_battle_bg_color = "lightblue",
 
     _night_battle_bg_color = "lightblue",
 
     _boss_battle_color = "red",
 
     _boss_battle_color = "red",
     _resource_node_bg_color = "lightgreen",
+
     --_resource_node_bg_color = "lightgreen",
     _maelstrom_node_bg_color = "pink",
+
     _resource_node_bg_color = "initial",
 +
    --_maelstrom_node_bg_color = "pink",
 +
    _maelstrom_node_bg_color = "initial",
 
})
 
})
   Line 41: Line 43:  
         color = self._boss_battle_color
 
         color = self._boss_battle_color
 
     end
 
     end
     if row.time == "(Night)" then
+
     if row.time == "Night" then
 
         time_color = self._night_battle_color
 
         time_color = self._night_battle_color
 
         bg_color = self._night_battle_bg_color
 
         bg_color = self._night_battle_bg_color
Line 51: Line 53:  
     if row.final then
 
     if row.final then
 
         row.formation = row.formation .. " (Final)"
 
         row.formation = row.formation .. " (Final)"
 +
    end
 +
    local color = "initial"
 +
    if row.time == "Night" then
 +
        color = self._night_battle_color
 
     end
 
     end
 
     return { values = { formation = row.formation } }
 
     return { values = { formation = row.formation } }
Line 68: Line 74:  
if split then
 
if split then
 
    node = mw.ustring.sub(item, 1, split - 1)
 
    node = mw.ustring.sub(item, 1, split - 1)
    time = "(" .. mw.ustring.sub(item, split + 1):gsub("^%l", string.upper) .. ")"
+
    time = mw.ustring.sub(item, split + 1):gsub("^%l", string.upper)
 
else
 
else
 
    node = item:upper()
 
    node = item:upper()
Line 125: Line 131:  
    end
 
    end
 
     
 
     
    --There's a second ! in the declaration, so it's a final form
+
    --If there's a *, then it's a final form.
    if mw.ustring.sub(item_key, 1, 1) == "!" then
+
    if mw.ustring.sub(item_key, 1, 1) == "*" then
 
        final = true
 
        final = true
 
        item_key = mw.ustring.sub(item_key, 2)
 
        item_key = mw.ustring.sub(item_key, 2)
48

edits

Navigation menu