Ginger Island gem birds added to TileInfo npcs category.

master
bradjrenshaw 2022-05-15 00:22:36 -04:00
parent bd806c077a
commit e4187a636a
1 changed files with 17 additions and 0 deletions

View File

@ -444,6 +444,10 @@ namespace stardew_access.Features
{ {
return (CATEGORY.Interactables, "Diggable spot"); return (CATEGORY.Interactables, "Diggable spot");
} }
else if (islandLocation.locationGemBird.Value is IslandGemBird bird && ((int)bird.position.X / Game1.tileSize) == x && ((int)bird.position.Y / Game1.tileSize) == y)
{
return (CATEGORY.NPCs, GetGemBirdName(bird));
}
else if (Game1.currentLocation is IslandWest islandWest) else if (Game1.currentLocation is IslandWest islandWest)
{ {
if (islandWest.shippingBinPosition.X == x && islandWest.shippingBinPosition.Y == y) if (islandWest.shippingBinPosition.X == x && islandWest.shippingBinPosition.Y == y)
@ -852,6 +856,19 @@ namespace stardew_access.Features
} }
#endregion #endregion
public static String GetGemBirdName(IslandGemBird bird)
{
return bird.itemIndex.Value switch
{
60 => "Emerald Gem Bird",
62 => "Aquamarine Gem Bird",
64 => "Ruby Gem Bird",
66 => "Amethyst Gem Bird",
68 => "Topaz",
_ => "Gem Bird",
};
}
public static bool isMineDownLadderAtTile(int x, int y) public static bool isMineDownLadderAtTile(int x, int y)
{ {
try try