边缘世界 RimWorld

边缘世界 RimWorld

Treasures
 此主题已被置顶,因此可能具有重要性
Romyashi  [开发者] 2023 年 5 月 7 日 上午 11:31
How to make any item a treasure
If you want to add any item to the treasure pool, you will need to add some lines to the item's def:
<modExtensions> <li Class="RomyTreasures.TreasureThingDef"> <treasureCommonality>0.01</treasureCommonality> <treasureAmountPerCell>1</treasureAmountPerCell> </li> </modExtensions> <deepCountPerPortion>1</deepCountPerPortion>
treasureCommonality sets the chance of the item to appear as a treasure. The higher the number, the higher the chance.
treasureAmountPerCell sets how many of the item will generete at a treasure spot. If not set it will default to 300.
deepCountPerPortion sets how many of the item will be dug up once deep drill progress is 100%. If not set it will default to -1, meaning the item will never run out, so it is important to set this property.
You can look for more examples in the mod's defs and patches.
最后由 Romyashi 编辑于; 2023 年 7 月 23 日 上午 9:37