Line 86: |
Line 86: |
| function NanaminFleet:create_items() | | function NanaminFleet:create_items() |
| local row1, row2, row3, row4 = {}, {}, {}, {} | | local row1, row2, row3, row4 = {}, {}, {}, {} |
− | local los, fighter_power = 0, 0
| |
| local ship_item1, ship_item2 | | local ship_item1, ship_item2 |
| for index, item_key in ipairs(self._args) do | | for index, item_key in ipairs(self._args) do |
Line 128: |
Line 127: |
| } | | } |
| if multiplier[item:type()] ~= nil then | | if multiplier[item:type()] ~= nil then |
− | los = los + (item:los() * multiplier[item:type()]) | + | self._elos = self._elos + (item:los() * multiplier[item:type()]) |
| end | | end |
− | fighter_power = fighter_power + math.floor(math.sqrt(select(2, ship:slot(slot_number)))) | + | self._fighter_power = self._fighter_power + math.floor(math.sqrt(select(2, ship:slot(slot_number)))) |
| end | | end |
| end | | end |
Line 157: |
Line 156: |
| end | | end |
| table.insert(self._items, "extra") | | table.insert(self._items, "extra") |
− | self._elos = los
| |
− | self._fighter_power = fighter_power
| |
| end | | end |
| | | |