Line 103: |
Line 103: |
| function ShipRemodelListKai:remodel_level(ship) | | function ShipRemodelListKai:remodel_level(ship) |
| self._remodel_to = ship:remodel_to() | | self._remodel_to = ship:remodel_to() |
| + | self._remodel_is_reversion = false |
| local remodel_level = false | | local remodel_level = false |
| if self._remodel_to then | | if self._remodel_to then |
Line 214: |
Line 215: |
| | | |
| function ShipRemodelListKai:armament(ship) | | function ShipRemodelListKai:armament(ship) |
− | return self:get_remodel_item_count(ship, 'armament') | + | return self:remodel_item(ship, 'armament') |
| end | | end |
| | | |
Line 241: |
Line 242: |
| self._header = format(self._header_template, header_icons) | | self._header = format(self._header_template, header_icons) |
| self._header_bottom = format(self._header_template_bottom, header_icons) | | self._header_bottom = format(self._header_template_bottom, header_icons) |
| + | end |
| + | |
| + | function ShipRemodelListKai:test() |
| + | mw.log(ShipRemodelListKai:Table({iterator = 'shipsByType', type = '6', sort = '_class', listBase = 'true'})) |
| end | | end |
| | | |
| return ShipRemodelListKai | | return ShipRemodelListKai |