What is Loot?

How to create a new random loot

Data structure for the loot table

{
    "id": 6000004,//Create a new unused id with a 7-digit starting with 6
    "name": “Intelligence drop”,//comments for designer
    "repeat": 1, 
    //Determines how many drops are executed per activation
    //If set to 2, it means 2 drops will occur upon activation
    "type": 2, 
    //Set the random drop method 
    //set 2: Weighted random drop (duplicates allowed)
    //set 3: Weighted random drop (guaranteed new items, stops if no new items remain)
    //set 99: Drop all items in the loot at once
    "item": [ //Configure droppable items
        {
            "condition": { //Only drop this item if conditions are met
                "have.carnality":1, 
            },
            "num" : "1", //quantity
            "id": "2000032", //card id
            "type": "card", //Item type. This is card, for example
            //Can set the type as loot
            "weight": 60 //Weight (probability = item weight / sum of all weights)
        },
        {
            "num" : "1",
            "id" : "5320133",
            "type" : "event", //Triggers corresponding event
            "weight" : 60
        },
        {
            "num" : "1",
            "id" : "5000034",
            "type" : "rite", //Generate corresponding ritual
            "weight" : 60
        }
    ]
}