Skip to content

Commit

Permalink
Merge pull request #578 from Dylan5198/master
Browse files Browse the repository at this point in the history
Added watered status onto UI when crop is hovered
  • Loading branch information
drewhoener authored Oct 22, 2024
2 parents 099b7e3 + 9197924 commit 70a5f28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UIInfoSuite2/UIElements/ShowCropAndBarrelTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ public static bool CropRender(TerrainFeature? terrain, List<string> entries)
string cropName = DropsHelper.GetCropHarvestName(crop);
string daysLeftStr = daysLeft <= 0 ? I18n.ReadyToHarvest() : $"{daysLeft} {I18n.Days()}";
entries.Add($"{cropName}: {daysLeftStr}");

string waterStatus = hoeDirt.state.Value == 1 ? I18n.Watered() : I18n.NotWatered();
entries.Add(waterStatus);

if (!string.IsNullOrEmpty(fertilizerStr))
{
fertilizerStr = $"({I18n.With()} {fertilizerStr})";
Expand Down
2 changes: 2 additions & 0 deletions UIInfoSuite2/i18n/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"ReadyToHarvest": "Ready to harvest!",
"With": "with",
"Fertilized": "fertilized",
"Watered": "Watered",
"NotWatered": "Not Watered",
"DoesNotProduceThisSeason": "Does not produce this season",
//Tree
"Stump": "stump",
Expand Down

0 comments on commit 70a5f28

Please sign in to comment.