Added twig to debris category
parent
730beeffaa
commit
672f9a1f00
|
@ -667,13 +667,14 @@ namespace stardew_access.Features
|
||||||
|
|
||||||
// Get object names based on index
|
// Get object names based on index
|
||||||
(string? name, CATEGORY category) correctNameAndCategory = getCorrectNameAndCategoryFromIndex(index);
|
(string? name, CATEGORY category) correctNameAndCategory = getCorrectNameAndCategoryFromIndex(index);
|
||||||
|
|
||||||
if (correctNameAndCategory.name != null)
|
if (correctNameAndCategory.name != null)
|
||||||
toReturn = correctNameAndCategory;
|
toReturn = correctNameAndCategory;
|
||||||
|
else if (obj.name.ToLower().Equals("stone"))
|
||||||
if (toReturn.name.ToLower().Equals("stone")) // Fix for `Busy stone`
|
|
||||||
toReturn.category = CATEGORY.Debris;
|
toReturn.category = CATEGORY.Debris;
|
||||||
|
else if (obj.name.ToLower().Equals("twig"))
|
||||||
if (obj is Chest)
|
toReturn.category = CATEGORY.Debris;
|
||||||
|
else if (obj is Chest)
|
||||||
{
|
{
|
||||||
Chest chest = (Chest)obj;
|
Chest chest = (Chest)obj;
|
||||||
toReturn = (chest.DisplayName, CATEGORY.Chests);
|
toReturn = (chest.DisplayName, CATEGORY.Chests);
|
||||||
|
|
Loading…
Reference in New Issue