• 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
added remodel categories
Line 59: Line 59:     
function ShipCategoriesKai:create_remodel_categories()
 
function ShipCategoriesKai:create_remodel_categories()
local remodel_blueprint = self._ship:remodel_blueprint()
+
local  
 +
remodel_development_material,
 +
remodel_construction_material,
 +
remodel_blueprint,
 +
remodel_catapult,
 +
remodel_report,
 +
remodel_gunmat,
 +
remodel_airmat
 +
=  
 +
self._ship:remodel_development_material(),
 +
self._ship:remodel_construction_material(),
 +
self._ship:remodel_blueprint(),
 +
self._ship:remodel_catapult(),
 +
self._ship:remodel_report(),
 +
self._ship:remodel_gunmat(),
 +
self._ship:remodel_airmat()
 +
if remodel_development_material then
 +
table.insert(self._categories, format{"Category:Ships that consume Development Material during remodeling"})
 +
end
 +
if remodel_construction_material then
 +
table.insert(self._categories, format{"Category:Ships that consume Instant Construction Material during remodeling"})
 +
end
 
if remodel_blueprint then
 
if remodel_blueprint then
table.insert(self._categories, format{"Category:Ships that require a blueprint for remodelling"})
+
table.insert(self._categories, format{"Category:Ships that consume Blueprint during remodeling"})
 +
end
 +
if remodel_catapult then
 +
table.insert(self._categories, format{"Category:Ships that consume Prototype Flight Deck Catapult during remodeling"})
 +
end
 +
if remodel_report then
 +
table.insert(self._categories, format{"Category:Ships that consume Action Report during remodeling"})
 +
end
 +
if remodel_gunmat then
 +
table.insert(self._categories, format{"Category:Ships that consume New Model Gun Mount Improvement Material during remodeling"})
 +
end
 +
if remodel_airmat then
 +
table.insert(self._categories, format{"Category:Ships that consume New Model Aerial Armament Material during remodeling"})
 
end
 
end
 
end
 
end
advmod, cssedit, janitor, Moderators, prechecked, Widget editors
6,964

edits

Navigation menu