Changes

Support creating by reference
Line 29: Line 29:  
return ship
 
return ship
 
end
 
end
 +
end
 +
 +
function Ship:create_from_reference(reference, base)
 +
name, model = self:process_ship_key(reference)
 +
if not name then
 +
name = base
 +
end
 +
return self(name, model)
 
end
 
end
  
Anonymous user