I'm pretty damn late, but I get the feeling as if the endings depend on how many resources you have, and which is in the most surplus. Salt will give you the "fighting" ending, I imagine that wine will give you a partying/greed ending, and I'm not sure what bread will give you (something justice-related likely).
I'm curious what would happen if you had the same number of resources for all.