summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 16:03:28 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 16:03:28 +0000
commitfdc56c485b839f78ae7d777f8a6e745825a8bc3d (patch)
treed5ce890bfabcc8e116fe058fc74e8bd017ef88f5 /src/map/itemdb.h
parent9ee5081a5ef7b8aa20cfdd992cad280665b5ed7f (diff)
downloadhercules-fdc56c485b839f78ae7d777f8a6e745825a8bc3d.tar.gz
hercules-fdc56c485b839f78ae7d777f8a6e745825a8bc3d.tar.bz2
hercules-fdc56c485b839f78ae7d777f8a6e745825a8bc3d.tar.xz
hercules-fdc56c485b839f78ae7d777f8a6e745825a8bc3d.zip
- Items now store the top MAX_SEARCH drops from mobs and lists them through the new atcommand @whodrops. All merged from my server, of course =D
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5515 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index c43863155..d95d64a43 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -15,6 +15,11 @@ struct item_data {
int value_sell;
int type;
int maxchance; //For logs, for external game info, for scripts: Max drop chance of this item (e.g. 0.01% , etc.. if it = 0, then monsters don't drop it) [Lupus]
+ struct {
+ unsigned short chance;
+ int id;
+ } mob[MAX_SEARCH]; //Holds the mobs that have the highest drop rate for this item. [Skotlex]
+
int sex;
int equip;
int weight;