Re: Renting buglet

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/18/98


On Wed, 18 Mar 1998, Andrey Fidrya wrote:

>Reported by players:
>you must have money for at least 1 day of rent at hands or you will be unable
>to rent out, even if you have enough money in bank.

I'll buy that. (Pun not intended.)

diff -uprN -X .exclude stk/objsave.c renting/objsave.c
--- stk/objsave.c       Wed Oct 29 00:16:28 1997
+++ renting/objsave.c   Wed Mar 18 21:22:54 1998
@@ -751,7 +751,7 @@ int Crash_offer_rent(struct char_data *
     sprintf(buf, "$n tells you, 'For a total of %ld coins%s.'",
            totalcost, (factor == RENT_FACTOR ? " per day" : ""));
     act(buf, FALSE, receptionist, 0, ch, TO_VICT);
-    if (totalcost > GET_GOLD(ch)) {
+    if (totalcost > GET_GOLD(ch) + GET_BANK_GOLD(ch)) {
       act("$n tells you, '...which I see you can't afford.'",
          FALSE, receptionist, 0, ch, TO_VICT);
       return (0);
@@ -804,7 +804,7 @@ int gen_receptionist(struct char_data *
     else if (mode == CRYO_FACTOR)
       sprintf(buf, "$n tells you, 'It will cost you %d gold coins to be frozen.'", cost);
     act(buf, FALSE, recep, 0, ch, TO_VICT);
-    if (cost > GET_GOLD(ch)) {
+    if (cost > GET_GOLD(ch) + GET_BANK_GOLD(ch)) {
       act("$n tells you, '...which I see you can't afford.'",
          FALSE, recep, 0, ch, TO_VICT);
       return TRUE;

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST