
Chest 1001, Chests in Ragged Point, Barbados
Lockpick
What can be inside
Ordinary chests · 3–5 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 390![]()
227
in coins and 159
in goods, at what traders pay you: a store pays the full price, a blacksmith a quarter of a weapon's price.
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 3 to 5, 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 - A treasure note can lead to this chest; then it holds one of five sets instead (20% each): ammunition and a firearm, tools and materials, a map and lockpicks with trinkets, an amulet and a jewel, food and drinks; each with pesos.
LootController.cs:286 AddTreasureNote