beerik94 / LootControl

TShock plugin to control the NPC loot tables
GNU General Public License v3.0
5 stars 0 forks source link

LootControl

TShock plugin to control the NPC loot tables

Based of LootTableEditor by OLink all credits to him for original code (https://github.com/Olink/LootTableEditor).

This has more options than the original LootTableEditor.
Will probably build a config creator at some point to ease the use of this plugin.
Support for NPC variants

Supported world states:

Example config below(when used make sure to delete // COMMENTS since JSON doesn't support comments):

{
  "1": { // NPC ID
    "NPCLootEntries": {
      "Normal": [ // World State
        {
          "ItemID": 85, // ID of the item that you want to drop
          "PrefixID": 0, // ID of the prefix you want to give the item
          "DropChance": 100, // Chance of the item to drop, 0 being no chance and 100 will always drop it
          "Min_Stack": 1, // Minimum amount that will be dropped
          "Max_Stack": 10, // Maximum amount that will be dropped
      "DropInClassic": true, // If set to "true" the item is able to drop in a world set to classic mode
          "DropInExpert": false, // If set to "true" the item is able to drop in a world set to expert mode
          "DropInMaster": false // If set to "true" the item is able to drop in a world set to master mode
        },
            {
          "ItemID": 73, // ID of the item that you want to drop
          "PrefixID": 0, // ID of the prefix you want to give the item
          "DropChance": 100, // Chance of the item to drop, 0 being no chance and 100 will always drop it
          "Min_Stack": 1, // Minimum amount that will be dropped
          "Max_Stack": 10, // Maximum amount that will be dropped
      "DropInClassic": true, // If set to "true" the item is able to drop in a world set to classic mode
          "DropInExpert": false, // If set to "true" the item is able to drop in a world set to expert mode
          "DropInMaster": false // If set to "true" the item is able to drop in a world set to master mode
        }
      ],
      "Bloodmoon": [ // World State
        {
          "ItemID": 85, // ID of the item that you want to drop
          "PrefixID": 0, // ID of the prefix you want to give the item
          "DropChance": 100, // Chance of the item to drop, 0 being no chance and 100 will always drop it
          "Min_Stack": 1, // Minimum amount that will be dropped
          "Max_Stack": 10, // Maximum amount that will be dropped
      "DropInClassic": true, // If set to "true" the item is able to drop in a world set to classic mode
          "DropInExpert": false, // If set to "true" the item is able to drop in a world set to expert mode
          "DropInMaster": false // If set to "true" the item is able to drop in a world set to master mode
        },
            {
          "ItemID": 73, // ID of the item that you want to drop
          "PrefixID": 0, // ID of the prefix you want to give the item
          "DropChance": 100, // Chance of the item to drop, 0 being no chance and 100 will always drop it
          "Min_Stack": 1, // Minimum amount that will be dropped
          "Max_Stack": 10, // Maximum amount that will be dropped
      "DropInClassic": true, // If set to "true" the item is able to drop in a world set to classic mode
          "DropInExpert": false, // If set to "true" the item is able to drop in a world set to expert mode
          "DropInMaster": false // If set to "true" the item is able to drop in a world set to master mode
        }
      ]
    },
    "ShouldDropDefaultLoot": false // If set to "true" the NPC will also drop their default loot defined by Terraria itself
  }
}