Fixed bug

master
Mohammad Shoaib 2022-04-15 14:49:40 +05:30
parent 4351182984
commit a0b6159df8
1 changed files with 7 additions and 5 deletions

View File

@ -858,14 +858,16 @@ namespace stardew_access.Features
string toSpeak = $"Parrot required nuts {perch.requiredNuts.Value}";
if (perch.currentState == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Complete)
return $"Request Completed";
else if (perch.currentState == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Idle)
if (!perch.IsAvailable())
return "Empty parrot perch";
else if (perch.currentState.Value == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Idle)
return toSpeak;
else if (perch.currentState == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.StartBuilding)
else if (perch.currentState.Value == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.StartBuilding)
return "Parrots started building request";
else if (perch.currentState == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Building)
else if (perch.currentState.Value == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Building)
return "Parrots building request";
else if (perch.currentState.Value == StardewValley.BellsAndWhistles.ParrotUpgradePerch.UpgradeState.Complete)
return $"Request Completed";
else
return toSpeak;
}