private void getspecialinfo(Frame_Misc f) { RNGPool.time_elapse7(Timedelay); f.frameused = RNGPool.index; if (FestivalPlaza) { f.frt = FPFacility.Generate(); } else if (BattleTree) { RNGPool.modelnumber = 2; RNGPool.ResetModelStatus(); RNGPool.time_elapse7(2); f.frameused = RNGPool.index; f.trt = BTTrainer.Generate(); } else if (filter.Random) { f.RandN = (int)(RNGPool.getrand64 % N); } else if (filter.Pokerus) { f.Pokerus = Pokerus7.getStrain(); } }
private void FacilityPool_Changed(object sender, EventArgs e) { int tmp = Facility.SelectedValue == null ? -1 : (int)Facility.SelectedValue; var List = FPFacility.getList((byte)Game.SelectedIndex, Stars.SelectedIndex).Select(t => new ComboItem(StringItem.FacilityName[t], t)).ToList(); List.Insert(0, new ComboItem("-", -1)); Facility.DisplayMember = "Text"; Facility.ValueMember = "Value"; Facility.DataSource = new BindingSource(List, null); if (List.Any(t => t.Value == tmp)) { Facility.SelectedValue = tmp; } }
// Filter public bool IsDifferentFrom(FPFacility result) { if (Star != 0 && Star != result.Star) { return(true); } if (Type >= 0 && Type != result.Type) { return(true); } if (NPC >= 0 && NPC != result.NPC) { return(true); } if (Color >= 0 && Color != result.Color) { return(true); } return(false); }