summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-28 15:53:03 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-28 15:53:03 +0000
commitd8a8a34e4999d52b0bedf88f8232f001be1ec7a2 (patch)
tree98c074355f2660cc55f1ebf2c5081fbf4f9bbe31 /src/map/mob.h
parent64cd11e4ddf883d3861277f778aaf17fea0f2632 (diff)
downloadhercules-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/mob.h')
-rw-r--r--src/map/mob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index 2cb995ac0..3eea67ec4 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -10,6 +10,7 @@
#define MAX_RANDOMMONSTER 3
#define MAX_MOB_RACE_DB 6
#define MAX_MOB_DB 10000
+#define MAX_MOB_DROP 10
/* Change this to increase the table size in your mob_db to accomodate
a larger mob database. Be sure to note that IDs 4001 to 4048 are reserved for advanced/baby/expanded classes.
*/
@@ -46,7 +47,7 @@ struct mob_db {
short race2; // celest
int speed,adelay,amotion,dmotion;
int mexp,mexpper;
- struct { int nameid,p; } dropitem[10]; //8 -> 10 Lupus
+ struct { int nameid,p; } dropitem[MAX_MOB_DROP];
struct { int nameid,p; } mvpitem[3];
struct view_data vd;
short option;