From fdc56c485b839f78ae7d777f8a6e745825a8bc3d Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Mar 2006 16:03:28 +0000 Subject: - 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 --- src/map/itemdb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/itemdb.h') 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; -- cgit v1.2.3-70-g09d2