Linux [1.6.9] Crop Fairy event chance not increased by fully grown Fairy Rose

mouahrara

Greenhorn
Information:
  • OS Version: Unix 6.10.10.1
  • Stardew Valley Version: 1.6.9 'beta' (build 24267)
  • Code Decompiled with: Avalonia ILSpy 7.2 RC

Description:
The 0.7% chance increase for the Crop Fairy event when a fully grown Fairy Rose is present is not applied because the field hasMatureFairyRoseTonight of the Farm class is always false. It should be set to true in the newDay method of the Crop class, but this method checks the value of the fullyGrown field of the crop, which is always false for crops that do not regrow, as the Fairy Rose does. Here is the code:
C#:
if ((bool)fullyGrown && indexOfHarvest != null && indexOfHarvest.Value != null && indexOfHarvest.Value == "595")
{
    Game1.getFarm().hasMatureFairyRoseTonight = true;
}
 
Top