Skip to content

Commit

Permalink
Add meteors from DeepWoods to analyze option
Browse files Browse the repository at this point in the history
  • Loading branch information
Albrekka committed Jan 20, 2024
1 parent 03583f5 commit d287ea8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ private static void CheckTileAnalyzeLocations(Farmer player, List<string> spells
var tile = player.currentLocation.map.GetLayer("Buildings").Tiles[(int)tilePos.X, (int)tilePos.Y];
if (tile != null && tile.TileIndex == MINE_LADDER)
spellsLearned.Add(ANALYZE_DESCEND_AP_LOCATION);
if (player.currentLocation is Farm farm)
if (player.currentLocation is Farm farm || player.currentLocation.Name.Contains("DeepWoods"))
{
foreach (var clump in farm.resourceClumps)
foreach (var clump in player.currentLocation.resourceClumps)
{
if (clump.parentSheetIndex.Value == CROP_TILE &&
new Rectangle((int)clump.tile.Value.X, (int)clump.tile.Value.Y, clump.width.Value, clump.height.Value).Contains((int)tilePos.X, (int)tilePos.Y))
Expand Down

0 comments on commit d287ea8

Please sign in to comment.