Added quartz, etc. to mine item category

master
Mohammad Shoaib 2022-05-10 20:05:02 +05:30
parent cedf2dcc03
commit 6acfd313e8
1 changed files with 6 additions and 5 deletions

View File

@ -562,11 +562,6 @@ namespace stardew_access.Features
category = CATEGORY.Trees; category = CATEGORY.Trees;
toReturn = getTree((Tree)terrain.Get()); toReturn = getTree((Tree)terrain.Get());
} }
else if (terrain.Get() is Quartz)
{
category = CATEGORY.MineItems;
toReturn = "Quartz";
}
return (toReturn, category); return (toReturn, category);
} }
@ -674,6 +669,12 @@ namespace stardew_access.Features
toReturn.category = CATEGORY.Debris; toReturn.category = CATEGORY.Debris;
else if (obj.name.ToLower().Equals("twig")) else if (obj.name.ToLower().Equals("twig"))
toReturn.category = CATEGORY.Debris; toReturn.category = CATEGORY.Debris;
else if (obj.name.ToLower().Contains("quartz"))
toReturn.category = CATEGORY.MineItems;
else if (obj.name.ToLower().Contains("earth crystal"))
toReturn.category = CATEGORY.MineItems;
else if (obj.name.ToLower().Contains("frozen tear"))
toReturn.category = CATEGORY.MineItems;
else if (obj is Chest) else if (obj is Chest)
{ {
Chest chest = (Chest)obj; Chest chest = (Chest)obj;