Piety is gained by various actions and is used to pay for praying.

(I'll let you handle the structure, lol)

Sacrificed stomafilia gives:

Blessed: 298 Uncursed: 238 Cursed: 118

The difference between uncursed and blessed is small compared to the difference in satiation value, which is normally the determinant of piety value of sacrificed food.