From eb99864f0bce59888d198ce2e952f8d0bdd00a6d Mon Sep 17 00:00:00 2001 From: Fizban Date: Thu, 15 Jan 2009 22:18:29 +0000 Subject: [PATCH] Fix in do_set --- changelog | 1 + src/act.wizard.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 6920d84..3a9cb70 100644 --- a/changelog +++ b/changelog @@ -36,6 +36,7 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) [Jan 15 2009] - Fizban Immortals can now never have their hands full when you attempt to hand them an item. + Fixed message when setting gold abnormally high. [Jan 09 2009] - Fizban Fixed a bug in do_rescue allowing players to get twice as many attacks per round. (thanks Zordrac) Fixed Bug Where Questmaster rnums didn't previously update. (thanks Tails) diff --git a/src/act.wizard.c b/src/act.wizard.c index 5657dbb..d27e652 100644 --- a/src/act.wizard.c +++ b/src/act.wizard.c @@ -2777,7 +2777,7 @@ static int perform_set(struct char_data *ch, struct char_data *vict, int mode, c send_to_char(ch, "%s %s for %s.\r\n", set_fields[mode].cmd, ONOFF(on), GET_NAME(vict)); } else if (set_fields[mode].type == NUMBER) { value = atoi(val_arg); - send_to_char(ch, "%s's %s set to %d.\r\n", GET_NAME(vict), set_fields[mode].cmd, value); + send_to_char(ch, "%s's %s set to %d.\r\n", GET_NAME(vict), set_fields[mode].cmd, mode == 16 && value > 100000000 ? 100000000 : value); } else send_to_char(ch, "%s", CONFIG_OK);