Data:Assets/treasurepools

From Starbounder - Starbound Wiki
Jump to: navigation, search

Treasure

The treasure folder contains various treasure pool files associated with monster drops (including bosses and npcs) and loots in various chests. The extension of such files are .treasurepools

Sample

{
  "boss1Treasure" : [
    [1, {
        "pool" : [
          [0.5, [ "commonassaultrifle" ] ],
          [0.5, [ "money", 50 ] ]
        ],
        "poolRounds" : [
          [0.01, 0],
          [0.99, 1]
        ],
        "levelVariance" : [0, 0],
        "allowDuplication" : true,
       
        "fill" : [
          ["moltencore", 5],
          "bossdreadwingCodex"]
}]]
}
Variable Description
Starting Number (1) Minmum Level planet for drop (0) denotes does not need to be a planet.
[#, [ "item", ## ] # - denotes chance of drop. Item is the item to be dropped. ## - Denotes the number of the item to be dropped. For non stackable items this is part is not required ( Keep in mind to remove the comma following items if no number is placed )
PoolRounds (?) - percentage of chance for the number of rounds to occur
LevelVariance (?) - Varying the level of the certain randomly generated items to drop
allowDupplication If multiple pool rounds, allow an item already dropped to be dropped again
Fill Guaranteed Drop.

It is important to note Fill or Pool is only required. Not both, though both can be in the same array as given an example above.

Merge File

The merge system was replaced with a patching system. See this article for details.

{
  "__merge" : [],
  "boss1Treasure" : [
    [1, {
        "pool" : [
         
          [ 0.01, [ "coalore", 3] ]
          ]
          }
        ]
      ]
}

Above is an example of how to merge into a treasurepool file.