The good ending requires finishing everyone's quests, and exhausting their dialogue. Which means even if you start at max candy, all but the last costume are required.