コード例 #1
0
        private bool EquipmentMatchInParameters(IEquipment equipment)
        {
            if (equipment.Rarity > InParameters.Rarity)
            {
                return(false);
            }

            if (InParameters.UseEquipmentOverride)
            {
                EquipmentViewModel found = AllEquipments.FirstOrDefault(x => x.Name == equipment.Name);
                if (found != null && found.IsPossessed == false)
                {
                    return(false);
                }
            }

            return(true);
        }