示例#1
0
        // NYI comparison
        public EquipCompare CompareTo(Monster rhs)
        {
            if (Loadout.CompareSets(Current.Sets, rhs.Current.Sets) == 0)
            {
                return(EquipCompare.Unknown);
            }

            Stats a = GetStats();
            Stats b = rhs.GetStats();

            if (a.Health <= b.Health)
            {
                return(EquipCompare.Worse);
            }
            if (a.Attack <= b.Attack)
            {
                return(EquipCompare.Worse);
            }
            if (a.Defense <= b.Defense)
            {
                return(EquipCompare.Worse);
            }
            if (a.Speed <= b.Speed)
            {
                return(EquipCompare.Worse);
            }
            if (a.CritRate <= b.CritRate)
            {
                return(EquipCompare.Worse);
            }
            if (a.CritDamage <= b.CritDamage)
            {
                return(EquipCompare.Worse);
            }
            if (a.Accuracy <= b.Accuracy)
            {
                return(EquipCompare.Worse);
            }
            if (a.Resistance <= b.Resistance)
            {
                return(EquipCompare.Worse);
            }

            return(EquipCompare.Better);
        }