public bool CanTrade(GtsRecord5 other) { if (IsExchanged != 0 || other.IsExchanged != 0) { return(false); } if (Species != other.RequestedSpecies) { return(false); } if (other.RequestedGender != Genders.Either && Gender != other.RequestedGender) { return(false); } if (!CheckLevels(other.RequestedMinLevel, other.RequestedMaxLevel, Level)) { return(false); } if (RequestedSpecies != other.Species) { return(false); } if (RequestedGender != Genders.Either && other.Gender != RequestedGender) { return(false); } if (!CheckLevels(RequestedMinLevel, RequestedMaxLevel, other.Level)) { return(false); } return(true); }
public void FlagTraded(GtsRecord5 other) { Species = other.Species; Gender = other.Gender; Level = other.Level; RequestedSpecies = other.RequestedSpecies; RequestedGender = other.RequestedGender; RequestedMinLevel = other.RequestedMinLevel; RequestedMaxLevel = other.RequestedMaxLevel; TimeDeposited = other.TimeDeposited; TimeWithdrawn = DateTime.UtcNow; PID = other.PID; IsExchanged = 0x01; }