
Chest 2002
Lockpick
What can be inside
Captain's cabin: supplies chest · 2–4 items, the first is always pesos
Level: your hero's level, as the character screen shows it. A chest gives only what is open at that level.
Luck (1 to 20): the game keeps each item it draws with that item's own chance plus half your Luck, rounded down, in per cent; otherwise it draws again. So Luck helps rare things most: a ruby ring is kept 10 times in 100 at Luck 1 and 15 times at Luck 10. Luck also makes better weapon quality likelier.
On average this chest gives loot worth about 520![]()
272
in coins and 249
in goods, at what traders pay you: a store pays the full price, a blacksmith a quarter of a weapon's price.
| Name · Quality | Chance per chest | Quantity |
|---|---|---|
| Currency | ||
| 100% | 175 | |
| Materials | ||
| 1.4% | 1 | |
| 1.4% | 1 | |
| Tools | ||
| 9.8% | 3–8 | |
| 9.8% | 1 | |
| 9.8% | 1 | |
| 9.8% | 1 | |
| Medication | ||
| 9.8% | 1–5 | |
| 9.8% | 1–3 | |
| 9.8% | 1–3 | |
| 9.8% | 1 | |
| Food | ||
| Corn | 7.1% | 2–9 |
| 7.1% | 2–9 | |
| 7.1% | 2–9 | |
| 7.1% | 2–9 | |
| Cocoa beans | 7.1% | 2–9 |
| 7.1% | 2–9 | |
| 7.1% | 2–9 | |
| Spyglasses | ||
Worn-out | 5.7% | 1 |
Worn-out | 5.7% | 1 |
Worn-out | 5.7% | 1 |
Worn-out | 5.7% | 1 |
Worn-out | 5.7% | 1 |
How it is calculated
- The contents are rolled once, when you first open the chest, for your level and luck at that moment.
SearchWindowController.cs:226 SetDataFromBoxId - Number of items: a random number from 2 to 4, rounded.
LootItemsDatabase.cs:368 GetBoxLootAmount - The first item is pesos. Every other: a random category of this chest type, then a random item of it allowed at your level; it stays with its chance + luck/2 %, otherwise the draw starts again. The same item twice adds up.
LootItemsDatabase.cs:147 GetBoxLootLootItemsDatabase.cs:228 CheckItemDropChance - Weapons: quality by luck L: Perfect L/4+4 %, Great L/2+4 %, Good 2·(L/4)+8 %, otherwise Common; rows of worn weapons always give Worn-out.
LootItemsDatabase.cs:206 GetWeaponLevel - Quantity: from the row's minimum to its maximum minus one (the game draws whole numbers that way).
LootItemsDatabase.cs:344 GetItemDropCount - Chance per chest = 1 − (1 − q)^k, averaged over k, the number of random draws (the items besides the first pesos); q is the item's share of one draw.
- Average worth = the pesos of the chest + for each item its expected count × what a trader pays for it: a store pays the full price, a blacksmith a quarter of a weapon's price at its quality (weapons counted by their quality odds).
BaseItemData.cs:104 GetLevelPriceTradeInfoPanelController.cs:325 GetSellModifier - Ship chests get new loot at every boarding: 9 in 10 captain's chests are already unlocked, 9 in 10 hold crates are locked.
SpawnerCaptainController.cs:551SpawnerCargoController.cs:414