Changes

m
no edit summary
Line 29: Line 29:  
     _blank = "Empty_ship_slot.png",
 
     _blank = "Empty_ship_slot.png",
 
     _default_size = "120x165px",
 
     _default_size = "120x165px",
 +
    _route = "",
 
     _elos = 0,
 
     _elos = 0,
 
     _fighter_power = 0,
 
     _fighter_power = 0,
 
     _hq_lvl = 0
 
     _hq_lvl = 0
 
})
 
})
  −
NanaminFleet._route = ""
      
function NanaminFleet:create_table_prep()
 
function NanaminFleet:create_table_prep()
Line 237: Line 236:  
)
 
)
 
    end
 
    end
        elseif row_values == "extra" then
+
    elseif row_values == "extra" then
 +
            table.insert(self._rows, self._row_starter)
 +
            table.insert(self._rows, format{self._route_cell_template,
 +
                random_thing = "",
 +
                route = self._route
 +
            })
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, format{self._calculated_cell_template,
 
             table.insert(self._rows, format{self._calculated_cell_template,
 
                 elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61)),
 
                 elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61)),
 
                 fighter_power = self._fighter_power
 
                 fighter_power = self._fighter_power
            })
  −
            table.insert(self._rows, self._row_starter)
  −
            table.insert(self._rows, format{self._route_cell_template,
  −
                random_thing = "",
  −
                route = self._route
   
             })
 
             })
 
end
 
end
48

edits