Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Created April 16, 2018 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaleslimghost/12c67e7d9b7f42d171f0e48915e2e242 to your computer and use it in GitHub Desktop.
Save apaleslimghost/12c67e7d9b7f42d171f0e48915e2e242 to your computer and use it in GitHub Desktop.
const adjectives = [
'Lost',
'Fortress',
'Hidden',
'Eerie',
'Ruined',
'Sunken',
'Ghastly',
'Unknown',
'Evil',
];
const locales = [
'Mines',
'Dungeons',
'Caves',
'Mountains',
'Tower',
'Cavern',
'Lake',
'River',
'Castle',
'Keep',
'Mansion',
'Catacombs',
'Crypt',
];
const settlements = [
'Phandelver',
'Hawvale',
'Grenscombe',
'Woodcrest',
'Cransborne',
'Anemst',
'Askren',
'Reynford',
'Westreach',
'Erinport',
'Ponterin',
'Bridgefoot',
'Askemouth',
'Mirebend',
'Pentarr',
];
const pick = a => a[Math.floor(Math.random() * a.length)];
module.exports = () => `The ${pick(adjectives)} ${pick(locales)} of ${pick(settlements)}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment