Exemplo n.º 1
0
 /// <summary>
 /// Determines whether the item level can be upgraded by using jewels of bless or soul.
 /// </summary>
 /// <param name="item">The item.</param>
 /// <returns>
 ///   <c>true</c> if the item level can be upgraded by using jewels of bless or soul; otherwise, <c>false</c>.
 /// </returns>
 public static bool CanLevelBeUpgraded(this Item item)
 {
     return(item.IsWearable() &&
            item.Definition !.ItemSlot !.ItemSlots.Any(slot => slot <= InventoryConstants.WingsSlot) &&
            item.Level < item.Definition.MaximumItemLevel);
 }