private static string _getUpper(JobGroup group) { if (group.Is(JobGroup.Trans) || group.Is(JobGroup.Trans2) || group.Is(JobGroup.Trans3) || group.Is(JobGroup.TransM)) { return("Trans "); } if (group.Is(JobGroup.Baby) || group.Is(JobGroup.Baby2) || group.Is(JobGroup.Baby3)) { return("Baby "); } //if (group.Id == JobGroup.Renewal.Id) // return "3rd "; return(""); }
public static Job Get(int id, JobGroup group) { Job job; if (_returnIf(id, group.Id, out job)) { return(job); } if (group.IsOnlySubsetOf(JobGroup.Baby)) { if (group.IsOnlySubsetOf(JobGroup.Baby3)) { if (_returnIf(id, JobGroup.Baby3.Id, out job)) { return(job); } } if (_returnIf(id, JobGroup.Baby2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Renewal)) { if (_returnIf(id, JobGroup.Normal3.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans3)) { if (_returnIf(id, JobGroup.Trans3.Id, out job)) { return(job); } } if (group.Is(JobGroup.TransM)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans2)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.IsBetween(JobGroup.PreRenewal, JobGroup.Renewal)) { if (_returnIf(id, JobGroup.Normal3.Id, out job)) { return(job); } } if (_returnIf(id, JobGroup.Normal2.Id, out job)) { return(job); } return(Get(id)); }
public static Job Get(long id, JobGroup group, int equipLevel = 0) { Job job; if (equipLevel >= 100) { group = JobGroup.Get(group.Id & ~JobGroup.PreRenewal.Id); } if (_returnIf(id, group.Id, out job)) { return(job); } if (group.IsOnlySubsetOf(JobGroup.Baby)) { if (group.IsOnlySubsetOf(JobGroup.Baby3)) { if (_returnIf(id, JobGroup.Baby3.Id, out job)) { return(job); } } if (_returnIf(id, JobGroup.Baby2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Renewal)) { if (_returnIf(id, JobGroup.Normal3.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans3)) { if (_returnIf(id, JobGroup.Trans3.Id, out job)) { return(job); } } if (group.Is(JobGroup.TransM)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans2)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.Is(JobGroup.Trans)) { if (_returnIf(id, JobGroup.Trans2.Id, out job)) { return(job); } } if (group.IsBetween(JobGroup.PreRenewal, JobGroup.Renewal)) { if (_returnIf(id, JobGroup.Normal3.Id, out job)) { return(job); } } if (_returnIf(id, JobGroup.Normal2.Id, out job)) { return(job); } return(Get(id)); }