Modding Help Further modifying treasurepools.

Discussion in 'Starbound Modding' started by Blastaway, Mar 21, 2017.

  1. Blastaway

    Blastaway Cosmic Narwhal

    'Ello. I'm trying to figure out how to modify items within the treasurepool itself, but I'm not exactly of sure how to do so.

    ...How would it be accomplished, if possible?
     
  2. ChocolateMilk555

    ChocolateMilk555 Aquatic Astronaut

    'Greetings!
    I'm not 100% sure on what you are trying to do, I assume what you want to do is edit the default already made treasurepools? If so, you need to of course unpack the files of starbound, and depending on what you want go into the treasure file, and you will find for example this.
    Code:
    
    // ================================
      //       Basic Treasure Pool
      // ================================
    
      "basicTreasure" : [
        [0, {
          "pool" : [
            {"weight" : 0.32, "pool" : "chestMoney"},
            {"weight" : 0.16, "pool" : "healingItem"},
            {"weight" : 0.16, "pool" : "ore"},
            {"weight" : 0.12, "pool" : "thrownWeapon"},
            {"weight" : 0.05, "pool" : "weapon"},
            {"weight" : 0.05, "pool" : "tool"},
            {"weight" : 0.08, "item" : "manipulatormodule"},
            {"weight" : 0.03, "item" : "techcard"},
            {"weight" : 0.01, "item" : "upgrademodule"},
            {"weight" : 0.01, "pool" : "instrument"},
            {"weight" : 0.01, "pool" : "costume"}
          ]
        }]
      ],
    
    So you could change the "ore" to something like manipulatormodule. Though that would be a dirty way of doing it if you are making a custom pool, for a custom chest, this is an example from my chocolate chest.
    Code:
      //define custom chest loots
      {
        "op": "add",
        "path": "/chocolateChest",
        "value": [
          {
            "containers": [
              "chocolatechest"
            ],
            "treasurePool": "chocolateChestTreasure",
            "minimumLevel": 0
          }
        ]
      },
    That is actually adding the chest,and defining the lootpool.
    Code:
    {
        "op": "add",
        "path": "/chocolateChestTreasure",
        "value": [
          [
            1,
            {
              "fill": [
                {
                  "pool": "valuableTreasure"
                }
              ],
              "pool": [
                {
                  "weight": 0.5,
                  "pool": "basicTreasure"
                },
                {
                  "weight": 0.5,
                  "pool": "chocolateTreasure"
                }
              ],
              "poolRounds": [
                [
                  0.05,
                  1
                ],
                [
                  0.4,
                  2
                ],
                [
                  0.3,
                  3
                ],
                [
                  0.15,
                  4
                ],
                [
                  0.1,
                  5
                ]
              ],
              "allowDuplication": false
            } ]
        ]
      },
    This is the actual loot in the pool. You have to have both for it to work. This is pretty late, but I hope this helps.
     

Share This Page