From c558e3645f5154ee001e5ba8b295556316356ab0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Sep 2016 18:38:32 +0300 Subject: Add support for MinRange in item_db. If weapon used on range smaller than MinRange, weapon not attacking. --- src/emap/struct/itemdext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/emap/struct') 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; -- cgit v1.2.3-70-g09d2