Merge pull request #11 from TrueBlindGaming/master

fix for busy stones..mostly
This commit is contained in:
Mohammad Shoaib
2022-03-20 12:10:12 +05:30
committed by GitHub

View File

@@ -342,7 +342,7 @@ namespace stardew_access.Features
if (name != null && communityCenter.shouldNoteAppearInArea(CommunityCenter.getAreaNumberFromName(name)))
return $"{name} bundle";
}
else if (Game1.currentLocation is not AbandonedJojaMart)
else if (Game1.currentLocation is AbandonedJojaMart)
{
name = (x, y) switch
{
@@ -687,12 +687,13 @@ namespace stardew_access.Features
if (obj is Furniture)
toReturn.category = CATEGORY.Furnitures;
MachineState machineState = GetMachineState(obj);
if (machineState == MachineState.Ready)
toReturn.name = $"Harvestable {toReturn.name}";
else if (machineState == MachineState.Busy)
toReturn.name = $"Busy {toReturn.name}";
if(toReturn.category == CATEGORY.Others) {
MachineState machineState = GetMachineState(obj);
if (machineState == MachineState.Ready)
toReturn.name = $"Harvestable {toReturn.name}";
else if (machineState == MachineState.Busy)
toReturn.name = $"Busy {toReturn.name}";
}
return toReturn;
}