summaryrefslogtreecommitdiff
path: root/src/emap/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-03 18:38:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-03 18:38:32 +0300
commitc558e3645f5154ee001e5ba8b295556316356ab0 (patch)
tree934ddc944e4f62390b62e3136c8c84d0e1a0ce66 /src/emap/itemdb.c
parent211787e349e0249fc032b3b51f8649af613f5ecf (diff)
downloadevol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.gz
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.bz2
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.xz
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.zip
Add support for MinRange in item_db.
If weapon used on range smaller than MinRange, weapon not attacking.
Diffstat (limited to 'src/emap/itemdb.c')
-rw-r--r--src/emap/itemdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c
index 366b05d..dc4fd2f 100644
--- a/src/emap/itemdb.c
+++ b/src/emap/itemdb.c
@@ -184,6 +184,9 @@ void eitemdb_readdb_additional_fields_pre(int *itemid,
}
}
+ if (itemdb->lookup_const(it, "MinRange", &i32))
+ data->minRange = i32;
+
hookStop();
}