 When the pirates bring out the book of the Pirate Code, Ragetti says  they are the rules first set down by "Morgan and Bartholomew." This  is a reference to the great pirates Henry Morgan and Bartholomew  "Black Bart" Roberts. Henry Morgan was a pirate renowned in his day  for the taking and sacking of several supposedly impenetrable  treasure towns, including Portobello, which was the Fort Knox of its  day. Roberts, though less famous, was on a par with Blackbeard and  Captain Kidd for successful ventures, and known for his fondness for  fine clothes and jewelry (thus serving as an archetype of the pirate  image popular today); he was also one of the first known pirates to  develop a code of honour to be followed by his crew on pain of  death. The Pirate Code referenced throughout the trilogy features  some of the precepts from this article. However, as Roberts was just  six years old when Morgan died, the likelihood of their having been  acquainted is somewhat small.