summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-10 11:25:10 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-10 11:25:10 +0000
commit21bf9d94dbcc22ce48aa26c9d0ddca85602c06b0 (patch)
tree90a1204040fcc2d53892c3d3ecf41bff2625b0dd /src/map/atcommand.c
parent85fe5276718f952fc20c70df863f2438430d73f8 (diff)
downloadhercules-21bf9d94dbcc22ce48aa26c9d0ddca85602c06b0.tar.gz
hercules-21bf9d94dbcc22ce48aa26c9d0ddca85602c06b0.tar.bz2
hercules-21bf9d94dbcc22ce48aa26c9d0ddca85602c06b0.tar.xz
hercules-21bf9d94dbcc22ce48aa26c9d0ddca85602c06b0.zip
Made the rates command much more verbose.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14371 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b2f543092..7b8dfd0ae 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7595,13 +7595,22 @@ int atcommand_mutearea(const int fd, struct map_session_data* sd, const char* co
int atcommand_rates(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
- char buf[255];
+ char buf[CHAT_SIZE_MAX];
- nullpo_retr(0, sd);
-
- sprintf(buf, "Experience rates: Base %.1fx / Job %.1fx",
- battle_config.base_exp_rate/100., battle_config.job_exp_rate/100.);
+ nullpo_ret(sd);
+ memset(buf, '\0', sizeof(buf));
+ snprintf(buf, CHAT_SIZE_MAX, "Experience rates: Base %.2fx / Job %.2fx",
+ battle_config.base_exp_rate/100., battle_config.job_exp_rate/100.);
+ clif_displaymessage(fd, buf);
+ snprintf(buf, CHAT_SIZE_MAX, "Normal Drop Rates: Common %.2fx / Healing %.2fx / Usable %.2fx / Equipment %.2fx / Card %.2fx",
+ battle_config.item_rate_common/100., battle_config.item_rate_heal/100., battle_config.item_rate_use/100., battle_config.item_rate_equip/100., battle_config.item_rate_card/100.);
+ clif_displaymessage(fd, buf);
+ snprintf(buf, CHAT_SIZE_MAX, "Boss Drop Rates: Common %.2fx / Healing %.2fx / Usable %.2fx / Equipment %.2fx / Card %.2fx",
+ battle_config.item_rate_common_boss/100., battle_config.item_rate_heal_boss/100., battle_config.item_rate_use_boss/100., battle_config.item_rate_equip_boss/100., battle_config.item_rate_card_boss/100.);
+ clif_displaymessage(fd, buf);
+ snprintf(buf, CHAT_SIZE_MAX, "Other Drop Rates: MvP %.2fx / Card-Based %.2fx / Treasure %.2fx",
+ battle_config.item_rate_mvp/100., battle_config.item_rate_adddrop/100., battle_config.item_rate_treasure/100.);
clif_displaymessage(fd, buf);
return 0;