Skip to content

Commit

Permalink
Merge pull request #414 from Vivelin/bug-fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
MattEqualsCoder authored Oct 24, 2023
2 parents 0935394 + cf2ff67 commit 1b3b1e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Randomizer.App/Controls/RomListPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void CheckSpeechRecognition()
/// <param name="rom">The rom to launch</param>
public void QuickLaunchRom(GeneratedRom rom)
{
var launchButtonOptions = (LaunchButtonOptions)Options.GeneralOptions.LaunchButton;
var launchButtonOptions = Options.GeneralOptions.LaunchButtonOption;

if (launchButtonOptions is LaunchButtonOptions.PlayAndTrack or LaunchButtonOptions.OpenFolderAndTrack or LaunchButtonOptions.TrackOnly)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,16 @@ private void UpdateLightWorldRewards()
}
}

if (!World.Config.ZeldaKeysanity && rewards.Count(x => x == RewardType.CrystalRed || x == RewardType.CrystalBlue) == 3)
if (!World.Config.ZeldaKeysanity)
{
_tracker.SayOnce(x => x.AutoTracker.LightWorldAllCrystals);
}
else if (rewards.Count == 0)
{
_tracker.Say(x => x.AutoTracker.LookedAtNothing);
if (rewards.Count(x => x == RewardType.CrystalRed || x == RewardType.CrystalBlue) == 3)
{
_tracker.SayOnce(x => x.AutoTracker.LightWorldAllCrystals);
}
else if (rewards.Count == 0)
{
_tracker.Say(x => x.AutoTracker.LookedAtNothing);
}
}

// If all dungeons are marked, save the light world as updated
Expand Down Expand Up @@ -154,13 +157,16 @@ protected void UpdateDarkWorldRewards()
var isMiseryMirePendant = (World.MiseryMire as IDungeon).IsPendantDungeon;
var isTurtleRockPendant = (World.TurtleRock as IDungeon).IsPendantDungeon;

if (!World.Config.ZeldaKeysanity && isMiseryMirePendant && isTurtleRockPendant)
if (!World.Config.ZeldaKeysanity)
{
_tracker.SayOnce(x => x.AutoTracker.DarkWorldNoMedallions);
}
else if (rewards.Count == 0)
{
_tracker.Say(x => x.AutoTracker.LookedAtNothing);
if (isMiseryMirePendant && isTurtleRockPendant)
{
_tracker.SayOnce(x => x.AutoTracker.DarkWorldNoMedallions);
}
else if (rewards.Count == 0)
{
_tracker.Say(x => x.AutoTracker.LookedAtNothing);
}
}

// If all dungeons are marked, save the light world as updated
Expand Down

0 comments on commit 1b3b1e1

Please sign in to comment.