// 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); }
public int SwapCost(Loadout l) { int cost = 0; for (int i = 0; i < 6; i++) { if (l.runes[i].AssignedName != Name) { // unequip current rune if (Current.runes[i] != null) cost += Current.runes[i].UnequipCost; // unequip new rune from host if (l.runes[i].AssignedName != "Unknown name" && l.runes[i].Swapped != true) { cost += l.runes[i].UnequipCost; } } } return cost; }