示例#1
0
        /// <summary>
        /// 返回角色技能的施展距离
        /// </summary>
        /// <param name="zhaoshi"></param>
        /// <param name="source"></param>
        /// <returns></returns>
        public int GetCastSize(BattleZhaoshiInstance zhaoshi, RoleInstance source)
        {
            if (zhaoshi.GetCastSize() == 0)
            {
                return(0);
            }
            var castsize = PreCastSizeAdjust(zhaoshi, source);

            castsize = PostRoleCastSizeAdjust(castsize, source);
            return(castsize);
        }
示例#2
0
        /// <summary>
        /// 角色施展技能前调整距离
        /// </summary>
        /// <param name="zhaoshi"></param>
        /// <param name="source"></param>
        /// <returns></returns>
        public static int PreCastSizeAdjust(BattleZhaoshiInstance zhaoshi, RoleInstance source)
        {
            var castsize = zhaoshi.GetCastSize();

            return(castsize);
        }