ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/shop.C
(Generate patch)

Comparing deliantra/server/server/shop.C (file contents):
Revision 1.55 by root, Sun Sep 21 23:21:49 2008 UTC vs.
Revision 1.58 by root, Tue Dec 16 23:25:25 2008 UTC

631 count--; 631 count--;
632 } 632 }
633 } 633 }
634 634
635 for (i = 0; i < NUM_COINS; i++) 635 for (i = 0; i < NUM_COINS; i++)
636 {
637 if (coin_objs[i]->nrof) 636 if (coin_objs[i]->nrof)
638 insert_ob_in_ob (coin_objs [i], pouch); 637 insert_ob_in_ob (coin_objs [i], pouch);
639 else 638 else
640 coin_objs[i]->destroy (); 639 coin_objs[i]->destroy ();
641 }
642} 640}
643 641
644/* Checks all unpaid items in op's inventory, adds up all the money they 642/* Checks all unpaid items in op's inventory, adds up all the money they
645 * have, and checks that they can actually afford what they want to buy. 643 * have, and checks that they can actually afford what they want to buy.
646 * Returns 1 if they can, and 0 if they can't. also prints an appropriate message 644 * Returns 1 if they can, and 0 if they can't. also prints an appropriate message
671 dynbuf_text buf; 669 dynbuf_text buf;
672 670
673 buf << "You have " << unpaid_count 671 buf << "You have " << unpaid_count
674 << " unpaid item(s) that would cost you " << cost_string_from_value (unpaid_price, 0) 672 << " unpaid item(s) that would cost you " << cost_string_from_value (unpaid_price, 0)
675 << ". You need another " << cost_string_from_value (unpaid_price - player_wealth, 0) 673 << ". You need another " << cost_string_from_value (unpaid_price - player_wealth, 0)
676 << " to be able to afford that."; 674 << " to be able to afford that. "
675 "H<You cannot leave a shop with items you cannot pay - drop those unpaid items first.>";
677 676
678 pl->failmsg (buf); 677 pl->failmsg (buf);
679 678
680 return 0; 679 return 0;
681 } 680 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines