Skip to content

Commit

Permalink
Merge branch 'Skua' of https://github.com/BrenoHenrike/Scripts into Skua
Browse files Browse the repository at this point in the history
  • Loading branch information
wtffidy committed Jan 20, 2025
2 parents 255b6fb + 2db93dc commit c1f18a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CoreBots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5987,7 +5987,11 @@ private void ProceedToFilteringCases(HashSet<string> blackListedCells)
break;

case "xantown":
blackListedCells.UnionWith(Bot.Map.Cells?.Where(x => x != "r3").ToArray());
string[]? cells = Bot.Map.Cells?.Where(x => x != "r3").ToArray();
if (cells != null)
{
blackListedCells.UnionWith(cells);
}
break;

case "darkoviaforest":
Expand Down Expand Up @@ -6050,7 +6054,7 @@ private void ProceedToFilteringCases(HashSet<string> blackListedCells)
blackListedCells.Add("Eggs");

// Jump to a viable cell (or retry)
var viableCells = Bot.Map.Cells.Except(BlackListedJumptoCells.Concat(blackListedCells));
IEnumerable<string> viableCells = Bot.Map.Cells?.Except(BlackListedJumptoCells.Concat(blackListedCells)) ?? Enumerable.Empty<string>();
(string, string) cellPad = viableCells.Any()
? (viableCells.First(), "Left")
: (Bot.Player.Cell, Bot.Player.Pad);
Expand Down
2 changes: 1 addition & 1 deletion scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"null"
],
"path": "CoreBots.cs",
"size": 336335,
"size": 336498,
"fileName": "CoreBots.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/CoreBots.cs"
},
Expand Down

0 comments on commit c1f18a5

Please sign in to comment.