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