Added Harvestable prefix to crops

master
shoaib11120 2021-12-17 22:26:53 +05:30
parent e2a465af66
commit 6fb4cea854
1 changed files with 7 additions and 2 deletions

View File

@ -244,7 +244,6 @@ namespace stardew_access
string name = obj.name;
ScreenReader.say(name, true);
}
else if (terrainFeature.ContainsKey(gt))
{
@ -259,7 +258,7 @@ namespace stardew_access
string toSpeak = $"{cropName}";
bool isWatered = dirt.state.Value == HoeDirt.watered;
bool isHarvestable = dirt.crop.fullyGrown.Value;
bool isHarvestable = dirt.readyForHarvest();
bool isFertilized = dirt.fertilizer.Value != HoeDirt.noFertilizer;
if (isWatered)
@ -271,6 +270,7 @@ namespace stardew_access
if (isHarvestable)
toSpeak = "Harvestable " + toSpeak;
monitor.Log(toSpeak, LogLevel.Debug);
ScreenReader.say(toSpeak, true);
} else
{
@ -331,6 +331,7 @@ namespace stardew_access
else if (terrain.Get() is ResourceClump)
{
ResourceClump resourceClump = (ResourceClump)terrain.Get();
monitor.Log(Game1.objectInformation[resourceClump.parentSheetIndex], LogLevel.Debug);
string toSpeak = Game1.objectInformation[resourceClump.parentSheetIndex].Split('/')[0];
ScreenReader.say(toSpeak, true);
@ -376,6 +377,10 @@ namespace stardew_access
string toSpeak = "Leaf";
ScreenReader.say(toSpeak, true);
}
else
{
monitor.Log($"LTF {terrain.Get() is ResourceClump}", LogLevel.Debug);
}
}
}
}