Windows Don't get xp from bump in quality from a perfect catch

BlaDe

Farmer
FishingRod has this code:

C#:
        if (fishQuality >= 2 && wasPerfect)        {

            this.fishQuality = 4;

        }

        else if (fishQuality >= 1 && wasPerfect)

        {

            this.fishQuality = 2;

        }

        if (who == null)

        {

            return;

        }

        if (!Game1.isFestival() && who.IsLocalPlayer && !fromFishPond && fishIsObject)

        {

            int experience = Math.Max(1, (fishQuality + 1) * 3 + fishDifficulty / 3);
The fishQuality used to determine experience is the one passed into the method, not this.fishQuality.

This may be on purpose but felt it was worth posting about.
 

BeenASon

Sodbuster
I'm sorry but could you explain a bit better? I don't know C# only basic Python so I'm confused.
FishingRod has this code:

C#:
        if (fishQuality >= 2 && wasPerfect)        {

            this.fishQuality = 4;

        }

        else if (fishQuality >= 1 && wasPerfect)

        {

            this.fishQuality = 2;

        }

        if (who == null)

        {

            return;

        }

        if (!Game1.isFestival() && who.IsLocalPlayer && !fromFishPond && fishIsObject)

        {

            int experience = Math.Max(1, (fishQuality + 1) * 3 + fishDifficulty / 3);
The fishQuality used to determine experience is the one passed into the method, not this.fishQuality.

This may be on purpose but felt it was worth posting about.
 
Top