summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 01:09:43 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 01:09:43 +0000
commit6efb781ea3ddffb95d092d2b6eb8acc89d8321a7 (patch)
tree1f91c102966751e5344786c92ab95f2bf75c8d98 /src/map/atcommand.c
parent1f0bc37cc36905aee233498c16500e038d8224e8 (diff)
downloadhercules-6efb781ea3ddffb95d092d2b6eb8acc89d8321a7.tar.gz
hercules-6efb781ea3ddffb95d092d2b6eb8acc89d8321a7.tar.bz2
hercules-6efb781ea3ddffb95d092d2b6eb8acc89d8321a7.tar.xz
hercules-6efb781ea3ddffb95d092d2b6eb8acc89d8321a7.zip
Fixed bugreport:5295 Added a config so each server owner may decide whether their users are to view the actual data or not, requires RENEWAL_DROP
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16337 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index f52685855..0bf57ea52 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6715,12 +6715,18 @@ ACMD_FUNC(mobinfo)
strcpy(atcmd_output, " ");
j = 0;
for (i = 0; i < MAX_MOB_DROP; i++) {
+ int droprate;
if (mob->dropitem[i].nameid <= 0 || mob->dropitem[i].p < 1 || (item_data = itemdb_exists(mob->dropitem[i].nameid)) == NULL)
continue;
+ droprate = mob->dropitem[i].p;
+#ifdef RENEWAL_DROP
+ if( battle_config.atcommand_mobinfo_type )
+ droprate = droprate * party_renewal_drop_mod(sd->status.base_level - mob->lv) / 100;
+#endif
if (item_data->slot)
- sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_data->jname, item_data->slot, (float)mob->dropitem[i].p / 100);
+ sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_data->jname, item_data->slot, (float)droprate / 100);
else
- sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)mob->dropitem[i].p / 100);
+ sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)droprate / 100);
strcat(atcmd_output, atcmd_output2);
if (++j % 3 == 0) {
clif_displaymessage(fd, atcmd_output);
@@ -7150,7 +7156,7 @@ ACMD_FUNC(iteminfo)
if (item_data->maxchance == -1)
strcpy(atcmd_output, " - Available in the shops only.");
- else if (item_data->maxchance)
+ else if (!battle_config.atcommand_mobinfo_type && item_data->maxchance)
sprintf(atcmd_output, " - Maximal monsters drop chance: %02.02f%%", (float)item_data->maxchance / 100 );
else
strcpy(atcmd_output, " - Monsters don't drop this item.");