summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-04-10 16:00:04 +0200
committerFedja Beader <fedja@protonmail.ch>2024-04-10 16:07:41 +0200
commit01a27d4af7e54736a7922aec23f6f4e3e21f0965 (patch)
treef33eb702f0506b9fb4ca3e21dc50eed06c283404 /src/map
parentebf078b9fa81142834dc45e22ea661a61c50d17b (diff)
downloadtmwa-01a27d4af7e54736a7922aec23f6f4e3e21f0965.tar.gz
tmwa-01a27d4af7e54736a7922aec23f6f4e3e21f0965.tar.bz2
tmwa-01a27d4af7e54736a7922aec23f6f4e3e21f0965.tar.xz
tmwa-01a27d4af7e54736a7922aec23f6f4e3e21f0965.zip
Report (hardcoded) drop rates on same line as base/job exp, reword messages.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index eaefd4f..d9ec555 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -1681,7 +1681,7 @@ ATCE atcommand_exprate(Session *s, dumb_ptr<map_session_data>,
}
battle_config.base_exp_rate = rate;
battle_config.job_exp_rate = rate;
- AString output = STRPRINTF("All Xp at %d percent"_fmt, rate);
+ AString output = STRPRINTF("Base & job XP rates now at %d percent"_fmt, rate);
clif_displaymessage(s, output);
return ATCE::OKAY;
}
@@ -1690,9 +1690,9 @@ static
ATCE atcommand_rates(Session *s, dumb_ptr<map_session_data>,
ZString message)
{
- AString output = STRPRINTF("Experience rates: Base %d%% / Job %d%%"_fmt, battle_config.base_exp_rate, battle_config.job_exp_rate);
- clif_displaymessage(s, output);
- output = STRPRINTF("Drop rate: 100%%"_fmt);
+ AString output = STRPRINTF(
+ "Experience rates: Base %d%% / Job %d%%. Drop rate: 100%%"_fmt,
+ battle_config.base_exp_rate, battle_config.job_exp_rate);
clif_displaymessage(s, output);
return ATCE::OKAY;
}
@@ -5599,10 +5599,10 @@ Map<XString, AtCommandInfo> atcommand_info =
"Enable PvP on your map"_s}},
{"exprate"_s, {"<percent>"_s,
60, atcommand_exprate,
- "Set base job/exp rate"_s}},
+ "Set base and job exp rate"_s}},
{"rates"_s, {""_s,
0, atcommand_rates,
- "Show base job/exp rate"_s}},
+ "Show base and job exp rates"_s}},
{"pvpon"_s, {""_s,
60, atcommand_pvpon,
"Disable PvP on your map"_s}},