… | |
… | |
648 | unpaid_price += query_cost (item, pl, F_BUY | F_SHOP); |
648 | unpaid_price += query_cost (item, pl, F_BUY | F_SHOP); |
649 | } |
649 | } |
650 | |
650 | |
651 | if (unpaid_price > player_wealth) |
651 | if (unpaid_price > player_wealth) |
652 | { |
652 | { |
653 | dynbuf_text buf; |
653 | dynbuf_text &buf = msg_dynbuf; buf.clear (); |
654 | |
654 | |
655 | buf << "You have " << unpaid_count |
655 | buf << "You have " << unpaid_count |
656 | << " unpaid item(s) that would cost you " << cost_string_from_value (unpaid_price, 0) |
656 | << " unpaid item(s) that would cost you " << cost_string_from_value (unpaid_price, 0) |
657 | << ". You need another " << cost_string_from_value (unpaid_price - player_wealth, 0) |
657 | << ". You need another " << cost_string_from_value (unpaid_price - player_wealth, 0) |
658 | << " to be able to afford that. " |
658 | << " to be able to afford that. " |
… | |
… | |
1116 | |
1116 | |
1117 | /* Should never happen, but just in case a monster does apply a sign */ |
1117 | /* Should never happen, but just in case a monster does apply a sign */ |
1118 | if (!op->is_player ()) |
1118 | if (!op->is_player ()) |
1119 | return; |
1119 | return; |
1120 | |
1120 | |
1121 | dynbuf_text buf (4096, 4096); |
1121 | dynbuf_text &buf = msg_dynbuf; buf.clear (); |
1122 | |
1122 | |
1123 | if (!(shop_coords && sscanf (shop_coords, "%d,%d,%d,%d", &x1, &y1, &x2, &y2))) |
1123 | if (!(shop_coords && sscanf (shop_coords, "%d,%d,%d,%d", &x1, &y1, &x2, &y2))) |
1124 | { |
1124 | { |
1125 | x1 = 0; |
1125 | x1 = 0; |
1126 | y1 = 0; |
1126 | y1 = 0; |