• 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
Single screw improvement category
Line 61: Line 61:  
_required_ship_category_template = "Category:Equipment that require ${ship_name} to be improved",
 
_required_ship_category_template = "Category:Equipment that require ${ship_name} to be improved",
 
_consumed_equip_category_template = "Category:Equipment that consume ${equip_name} during improvement",
 
_consumed_equip_category_template = "Category:Equipment that consume ${equip_name} during improvement",
 +
_single_screw_improvement_category = "Category:Equipment that can be improved using only one improvement material",
 
}
 
}
   Line 293: Line 294:  
function ImprovementTableKai:improvement_material(row_data)
 
function ImprovementTableKai:improvement_material(row_data)
 
if row_data.resources then
 
if row_data.resources then
 +
    if self._single_item and self._args.categories and row_data.resources.screw == 1 then
 +
        self._single_screw_improvement = true
 +
    end
 
return {values = {value = format{self._material_cell_content, normal = Formatting:format_stat(row_data.resources.screw), slider = Formatting:format_stat(row_data.resources_x.screw)}}, bg_color = self._transparent, text_align = self._center_align}
 
return {values = {value = format{self._material_cell_content, normal = Formatting:format_stat(row_data.resources.screw), slider = Formatting:format_stat(row_data.resources_x.screw)}}, bg_color = self._transparent, text_align = self._center_align}
 
else
 
else
Line 439: Line 443:  
         for _, equip in ipairs(equip_index) do
 
         for _, equip in ipairs(equip_index) do
 
             table.insert(categories, Formatting:format_link(format{self._consumed_equip_category_template, equip_name = self._consumed_equipment[equip]:name()}))
 
             table.insert(categories, Formatting:format_link(format{self._consumed_equip_category_template, equip_name = self._consumed_equipment[equip]:name()}))
 +
        end
 +
        if self._single_screw_improvement then
 +
            table.insert(categories, Formatting:format_link(self._single_screw_improvement_category))
 
         end
 
         end
 
         self._result = self._result .. table.concat(categories)
 
         self._result = self._result .. table.concat(categories)
Anonymous user

Navigation menu