RimWorld

RimWorld

43 ratings
Lock Boxes
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
238.718 KB
11 Aug, 2023 @ 4:34pm
26 Apr @ 10:40am
2 Change Notes ( view )

Subscribe to download
Lock Boxes

Description
A mod that adds lock boxes with loot to the game.








Not all loot has the same probability of dropping, some items are more rare or more common.
The loot will drop if the lock box is destroyed in any way.
Lock boxes can be opened with a right click order with a colonist selected.
Unless specifically patched the mod supports only vanilla items.

English
Russian
25 Comments
Romyashi  [author] 18 Jul @ 2:23pm 
@gunns22 Oh, I see. You are free to do what you think is best, I don't mind as long as you are polite to other people. And there are no modded items supported as is in this mod.
gunns22 18 Jul @ 2:11pm 
I was offering to help call attention to this mod so that there would BE support for modded items. If there's already support for items from some mods, then I'd be glad to hear which mods are already supported.
Romyashi  [author] 18 Jul @ 12:30pm 
@gunns22 Sorry, I don't think I understand you correctly. Are you asking if this mod has built-in support for any modded items currently?
gunns22 18 Jul @ 11:40am 
Would you mind terribly if I were to ask around about which mods support this Lock Boxes mod? I saw that note at the bottom about “unless specifically patched the mod supports only vanilla items,” and I’d like to call attention to this mod to get more support.
Alex Nares 23 Oct, 2023 @ 9:59pm 
Thank you very much for the clarification!
Romyashi  [author] 23 Oct, 2023 @ 9:58pm 
@Alex Nares Yes, I think so.
Alex Nares 23 Oct, 2023 @ 9:51pm 
Thanks for the info! So, when DropOnlyOne is true, then only the first item successfully rolled will drop. Does that mean, if I were to make a big list (adding every single item in the game), then the items further down would naturally drop less because the items higher up are getting rolled first?
Romyashi  [author] 23 Oct, 2023 @ 9:24pm 
@Alex Nares It's a multiple of one item. Right before LootConfigs there is a DropOnlyOne property. It prevents any future rolls if there is a successfull roll. It can be removed so multiple different items will have a chance to drop at once.
The way it works in general is it makes a new roll per each entry in LootConfigs. So two items with 10% chance of dropping have to both individually make a successfull roll in order to drop.
There is also a GuaranteeOne property which makes it so if every item failed a roll it goes through the item list and makes every item take a roll again until at least one successfull roll.
Alex Nares 23 Oct, 2023 @ 6:18pm 
According to the mod description, it is possible for multiple items to drop from 1 box, correct? I was digging through the mod files to try to customize the lock boxes. Does -each- item in the drop list have a chance of dropping? For example, below, is there a roll made for both items, with Silver having a 10% chance to drop AND for Gold having a 10% chance to drop? (So you could end up with either Silver, or Gold, or both?)

<LootConfigs>
<li>
<LootThingDef>Silver</LootThingDef>
<LootChance>0.1</LootChance>
<LootAmountMin>400</LootAmountMin>
<LootAmountMax>650</LootAmountMax>
</li>
<li>
<LootThingDef>Gold</LootThingDef>
<LootChance>0.1</LootChance>
<LootAmountMin>40</LootAmountMin>
<LootAmountMax>65</LootAmountMax>
</li>
Romyashi  [author] 8 Sep, 2023 @ 9:26pm 
@Victor The framework does not support stack size currently, so no.