This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Talk:Special Charm

From Stardew Valley Wiki
Jump to: navigation, search
This talk page is for discussing Special Charm.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

v1.3 Change

MouseyPounds made a great post on the forums explaining the differences between the way v1.2 and v1.3 code calculates daily luck, once the player has obtained the Special Charm.
https://community.playstarbound.com/threads/what-have-you-all-found-in-1-3-d.142891/page-7#post-3282606
--margotbean (talk) 21:12, 1 August 2018 (BST)

v1.4 Change

The code in v1.4 (now found in Farmer.cs) is simply

 public double DailyLuck => team.sharedDailyLuck.Value + (double)(hasSpecialCharm ? 0.025f : 0f);

In other words, I'm not seeing any hard maximum of 0.1 on the final value. So I'm removing the extreme-overkill code chunk that used to be on the page.

(For ease-of-comparison, the v1.3.12 code per MouseyPounds was folded into Game1._newDayAfterFade() as:

 Game1.dailyLuck = Math.Min(0.10000000149011612, (double)Game1.random.Next(-100, 101) / 1000.0 + (double)(Game1.player.hasSpecialCharm ? 0.025f : 0f));

).

I concur. There is no reference to the special charm in setting daily luck, instead the charm has been moved to apply individually to the farmers who have it. So if you roll a 0.1 (Max) your luck will be 0.125. BlaDe (talk) 19:39, 11 March 2020 (UTC)