Happy endings as collective action problem

I was a ten year old kid, reading the middle of the fourth book of the second series of Percy Jackson when I abruptly lost interest in the plot. Things were looking bleak for the protagonist. Some of them were stuck in the underworld. Others were battling for their lives. The forces of evil were looking pretty frickin' strong. But I realized, with a jolt, that none of this really mattered. Percy…