{
  "title": "Yokai Idle Game Data Package",
  "description": "Schema for a JSON package containing game data, including items.",
  "type": "object",
  "properties": {
    "namespace": {
      "type": "string",
      "description": "Namespace for the data."
    },
    "data": {
      "type": "object",
      "properties": {
        "imageAuthors": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Maps mod image filenames to the image author's name. The loading mod's namespace is applied automatically."
        },
        "shopCategories": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ShopCategoryData"
          },
          "description": "Optional icons for shop tabs. id matches a shop purchase categoryID (bare ids get your namespace). Tabs without an entry show no icon."
        },
        "shopPurchases": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ShopPurchaseData"
          },
          "description": "Array of shop purchase data."
        },
        "globalDrops": {
          "$ref": "#/definitions/GlobalDropCollectionData",
          "description": "Item and currency drops available from every completed action."
        },
        "globalCombatDrops": {
          "$ref": "#/definitions/GlobalDropCollectionData",
          "description": "Item and currency drops available from completed combat kills."
        },
        "currencies": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/CurrencyData"
          },
          "description": "Array of currency data."
        },
        "familias": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/FamiliaData"
          },
          "description": "Array of familia data."
        },
        "itemUpgrades": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ItemUpgradeData"
          },
          "description": "Array of item upgrade data."
        },
        "itemSynergies": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ItemSynergyData"
          },
          "description": "Array of item synergy data."
        },
        "items": {
          "type": "array",
          "description": "An array of various game item data objects.",
          "items": {
            "oneOf": [
              {
                "$ref": "#/definitions/TokenData"
              },
              {
                "$ref": "#/definitions/ItemData"
              },
              {
                "$ref": "#/definitions/EquipmentItemData"
              },
              {
                "$ref": "#/definitions/WeaponItemData"
              },
              {
                "$ref": "#/definitions/FoodItemData"
              },
              {
                "$ref": "#/definitions/BoneItemData"
              },
              {
                "$ref": "#/definitions/PotionItemData"
              },
              {
                "$ref": "#/definitions/ReadableItemData"
              },
              {
                "$ref": "#/definitions/OpenableItemData"
              }
            ]
          }
        },
        "skillData": {
          "type": "array",
          "description": "An array of various game skills data objects.",
          "items": {
            "$ref": "#/definitions/SkillData"
          }
        },
        "modifiers": {
          "type": "array",
          "description": "An array of various game modifiers data objects.",
          "items": {
            "$ref": "#/definitions/Modifiers"
          }
        }
      }
    },
    "required": [
      "namespace",
      "data"
    ]
  },
  "definitions": {
    "IDData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the data."
        }
      },
      "required": [
        "id"
      ]
    },
    "ShopCategoryData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Shop category ID, the same value used as categoryID on shop purchases."
        },
        "media": {
          "type": "string",
          "description": "Icon shown before the category name."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "ShopPurchaseData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the shop purchase."
        },
        "media": {
          "type": "string",
          "description": "Media URL or identifier for the purchase item."
        },
        "categoryID": {
          "type": "string",
          "description": "Category ID for organizing the purchase."
        },
        "contains": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/IDQuantity"
              },
              "description": "Items included in the purchase."
            },
            "modifiers": {
              "type": "object",
              "description": "Modifiers applied by the purchase."
            }
          },
          "required": []
        },
        "cost": {
          "type": "object",
          "properties": {
            "items": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/definitions/IDQuantity"
              },
              "description": "Items required as cost."
            },
            "currencies": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "Fixed",
                      "Linear"
                    ]
                  },
                  "cost": {
                    "type": "number"
                  },
                  "initial": {
                    "type": "number"
                  },
                  "scaling": {
                    "type": "number"
                  }
                },
                "required": [
                  "type"
                ]
              },
              "description": "Currencies required as cost."
            }
          },
          "required": [
            "items",
            "currencies"
          ]
        },
        "allowQuantityPurchase": {
          "type": "boolean",
          "description": "Whether multiple purchases are allowed."
        },
        "unlockRequirements": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Requirements to unlock the purchase."
        },
        "purchaseRequirements": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Requirements to make the purchase."
        },
        "defaultBuyLimit": {
          "type": "number",
          "description": "Default purchase limit."
        },
        "buyLimitOverrides": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Overrides for buy limits."
        },
        "showBuyLimit": {
          "type": "boolean",
          "description": "Whether to display the buy limit."
        }
      },
      "required": [
        "id",
        "media",
        "categoryID",
        "contains",
        "cost",
        "allowQuantityPurchase",
        "unlockRequirements",
        "purchaseRequirements",
        "defaultBuyLimit",
        "buyLimitOverrides",
        "showBuyLimit"
      ]
    },
    "GlobalDropData": {
      "type": "object",
      "properties": {
        "itemID": {
          "type": "string",
          "description": "ID of the item that can drop."
        },
        "minQuantity": {
          "type": "number",
          "description": "Minimum quantity of the item."
        },
        "maxQuantity": {
          "type": "number",
          "description": "Maximum quantity of the item."
        },
        "weight": {
          "type": "number",
          "description": "Weight for drop probability."
        }
      },
      "required": [
        "itemID",
        "minQuantity",
        "maxQuantity",
        "weight"
      ]
    },
    "GlobalDropCollectionData": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/GlobalDropData"
          }
        },
        {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/GlobalDropData"
              }
            },
            "currencies": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/GlobalCurrencyDropData"
              }
            }
          },
          "required": [
            "items",
            "currencies"
          ],
          "additionalProperties": false
        }
      ]
    },
    "GlobalCurrencyDropData": {
      "type": "object",
      "properties": {
        "currencyID": {
          "type": "string",
          "description": "ID of the currency that can drop."
        },
        "chance": {
          "type": [
            "number",
            "string"
          ],
          "description": "Percentage chance per completed action or combat kill."
        },
        "min": {
          "type": "number",
          "description": "Minimum currency quantity."
        },
        "max": {
          "type": "number",
          "description": "Maximum currency quantity."
        }
      },
      "required": [
        "currencyID",
        "min",
        "max"
      ],
      "additionalProperties": false
    },
    "CurrencyData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the currency."
        },
        "icon": {
          "type": "string",
          "description": "icon URL or identifier for the currency."
        }
      },
      "required": [
        "id",
        "icon"
      ]
    },
    "FamiliaData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the familia."
        },
        "equipmentStats": {
          "type": "array",
          "items": {},
          "description": "Modifiers mapped by ID to arrays of modifier effects"
        },
        "modifiers": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/modifierEffect"
            }
          },
          "description": "Modifiers mapped by ID to arrays of modifier effects"
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Requirements to unlock or use the familia."
        }
      },
      "required": [
        "id",
        "modifiers"
      ]
    },
    "ItemUpgradeData": {
      "type": "object",
      "properties": {
        "rootItemIDs": {
          "type": "array",
          "description": "ID of the item to be upgraded.",
          "items": {
            "type": "string"
          }
        },
        "upgradedItemID": {
          "type": "string",
          "description": "ID of the resulting upgraded item."
        },
        "itemCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              }
            }
          }
        },
        "currencyCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              }
            }
          }
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Requirements for the upgrade."
        }
      },
      "required": [
        "rootItemIDs",
        "upgradedItemID"
      ]
    },
    "ItemSynergyData": {
      "type": "object",
      "properties": {
        "itemIDs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "IDs of items that trigger the synergy."
        },
        "equipmentStats": {
          "type": "array",
          "items": {},
          "description": "Modifiers mapped by ID to arrays of modifier effects"
        },
        "modifiers": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/modifierEffect"
            }
          },
          "description": "Modifiers mapped by ID to arrays of modifier effects"
        }
      },
      "required": [
        "itemIDs"
      ]
    },
    "BaseItemData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "categoryID": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "media": {
          "type": "string"
        },
        "ignoreCompletion": {
          "type": "boolean"
        },
        "sellsFor": {
          "type": "number",
          "description": "Amount the item sells for."
        },
        "sellsForCurrency": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional. Sets the currency that this item sells for. Defaults to GP."
        }
      },
      "required": [
        "id",
        "categoryID",
        "type",
        "media",
        "sellsFor"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/IDData"
        }
      ]
    },
    "TokenData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Token"
          ]
        }
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "ItemData": {
      "type": "object",
      "properties": {},
      "not": {
        "properties": {
          "type": {
            "enum": [
              "Token",
              "Equipment",
              "Weapon",
              "Food",
              "Bones",
              "Potion",
              "Readable",
              "Openable"
            ]
          }
        },
        "required": [
          "type"
        ]
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "AmmoType": {
      "type": "string",
      "enum": [
        "Arrows",
        "Bolts",
        "Throwing",
        "None"
      ]
    },
    "IDQuantity": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "quantity": {
          "type": "number"
        }
      },
      "required": [
        "quantity"
      ]
    },
    "BaseEquipmentItemData": {
      "type": "object",
      "properties": {
        "tier": {
          "type": "string"
        },
        "validSlots": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the EquipmentSlots this item can be equipped to"
        },
        "occupiesSlots": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the EquipmentSlots this item occupies when it is equipped"
        },
        "cantEquipWith": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "equipRequirements": {
          "type": "array",
          "items": {},
          "description": "Requirements for equipping the item (AnyRequirementData assumed to be an object)"
        },
        "equipmentStats": {
          "type": "array",
          "items": {},
          "description": "Equipment stats provided by item (AnyEquipStatData assumed to be an object)"
        },
        "specialAttacks": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "overrideSpecialChances": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "ammoType": {
          "$ref": "#/definitions/AmmoType"
        },
        "consumesOn": {
          "type": "array",
          "items": {},
          "description": "When item is consumed (GameEventMatcherData assumed to be an object)"
        },
        "consumesItemOn": {
          "type": "object",
          "properties": {
            "itemID": {
              "type": "string"
            },
            "chance": {
              "type": "number"
            },
            "matchers": {
              "type": "array",
              "items": {}
            }
          },
          "required": [
            "itemID",
            "chance",
            "matchers"
          ]
        },
        "deathPenaltyPriority": {
          "type": "number",
          "description": "Optional. If present sets the priority of losing this item when dying. Lower priority indicates the item will be lost sooner. Defaults to 0."
        }
      },
      "required": [
        "tier",
        "validSlots"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "EquipmentItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Equipment"
          ]
        }
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseEquipmentItemData"
        }
      ]
    },
    "WeaponItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Weapon"
          ]
        },
        "attackType": {
          "type": "string"
        },
        "ammoTypeRequired": {
          "$ref": "#/definitions/AmmoType"
        },
        "damageType": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseEquipmentItemData"
        }
      ]
    },
    "FoodItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Food"
          ]
        },
        "healsFor": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "healsFor"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "BoneItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Bones"
          ]
        }
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "PotionItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Potion"
          ]
        },
        "tier": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "consumesOn": {
          "type": "array",
          "items": {},
          "description": "When a single charge of the potion should be consumed (GameEventMatcherData assumed to be an object)"
        }
      },
      "required": [
        "type",
        "tier",
        "action",
        "consumesOn"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "ReadableItemSwalData": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "htmlTemplateID": {
          "type": "string"
        }
      },
      "required": [
        "title",
        "htmlTemplateID"
      ]
    },
    "ReadableItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Readable"
          ]
        },
        "modalID": {
          "type": [
            "string",
            "null"
          ]
        },
        "swalData": {
          "$ref": "#/definitions/ReadableItemSwalData"
        }
      },
      "required": [
        "type"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "OpenableItemData": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Openable"
          ]
        },
        "dropTable": {
          "type": "array",
          "items": {},
          "description": "Drop table data (DropTableData assumed to be an object)"
        },
        "keyItem": {
          "$ref": "#/definitions/IDQuantity"
        }
      },
      "required": [
        "type",
        "dropTable"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/BaseItemData"
        }
      ]
    },
    "RareDrop": {
      "type": "object",
      "properties": {
        "itemID": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "chance": {
          "type": "object",
          "properties": {
            "baseChance": {
              "type": "number"
            },
            "maxChance": {
              "type": "number"
            },
            "scalingFactor": {
              "type": "number"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "baseChance",
            "maxChance",
            "scalingFactor"
          ]
        }
      },
      "required": [
        "itemID",
        "quantity",
        "requirements",
        "chance"
      ]
    },
    "SkillData": {
      "type": "object",
      "properties": {
        "skillID": {
          "type": "string"
        },
        "data": {
          "type": "object",
          "properties": {
            "icon": {
              "type": "string"
            },
            "familias": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "doubleActionStats": {
              "type": "array",
              "description": "The stats whose sum / 100 is the % chance for this skill's consuming actions to complete twice (costs and rewards x2). Defaults to vitality + endurance.",
              "items": {
                "type": "string",
                "enum": ["vitality", "strength", "endurance", "magic", "willpower", "dexterity", "sense", "charisma"]
              }
            },
            "rareDrops": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/RareDrop"
              }
            },
            "skillLevelBonuses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "integer"
                  },
                  "modifiers": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "$ref": "#/definitions/modifierEffect"
                      }
                    },
                    "description": "Modifiers mapped by ID to arrays of modifier effects"
                  }
                },
                "required": [
                  "level",
                  "modifiers"
                ]
              }
            },
            "skillMasteryBonuses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "integer"
                  },
                  "modifiers": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "$ref": "#/definitions/modifierEffect"
                      }
                    },
                    "description": "Modifiers mapped by ID to arrays of modifier effects"
                  }
                },
                "required": [
                  "level",
                  "modifiers"
                ],
                "additionalProperties": false
              }
            },
            "actions": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/SkillAction"
              }
            },
            "headerUpgradeChains": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "icon",
            "actions",
            "tags"
          ]
        }
      },
      "required": [
        "skillID",
        "data"
      ]
    },
    "Modifiers": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the modifier"
        },
        "type": {
          "type": "string",
          "enum": [
            "non_combat",
            "combat",
            "both"
          ]
        },
        "rollable": {
          "type": "boolean",
          "description": "Whether this modifier can be selected when rolling modifiers on equipment"
        },
        "minRoll": {
          "type": "number",
          "description": "Minimum roll value for the modifier"
        },
        "maxRoll": {
          "type": "number",
          "description": "Maximum roll value for the modifier"
        },
        "rollStep": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "Size of one roll step (e.g. 0.1 rolls minRoll..maxRoll in 0.1 steps). Omit for whole-number rolls (step 1)."
        },
        "maxHitpointsCap": {
          "type": "number",
          "description": "Maximum healing or effect value as a percentage of maximum hitpoints"
        },
        "hitpointsThreshold": {
          "type": "number",
          "description": "Hitpoints percentage threshold for conditional modifier effects"
        },
        "weight": {
          "type": "number",
          "description": "Chance of being picked"
        },
        "group": {
          "type": "string",
          "enum": [
            "offense",
            "defense",
            "sustain",
            "utility",
            "economy",
            "experience",
            "speed",
            "yield",
            "preservation",
            "successQuality"
          ],
          "description": "Catalyst group this modifier belongs to"
        },
        "Negative": {
          "type": "boolean",
          "description": "Is a negative addition towards modifier count"
        },
        "subTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional subtypes (e.g., damage, skill)"
        },
        "theme": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Scope ids (element, effect, skill...) this modifier is themed for, e.g. [\"Wood\"]. An entry whose rolled scope is in this list rolls from themeMinRoll/themeMaxRoll instead of minRoll/maxRoll."
        },
        "themeMinRoll": {
          "type": "number",
          "description": "Optional. Lowest roll for themed scopes. Falls back to minRoll."
        },
        "themeMaxRoll": {
          "type": "number",
          "description": "Optional. Highest roll for themed scopes. Falls back to maxRoll."
        },
        "rollScopes": {
          "type": "array",
          "description": "Optional scopes generated when this modifier is rolled",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string",
                "description": "Modifier effect field populated by the rolled scope"
              },
              "source": {
                "type": "string",
                "enum": [
                  "damageTypes",
                  "combatEffects",
                  "skills",
                  "actions",
                  "currencies",
                  "itemTypes",
                  "items",
                  "actionProducts"
                ],
                "description": "Game data collection used to select the scope value"
              },
              "required": {
                "type": "boolean",
                "description": "Whether a scope value must be generated"
              },
              "globalWeight": {
                "type": "number",
                "description": "Weight applied to globally available scope values"
              },
              "differentFrom": {
                "type": "string",
                "description": "Another scope field whose selected value must differ from this one"
              }
            },
            "required": [
              "field",
              "source"
            ],
            "additionalProperties": false
          }
        },
        "validSlots": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional equipment slots where modifier can apply"
        },
        "Notes": {
          "type": "string",
          "description": "Not for the player, just notes."
        }
      },
      "required": [
        "id",
        "type"
      ],
      "additionalProperties": false
    },
    "modifierEffect": {
      "type": "object",
      "properties": {
        "targetSkillID": {
          "type": "string",
          "description": "Target for the XP"
        },
        "skillID": {
          "type": "string",
          "description": "Identifier for the skill (e.g., 'monad:Woodcutting')"
        },
        "actionID": {
          "type": "string",
          "description": "Identifier for the action (e.g., 'monad:Normal')"
        },
        "categoryID": {
          "type": "string",
          "description": "Identifier for the category (e.g., 'monad:Rings')"
        },
        "currencyID": {
          "type": "string",
          "description": "Identifier for the category (e.g., 'monad:Rings')"
        },
        "itemID": {
          "type": "string",
          "description": "Identifier for the category (e.g., 'monad:Rings')"
        },
        "value": {
          "type": "number",
          "description": "Numeric value of the modifier effect"
        },
        "maxHitpointsCap": {
          "type": "number",
          "description": "Maximum healing or effect value as a percentage of maximum hitpoints"
        },
        "damageType": {
          "type": "string",
          "description": "which damage or elemental type is used"
        },
        "effect": {
          "type": "string",
          "description": "which combat effects are added"
        }
      },
      "required": [
        "value"
      ],
      "additionalProperties": false
    },
    "SkillAction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "ActionLevelBonuses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "level": {
                "type": "integer"
              },
              "modifiers": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "$ref": "#/definitions/modifierEffect"
                  }
                },
                "description": "Modifiers mapped by ID to arrays of modifier effects"
              }
            },
            "required": [
              "level",
              "modifiers"
            ],
            "additionalProperties": true
          }
        },
        "baseExperience": {
          "type": "number"
        },
        "modifiers": {
          "type": "array"
        },
        "rewards": {
          "type": "object"
        },
        "baseInterval": {
          "type": "number"
        },
        "level": {
          "type": "integer"
        },
        "categoryID": {
          "type": "string"
        },
        "itemCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              }
            }
          }
        },
        "currencyCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              }
            }
          }
        }
      },
      "required": [
        "id",
        "baseExperience",
        "level",
        "ActionLevelBonuses"
      ]
    }
  }
}
