| Line 3: |
Line 3: |
| | local Ship = require('Module:Ship') | | local Ship = require('Module:Ship') |
| | | | |
| − | local format = require('Module:Utils').format | + | local format = require('Module:Core').format |
| | | | |
| | local ShipCategoriesKai = BaseData{ | | local ShipCategoriesKai = BaseData{ |
| Line 59: |
Line 59: |
| | | | |
| | function ShipCategoriesKai:create_remodel_categories() | | function ShipCategoriesKai:create_remodel_categories() |
| − | 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 self._ship:remodel_blueprint() then |
| − | if remodel_development_material then
| + | table.insert(self._categories, 'Category:Ships that consume Blueprint during remodeling') |
| − | table.insert(self._categories, format{"Category:Ships that consume Development Material during remodeling"}) | |
| | end | | end |
| − | if remodel_construction_material then | + | if self._ship:remodel_catapult() then |
| − | table.insert(self._categories, format{"Category:Ships that consume Instant Construction Material during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume Prototype Flight Deck Catapult during remodeling') |
| | end | | end |
| − | if remodel_blueprint then | + | if self._ship:remodel_report() then |
| − | table.insert(self._categories, format{"Category:Ships that consume Blueprint during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume Action Report during remodeling') |
| | end | | end |
| − | if remodel_catapult then | + | if self._ship:remodel_gunmat() then |
| − | table.insert(self._categories, format{"Category:Ships that consume Prototype Flight Deck Catapult during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume New Model Gun Mount Improvement Material during remodeling') |
| | end | | end |
| − | if remodel_report then | + | if self._ship:remodel_airmat() then |
| − | table.insert(self._categories, format{"Category:Ships that consume Action Report during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume New Model Aerial Armament Material during remodeling') |
| | end | | end |
| − | if remodel_gunmat then | + | if self._ship:remodel_armament() then |
| − | table.insert(self._categories, format{"Category:Ships that consume New Model Gun Mount Improvement Material during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume New Model Armament Material during remodeling') |
| | end | | end |
| − | if remodel_airmat then | + | if self._ship:remodel_development_material() then |
| − | table.insert(self._categories, format{"Category:Ships that consume New Model Aerial Armament Material during remodeling"}) | + | table.insert(self._categories, 'Category:Ships that consume Development Material during remodeling') |
| | + | end |
| | + | if self._ship:remodel_construction_material() then |
| | + | table.insert(self._categories, 'Category:Ships that consume Instant Construction Material during remodeling') |
| | end | | end |
| | end | | end |