Changes

→‎Daily Luck: add probability of perfect/worst luck, mention bug with the "absolutely neutral" message (maybe this should be moved above the table? not sure)
Line 15: Line 15:  
{{Quote|Hoo.. I see a glimmer within my scrying orb... A shard of knowledge from the future!}}
 
{{Quote|Hoo.. I see a glimmer within my scrying orb... A shard of knowledge from the future!}}
 
{{Quote|Welcome to Welwick's Oracle... the ONLY show where the voice of the spirits is channeled directly... to YOU.}}
 
{{Quote|Welcome to Welwick's Oracle... the ONLY show where the voice of the spirits is channeled directly... to YOU.}}
  −
{{Stub|Add TV displays for max daily luck (0.1) and min daily luck (-0.1) introduced in v1.6}}
      
{|class="wikitable"
 
{|class="wikitable"
Line 23: Line 21:  
!Stat Bonus <ref name="tvluck" />
 
!Stat Bonus <ref name="tvluck" />
 
|-
 
|-
|The spirits are very happy today! They will do their best to shower everyone with good fortune.
+
| rowspan=2 | The spirits are very happy today! They will do their best to shower everyone with good fortune.
 +
|[[File:LuckStarMax.gif]]
 +
|{{name|Luck|+0.1 or +0.125 with Special Charm}}
 +
|-
 
|[[File:LuckStar.gif]]
 
|[[File:LuckStar.gif]]
|{{name|Luck|> +0.07}}
+
|{{name|Luck|> +0.07 and < 0.1 (or 0.125 with Special Charm)}}
 
|-
 
|-
 
|The spirits are in good humor today. I think you'll have a little extra luck.
 
|The spirits are in good humor today. I think you'll have a little extra luck.
Line 43: Line 44:  
|{{name|Luck|≥ -0.07 and < -0.02}}
 
|{{name|Luck|≥ -0.07 and < -0.02}}
 
|-
 
|-
|The spirits are very displeased today. They will do their best to make your life difficult.
+
| rowspan=2 | The spirits are very displeased today. They will do their best to make your life difficult.
 
|[[File:LuckSkull.gif]]
 
|[[File:LuckSkull.gif]]
|{{name|Luck|< -0.07}}
+
|{{name|Luck|> -0.1 (or -0.075 with Special Charm) and < -0.07}}
 +
|-
 +
|[[File:LuckSkullMin.gif]]
 +
|{{name|Luck|-0.1 or -0.075 with Special Charm}}
 
|}
 
|}
 +
 +
Daily luck has 201 possible values<ref name="luck"/>, so the probability of getting best possible luck, worst possible luck, and absolutely neutral luck are 1/201 each. Due to a rounding error in the game code, it's impossible to get absolutely neutral luck with the Special Charm<ref name="absolutely_neutral"/>.
    
===Special Charm===
 
===Special Charm===
Line 202: Line 208:  
     <ref name="luck">See <samp>Game1::_newDayAfterFade</samp> in the game code.</ref>
 
     <ref name="luck">See <samp>Game1::_newDayAfterFade</samp> in the game code.</ref>
 
     <ref name="tvluck">See <samp>Objects.TV::getFortuneForecast</samp> in the game code.</ref>
 
     <ref name="tvluck">See <samp>Objects.TV::getFortuneForecast</samp> in the game code.</ref>
 +
    <ref name="absolutely_neutral">The special charm adds <samp>(double)0.025f</samp> (see <samp>Farmer::DailyLuck</samp>), which is actually 0.02500000037252903. Those trailing digits are never cancelled out as the TV code checks whether the daily luck is exactly zero as a double.</ref>
 
     <ref name="radioactive">See <samp>Locations.MineShaft::chooseStoneType</samp> in the game code.</ref>
 
     <ref name="radioactive">See <samp>Locations.MineShaft::chooseStoneType</samp> in the game code.</ref>
 
     <ref name="dwoop">See <samp>Crop::Harvest</samp> in the game code.</ref>
 
     <ref name="dwoop">See <samp>Crop::Harvest</samp> in the game code.</ref>
38

edits