From e460187349a98daebf02470738eb0b2d4f05d3aa Mon Sep 17 00:00:00 2001 From: neifion-00000000 <91289495+neifion-00000000@users.noreply.github.com> Date: Sun, 26 Mar 2023 04:21:58 -0500 Subject: correct loot_template primary keys info to... (#885) ..reflect current functionality also removed an incorrect note about a limitation based on old functionality I have been informed Kiera needs an update to reflect this functionality but I don't use Kiera so I'm not sure if I should link this as an issue or what, feel free to advise. --- docs/loot_template.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/loot_template.md b/docs/loot_template.md index 190fdff..b240730 100644 --- a/docs/loot_template.md +++ b/docs/loot_template.md @@ -18,11 +18,11 @@ Loot templates define only items in the loot. See comments about money drop in c | ------------------- | ------------------ | ---- | --- | ------- | ----- | ------- | | [Entry][1] | MEDIUMINT UNSIGNED | NO | PRI | 0 | | | | [Item][2] | MEDIUMINT UNSIGNED | NO | PRI | 0 | | | -| [Reference][3] | MEDIUMINT UNSIGNED | NO | | 0 | | | +| [Reference][3] | MEDIUMINT UNSIGNED | NO | PRI | 0 | | | | [Chance][4] | FLOAT | NO | | 100 | | | | [QuestRequired][5] | bool | NO | | 0 | | | | [LootMode][6] | SMALLINT | NO | | 1 | | | -| [GroupId][7] | TINYINT | NO | | 0 | | | +| [GroupId][7] | TINYINT | NO | PRI | 0 | | | | [MinCount][8] | MEDIUMINT | NO | | 1 | | | | [MaxCount][9] | TINYINT UNSIGNED | NO | | 1 | | | | [Comment][10] | VARCHAR | | | | | | @@ -76,8 +76,6 @@ Agreements on **Entry** field values are described [there](#agreements). Template ID of the item which can be included into the loot. -NOTE: For [reference entries](#mincountorref) this field has no meaning and not used by the core in any way. Yet because of the PRIMARY KEY on the entry + item combination, this field will nonetheless need to be a unique number for each reference entry so that no indexing conflicts arise. - ### Reference Template reference asks core to process another loot templateĀ and to include all items dropped for that template into current loot. Simple idea. -- cgit