Changes

no edit summary
Line 34: Line 34:  
return ship
 
return ship
 
end
 
end
 +
end
 +
 +
function Ship:process_ship_key_as_reference(reference, base)
 +
name, model = self:process_ship_key(reference)
 +
if not name then
 +
name = base
 +
end
 +
return name, model
 
end
 
end
   Line 54: Line 62:  
ship_table = {_name = name, _suffix = model}
 
ship_table = {_name = name, _suffix = model}
 
elseif type(ship_table) == "string" then
 
elseif type(ship_table) == "string" then
ship_table = self:get_table(self:process_ship_key(ship_table))
+
ship_table = self:get_table(self:process_ship_key_as_reference(ship_table, name))
 
end
 
end
 
--require failed
 
--require failed
Anonymous user