Original report:
--- 8< --- 8< ---
From: Alex <3raf7@qlink.queensu.ca>
Ok.. found some minor problems.. and I possibly have a vague idea of how
to fix them, but I might be wrong... When you give someone 1 gold coin...
they get a msg like '<name> gives you 1 gold coins.'
This is in the sprintf as
("%s gives you %d gold coins.", playername, amount);
(or something like that at least)
Anyways.. mebbe it should be something like this:
("%s gives you %d gold coin%s.", playername, amount, amount==1 ? "" : "s");
--- 8< --- 8< ---
Simple fix, just as he detailed.
diff -upr stk/act.item.c 146/act.item.c
--- stk/act.item.c Sat Jun 6 16:00:59 1998
+++ 146/act.item.c Sat Jun 6 17:25:39 1998
@@ -568,7 +568,7 @@ void perform_give_gold(struct char_data
return;
}
send_to_char(OK, ch);
- sprintf(buf, "$n gives you %d gold coins.", amount);
+ sprintf(buf, "$n gives you %d gold coin%s.", amount, amount == 1 ? "" : "s");
act(buf, FALSE, ch, 0, vict, TO_VICT);
sprintf(buf, "$n gives %s to $N.", money_desc(amount));
act(buf, TRUE, ch, 0, vict, TO_NOTVICT);
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/ | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- 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