internal override bool CanEquipItem(ItemWrapper item, InventorySlot slot)
        {
            // We can't dual wield
            if (item.IsOneHand && slot == InventorySlot.RightHand)
            {
                return(false);
            }

            return(EquippableItemTypes.Contains(item.ItemType));
        }
Esempio n. 2
0
        internal override bool CanEquipItem(ItemWrapper item, InventorySlot slot)
        {
            bool hasHevenlyStrength = HeroClass.PassiveSkills.Contains(SNOPower.X1_Crusader_Passive_HeavenlyStrength);

            // We're a crusader and do NOT have Heavenly Strength
            if (!(hasHevenlyStrength && (item.IsTwoHand || item.IsShield)))
            {
                // Don't try to equip shields if we have a 2H equipped
                if (item.IsShield && Player.HasTwoHandEquipped)
                {
                    return(false);
                }

                // Don't try to equip 1H into RightHand if we have a 2H equipped
                if (Player.HasTwoHandEquipped && slot == InventorySlot.RightHand)
                {
                    return(false);
                }
            }

            if (item.IsOneHand && slot == InventorySlot.RightHand)
            {
                return(false);
            }

            bool isCrusaderItem = false;

            // Hax
            string internalName = item.InternalName.ToLower().Replace("x1_", "");

            if (CrusaderItemNames.Any(n => internalName.Contains(n)))
            {
                isCrusaderItem = true;
            }

            return(isCrusaderItem || EquippableItemTypes.Contains(item.ItemType));
        }
Esempio n. 3
0
 internal override bool CanEquipItem(ItemWrapper item, InventorySlot slot)
 {
     return(EquippableItemTypes.Contains(item.ItemType));
 }