diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-28 15:53:03 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-28 15:53:03 +0000 |
commit | d8a8a34e4999d52b0bedf88f8232f001be1ec7a2 (patch) | |
tree | 98c074355f2660cc55f1ebf2c5081fbf4f9bbe31 /src/map/atcommand.c | |
parent | 64cd11e4ddf883d3861277f778aaf17fea0f2632 (diff) | |
download | hercules-d8a8a34e4999d52b0bedf88f8232f001be1ec7a2.tar.gz hercules-d8a8a34e4999d52b0bedf88f8232f001be1ec7a2.tar.bz2 hercules-d8a8a34e4999d52b0bedf88f8232f001be1ec7a2.tar.xz hercules-d8a8a34e4999d52b0bedf88f8232f001be1ec7a2.zip |
- Added constant MAX_MOB_DROP to specify the amount of normal drops a mob has. The mob_db reading code will automatically parse the file according to the number of drops expected (the Mexp/Mper and MVP item rewards must still be after the normal drops). Set to 10 currently.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6347 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 4a27100c6..90069f409 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9370,7 +9370,7 @@ int atcommand_mobinfo( clif_displaymessage(fd, " Drops:");
strcpy(atcmd_output, " ");
j = 0;
- for (i = 0; i < 10; i++) {
+ for (i = 0; i < MAX_MOB_DROP; i++) {
if (mob->dropitem[i].nameid <= 0 || (item_data = itemdb_search(mob->dropitem[i].nameid)) == NULL)
continue;
if (mob->dropitem[i].p > 0) {
|