discovershipwrecks((earlier) => { if(earlier.includes('dialogue')) { engageindialogue('rekindle from the beginning'); } else { givethecoldshoulder(); } }, revealsecret('sacred')).foreach(function(shipwreck) { exploit(shipwreck); });