Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LegoFigure11 committed Nov 29, 2022
1 parent a93ca54 commit 2d12864
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
25 changes: 15 additions & 10 deletions Settings.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
namespace RaidCrawler.Properties {


namespace RaidCrawler.Properties
{


// This class allows you to handle specific events on the settings class:
// The SettingChanging event is raised before a setting's value is changed.
// The PropertyChanged event is raised after a setting's value is changed.
// The SettingsLoaded event is raised after the setting values are loaded.
// The SettingsSaving event is raised before the setting values are saved.
public sealed partial class Settings {

public Settings() {
public sealed partial class Settings
{

public Settings()
{
// // To add event handlers for saving and changing settings, uncomment the lines below:
//
// this.SettingChanging += this.SettingChangingEventHandler;
//
// this.SettingsSaving += this.SettingsSavingEventHandler;
//
}

private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {

private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
{
// Add code to handle the SettingChangingEvent event here.
}

private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {

private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
{
// Add code to handle the SettingsSaving event here.
}
}
Expand Down
6 changes: 3 additions & 3 deletions Structures/RaidFilters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public static bool IsIVsSatisfied(Raid raid, int StoryProgress)
{
int StarCount = Raid.GetStarCount(raid.Difficulty, StoryProgress, raid.IsBlack);
var ivs = raid.GetIVs(raid.Seed, StarCount - 1);
for (int i = 0; i < 6; i++)
for (int i = 0; i < 6; i++)
{
if (ivs[i] != ((IVVals >> (i * 5)) & 31) && ((IVBin >> i) & 1) == 1)
return false;
if (ivs[i] != ((IVVals >> (i * 5)) & 31) && ((IVBin >> i) & 1) == 1)
return false;
}
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions Subforms/FilterSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using RaidCrawler.Structures;
using PKHeX.Core;
using PKHeX.Core;
using RaidCrawler.Structures;

namespace RaidCrawler.Subforms
{
Expand Down

0 comments on commit 2d12864

Please sign in to comment.