Beispiel #1
0
 /// <summary>
 /// Get the stash page where items should ideally be placed, ignoring if it can actually be placed there.
 /// </summary>
 public static int GetIdealStashPage(TrinityItem item)
 {
     if (item.IsEquipment && Core.Settings.Items.UseTypeStashingEquipment && ItemTypeMap.ContainsKey(item.RawItemType))
     {
         return(ItemTypeMap[item.RawItemType]);
     }
     else if (Core.Settings.Items.UseTypeStashingOther && ItemTypeMap.ContainsKey(item.RawItemType))
     {
         return(ItemTypeMap[item.RawItemType]);
     }
     if (item.ItemBaseType >= ItemBaseType.Misc)
     {
         return(TotalStashPages - 1);
     }
     return(-1);
 }
Beispiel #2
0
        /// <summary>
        /// Get the stash page where items should ideally be placed, ignoring if it can actually be placed there.
        /// </summary>
        public static int GetIdealStashPage(ACDItem item)
        {
            if (item.GetIsEquipment() &&
                Core.Settings.Items.UseTypeStashingEquipment &&
                ItemTypeMap.ContainsKey(item.GetRawItemType()))
            {
                return(ItemTypeMap[item.GetRawItemType()]);
            }

            if (Core.Settings.Items.UseTypeStashingOther &&
                ItemTypeMap.ContainsKey(item.GetRawItemType()))
            {
                return(ItemTypeMap[item.GetRawItemType()]);
            }

            if (item.ItemBaseType >= ItemBaseType.Misc)
            {
                return(TotalStashPages - 1);
            }

            return(-1);
        }