Fixed giant crop narration

master
Mohammad Shoaib 2022-05-10 20:47:21 +05:30
parent 6acfd313e8
commit 7688bc0dd5
1 changed files with 11 additions and 22 deletions

View File

@ -92,6 +92,11 @@ namespace stardew_access.Features
toReturn = obj.name; toReturn = obj.name;
category = obj.category; category = obj.category;
} }
else if (resourceClump != null)
{
toReturn = resourceClump;
category = CATEGORY.ResourceClumps;
}
else if (terrainFeature.ContainsKey(tile)) else if (terrainFeature.ContainsKey(tile))
{ {
(string? name, CATEGORY category) tf = getTerrainFeatureAtTile(terrainFeature[tile]); (string? name, CATEGORY category) tf = getTerrainFeatureAtTile(terrainFeature[tile]);
@ -108,11 +113,6 @@ namespace stardew_access.Features
toReturn = bush; toReturn = bush;
category = CATEGORY.Bush; category = CATEGORY.Bush;
} }
else if (resourceClump != null)
{
toReturn = resourceClump;
category = CATEGORY.ResourceClumps;
}
else if (door != null) else if (door != null)
{ {
toReturn = door; toReturn = door;
@ -503,23 +503,6 @@ namespace stardew_access.Features
toReturn = "Fertilized " + toReturn; toReturn = "Fertilized " + toReturn;
} }
} }
else if (terrain.Get() is GiantCrop)
{
category = CATEGORY.Crops;
int whichCrop = ((GiantCrop)terrain.Get()).which.Value;
switch (whichCrop)
{
case 0:
toReturn = "Cauliflower";
break;
case 1:
toReturn = "Melon";
break;
case 2:
toReturn = "Pumpkin";
break;
}
}
else if (terrain.Get() is CosmeticPlant) else if (terrain.Get() is CosmeticPlant)
{ {
category = CATEGORY.Furnitures; category = CATEGORY.Furnitures;
@ -970,6 +953,12 @@ namespace stardew_access.Features
return "Mine Rock"; return "Mine Rock";
case 672: case 672:
return "Boulder"; return "Boulder";
case 190:
return "Giant Cauliflower";
case 254:
return "Giant Melon";
case 276:
return "Giant Pumpkin";
default: default:
return "Unknown"; return "Unknown";
} }