예제 #1
0
        /// <summary>
        /// Get the maximum value of the current <see cref="BaseParam"/> for a specific <see cref="EquipSlotCategory"/>.
        /// </summary>
        /// <param name="category"><see cref="EquipSlotCategory"/> to get the maximum parameter value for.</param>
        /// <returns>Returns the maximum value for the current <see cref="BaseParam"/> on <c>category</c>.</returns>
        public int GetMaximum(EquipSlotCategory category)
        {
            const int Offset = 3;

            return(category.Key == 0 ? 0 : Convert.ToInt32(this[Offset + category.Key]));
        }
예제 #2
0
 /// <summary>
 /// Get the maximum value of the current <see cref="BaseParam"/> for a specific <see cref="EquipSlotCategory"/>.
 /// </summary>
 /// <param name="category"><see cref="EquipSlotCategory"/> to get the maximum parameter value for.</param>
 /// <returns>Returns the maximum value for the current <see cref="BaseParam"/> on <c>category</c>.</returns>
 public int GetMaximum(EquipSlotCategory category)
 {
     const int Offset = 2;
     return category.Key == 0 ? 0 : Convert.ToInt32(this[Offset + category.Key]);
 }