public override int GetHashCode() { int hashCode = -793958728; hashCode = hashCode * -1521134295 + LootSize.GetHashCode(); hashCode = hashCode * -1521134295 + LootValue.GetHashCode(); hashCode = hashCode * -1521134295 + Service.GetHashCode(); hashCode = hashCode * -1521134295 + Price.GetHashCode(); return(hashCode); }
protected bool CanCreateById(LootValue v, int meters) { return(meters >= v.range.x && (meters < v.range.y || v.range.y == -1)); }