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
This talk page is for discussing Special Charm. | |
---|---|
|
|
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));
).