Changes

Fix shared state bug
Line 37: Line 37:  
_night_battle_header_cell = [[! style="width: 24px; text-align: center; vertical-align: middle; background-color: slategrey;" | ${firepower}${torpedo}
 
_night_battle_header_cell = [[! style="width: 24px; text-align: center; vertical-align: middle; background-color: slategrey;" | ${firepower}${torpedo}
 
]],
 
]],
_columns = {
+
_base_columns = { --gets copied to self._columns in create_table_prep so we can mutate it. Don't mutate base_columns!
 
"id",
 
"id",
 
"name",
 
"name",
Line 281: Line 281:     
function EliteShipsKai:create_table_prep()
 
function EliteShipsKai:create_table_prep()
 +
    self._columns = {}
 +
    for _, column in ipairs(self._base_columns) do
 +
        table.insert(self._columns, column)
 +
    end
 
if self._args.reference_type then
 
if self._args.reference_type then
 
self._reference_types = {}
 
self._reference_types = {}
Anonymous user