Luck

Revision as of 20:11, 11 March 2020 by Nebulous Maestress (talk | contribs) (edit conflict recovery (I hope): besides special charm change, explain magnitude of values, including new mechanics section (although there doesn't really seem to a good "clean" example))
Fortune Teller

Luck is a statistic that affects many different aspects of the game, such as the drop rates of geodes and chance of getting treasure from Fishing. There are two kinds of luck: Daily Luck, which is determined by the game, and Luck Buffs gained from eating certain food.

Daily Luck

You can check your daily luck by right-clicking on the Television and selecting "Fortune Teller." The Fortune Teller will give an indication of the daily luck stat modifier.

Luck is not affected by viewing the Fortune Teller Television Program (i.e., the luck value is not neutral if the player does not view the program, the luck value remains constant regardless.) Daily Luck does not change if the day is restarted.

A 0.01 increase in daily luck generally means a random event is about 1% more likely to happen.

Message TV Display Stat Bonus
The spirits are very happy today! They will do their best to shower everyone with good fortune.     Luck (+0.07 to +0.1)
The spirits are in good humor today. I think you'll have a little extra luck.     Luck (+0.02 to +0.07)
The spirits feel neutral today. The day is in your hands.     Luck (-0.02 to +0.02) but not 0
This is rare. The spirits feel absolutely neutral today.     Luck (0)
The spirits are somewhat annoyed / mildly perturbed today. Luck will not be on your side.     Luck (-0.07 to -0.02)
The spirits are very displeased today. They will do their best to make your life difficult.     Luck (-0.07 to -0.1)

Daily Luck Effects

Daily luck affects the following:

Luck Buffs

In addition to Daily Luck, Luck Buffs gained from eating food will temporarily affect the same aspects of the game as Daily Luck, with the exception of the drop chance of Duck Feather and Rabbit's Foot. A luck buff of +1 means a random event is roughly 1% more likely to happen. The following foods provide a temporary luck buff:

Image Name Description Ingredients Energy / Health Buff(s) Buff Duration Recipe Source(s) Sell Price
Fried Eel Greasy but flavorful.   Eel (1)  Oil (1)   75
  33
  Luck (+1)   7m

  George (Mail - 3+  )

data-sort-value="120"> 120g
Lucky Lunch A special little meal.   Sea Cucumber (1)  Tortilla (1)  Blue Jazz (1)   100
  45
  Luck (+3)   11m 11s

  The Queen of Sauce
28 Spring, Year 2

data-sort-value="250"> 250g
Pumpkin Soup A seasonal favorite.   Pumpkin (1)  Milk (1)   200
  90
  Defense (+2)  Luck (+2)   7m 41s

  Robin (Mail - 7+  )

data-sort-value="300"> 300g
Shrimp Cocktail A sumptuous appetizer made with freshly-caught shrimp.   Tomato (1)  Shrimp (1)  Wild Horseradish (1)   225
  101
  Fishing (+1)  Luck (+1)   10m 2s

  The Queen of Sauce
28 Winter, Year 2

data-sort-value="160"> 160g
Spicy Eel It's really spicy! Be careful.   Eel (1)  Hot Pepper (1)   115
  51
  Luck (+1)  Speed (+1)   7m

  George (Mail - 7+  )

data-sort-value="175"> 175g
Magic Rock Candy A rare and powerful candy infused with the essence of the prismatic shard. N/A  500 225   Mining (+2)  Luck (+5)  Speed (+1)  Defense (+5)  Attack (+5)   8m 24s N/A data-sort-value="5000"> 5,000g

Special Charm

After reading Secret Note #20 and solving the puzzle depicted, the player is awarded with a Special Charm that permanently increases daily Luck by 0.025.

Mechanics

Most random events in the game are determined by generating a random double-precision number in the range 0 to 1 that is then compared to the event's chance of happening. For example, when panning for ore the base chance for finding iridium is 1%. This means iridium is only found if the random number is less than 0.01.

Daily Luck typically increases the critical threshold for an event without any change in magnitude: a 0.01 value of daily luck changes the iridium ore panning threshold from 0.01 to 0.02. On the other hand, buffed luck values are significantly rescaled before being applied, with large variability in scale factors. For ore-panning alone, scale factors include 0.001, 0.002, and 0.04 (when deciding the type of ore, whether there's an extra item, and deciding the type of extra item, respectively). For iridium ore specifically the scale factor is 0.001, so if a player has a 0.1 value of Daily Luck and a +1 Luck Buff, the threshold is 0.021 (2.1% chance).

However, the exact meaning of Daily Luck and Luck Buff is always context-dependent, because every event applies luck slightly differently.

References

  1. See Utility::performLightningUpdate in the game code.

History

  • 1.3: Officially added Special Charm to game. Treasure rooms added to Skull Cavern, which are affected by luck.
  • 1.4: Magic Rock Candy introduced. Special Charm luck increase changed to a static 0.025.