User:GuyPerfect

From Don't Starve Wiki
Jump to navigation Jump to search

Chances for Things

Graves

Graves use the following algorithm for determining what you dig up:

Rolling a non-trinket or a trinket each has a 45% chance, since it's 50% of the remaining 90%.

There's only the one kind of Ghost, so it spawns every time when a Ghost is rolled:

Prefab Chance Global
Ghost Ghost 100.00% 10.00%

Ghost formula:

100% * 10% global

Non-trinkets are weighted:

Prefab Weight Chance Global
Nightmare Fuel.png Nightmare Fuel 1 7.69% 3.46%
Life Giving Amulet.png Life Giving Amulet 1 7.69% 3.46%
Gears.png Gears 1 7.69% 3.46%
Red Gem.png Red Gem 5 38.46% 17.30%
Blue Gem.png Blue Gem 5 38.46% 17.30%

The total of the weights is 13, so the formula is as follows:

weight / 13 * 45% global

Trinkets are not weighted:

Prefab Chance Global
Ball and Cup.png Ball and Cup 8.33% 3.75%
Dessicated Tentacle.png Dessicated Tentacle 8.33% 3.75%
Fake Kazoo.png Fake Kazoo 8.33% 3.75%
Frazzled Wires.png Frazzled Wires 8.33% 3.75%
Gord's Knot.png Gord's Knot 8.33% 3.75%
Gnome.png Gnome 8.33% 3.75%
Hardened Rubber Bung.png Hardened Rubber Bung 8.33% 3.75%
Lying Robot.png Lying Robot 8.33% 3.75%
Melty Marbles.png Melty Marbles 8.33% 3.75%
Mismatched Buttons.png Mismatched Buttons 8.33% 3.75%
Second-hand Dentures.png Second-Hand Dentures 8.33% 3.75%
Tiny Rocketship.png Tiny Rocketship 8.33% 3.75%

There are 12 trinkets, so the formula is as follows:

1 / 12 * 45% global

Large Ornate Chest

Defeating an Ancient Guardian will spawn a Large Ornate Chest and populate it with items. Items go into the chest following this algorithm:

  • A list of slot fillers is processed according to the chest's capacity
    • The list contains 10 entries, which specify one or more items
    • The chest can hold 9 items
    • One of the entries is eliminated from the list
  • Each entry in the list is added to the chest if a random roll passes
    • If the entry specified more than one item, only one of them is selected at random

The source list of entries for slot fillers is as follows:

Count Chance Items
Prefab Chance Global
1 33.00% Thulecite Suit.png Thulecite Suit 100.00% 29.70%
1 33.00% Thulecite Crown.png Thulecite Crown 100.00% 29.70%
3 25.00% Thulecite Club.png Thulecite Club 33.33% 7.50%
The Lazy Explorer.png The Lazy Explorer 33.33% 7.50%
Star Caller's Staff.png Star Caller's Staff 33.33% 7.50%
4 50.00% Fire Staff.png Fire Staff 25.00% 11.25%
Ice Staff.png Ice Staff 25.00% 11.25%
Telelocator Staff.png Telelocator Staff 25.00% 11.25%
PickSlashAxe.png Pick/Axe 25.00% 11.25%
1 75.00% Thulecite.png Thulecite 100.00% 67.50%
1 50.00% Thulecite Fragments.png Thulecite Fragments 100.00% 45.00%
1 75.00% Nightmare Fuel.png Nightmare Fuel 100.00% 67.50%
3 66.00% Red Gem.png Red Gem 33.33% 19.80%
Blue Gem.png Blue Gem 33.33% 19.80%
Purple Gem.png Purple Gem 33.33% 19.80%
3 45.00% Yellow Gem.png Yellow Gem 33.33% 13.50%
Orange Gem.png Orange Gem 33.33% 13.50%
Green Gem.png Green Gem 33.33% 13.50%
1 33.00% Gears.png Gears 100.00% 29.70%

There are 10 entries in the list, but only 9 of them can be selected to fill the slots of the Large Ornate Chest. Therefore, each entry's likelihood of even being considered for any given Chest is 90%. Within them, for entries with more than one item, the item is selected randomly from the group available.

Putting it all together, each individual item's likelihood for appearing within a Large Ornate Chest can be calcualted with the following formula:

90% * chance * (1 / count)