--- deliantra/server/include/skills.h 2007/04/30 04:25:30 1.14 +++ deliantra/server/include/skills.h 2007/05/01 05:48:20 1.15 @@ -44,8 +44,9 @@ SF_COMBAT = 0x01, // skill is used only in direct attack combat SF_RANGED = 0x02, // skill is only used for ranged attacks SF_READY = 0x04, // skill can be used but is directionless - SF_NEED_WEAPON = 0x10, // skill requires a weapon object - SF_NEED_BOW = 0x20, // skill requires a bow object + SF_NEED_WEAPON = 0x08, // skill requires a weapon object + SF_NEED_BOW = 0x10, // skill requires a bow object + SF_NEED_ITEM = 0x20, // skill requires a bow object SF_MANA = 0x40, // skill requires a mana-consuming spell SF_GRACE = 0x80, // skill can use a grace-consuming spell }; @@ -66,6 +67,7 @@ * that should be used to calculate wc's and the like. */ #define IS_COMBAT_SKILL(num) (skill_flags [num] & SF_COMBAT) +#define IS_RANGED_SKILL(num) (skill_flags [num] & SF_RANGED) /* Like IS_COMBAT_SKILL above, but instead this is used to determine * how many mana points the player has.