summaryrefslogtreecommitdiff
path: root/src/emap/struct
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/struct
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/struct')
-rw-r--r--src/emap/struct/itemdext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/struct/itemdext.h b/src/emap/struct/itemdext.h
index 9a428ba..f30d94c 100644
--- a/src/emap/struct/itemdext.h
+++ b/src/emap/struct/itemdext.h
@@ -34,6 +34,8 @@ struct ItemdExt
int unequipEffect;
int unequipFailEffect;
+ int minRange;
+
VECTOR_DECL(int) allowedAmmo;
VECTOR_DECL(struct ItemCardExt) allowedCards;
struct script_code *dropScript;