Merge pull request #18 from bradjrenshaw/GemBirds

Ginger Island gem birds added to TileInfo npcs category.
master
Mohammad Shoaib 2022-05-15 12:29:13 +05:30 committed by GitHub
commit 3c76c424e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -444,6 +444,10 @@ namespace stardew_access.Features
{
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)
{
if (islandWest.shippingBinPosition.X == x && islandWest.shippingBinPosition.Y == y)
@ -852,6 +856,19 @@ namespace stardew_access.Features
}
#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",
_ => "Gem Bird",
};
}
public static bool isMineDownLadderAtTile(int x, int y)
{
try