diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-14 08:05:57 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-14 08:05:57 +0000 |
commit | 46e3a8ecf6c3582876e195a62add9a5ccf3dd62c (patch) | |
tree | ef326fa4e4ca883f56e52902989324e67f91446c /src/map/itemdb.c | |
parent | 941f5e48a3847e968e57f1f3b0a56cd2ed097682 (diff) | |
download | hercules-46e3a8ecf6c3582876e195a62add9a5ccf3dd62c.tar.gz hercules-46e3a8ecf6c3582876e195a62add9a5ccf3dd62c.tar.bz2 hercules-46e3a8ecf6c3582876e195a62add9a5ccf3dd62c.tar.xz hercules-46e3a8ecf6c3582876e195a62add9a5ccf3dd62c.zip |
Added equipment max-level support as per manager Kenpachi request (required for upcoming renewal items).
- in renewal mode item_db's elv field now supports a optional elvmax separated by a colon, example:
- 65:70 in the elv field means the item can only be worn by characters whose level is within 65~70 base level range.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16632 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 7c28641fc..3f9af41c0 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1039,7 +1039,11 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr } id->wlv = cap_value(atoi(str[15]), REFINE_TYPE_ARMOR, REFINE_TYPE_MAX); +#ifdef RENEWAL + itemdb_re_split_atoi(str[16],&id->elv,&id->elvmax); +#else id->elv = atoi(str[16]); +#endif id->flag.no_refine = atoi(str[17]) ? 0 : 1; //FIXME: verify this id->look = atoi(str[18]); |