$DEITY. If it's a multidrop, only the last item will trigger the altar-offer to avoid spammy messages. Interrupted multidrop will not do the offer, nor will the offer happen if prayer ends before the last item is dropped.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@821 c06c8d41-db1a-0410-9941-cceddc491573
XKAJWK6MPHS3ZCZIPPLTIMOPF6AROGLRDDCS6EFE3IGE4AHT7MYQC
i = igrd[you.x_pos][you.y_pos];
offer_items();
} // end altar_prayer()
void offer_items()
{
if (you.religion == GOD_NO_GOD)
return;
char subst_id[4][50];
memset(subst_id, 1, sizeof subst_id);
int i = igrd[you.x_pos][you.y_pos];
if ( !grid_destroys_items(my_grid) &&
!copy_item_to_grid( you.inv[item_dropped],
you.x_pos, you.y_pos, quant_drop, true )) {
if ( !grid_destroys_items(my_grid)
&& !copy_item_to_grid( you.inv[item_dropped],
you.x_pos, you.y_pos, quant_drop, true ))
{