Skip to content

Feature: Group-Specific Reference Table Loot Controls #21786

@blinkysc

Description

@blinkysc

Describe your feature request or suggestion in detail

Description

Enhance the existing reference table loot system to respect minimum and maximum drop counts

Currently, when a creature_loot_template references a "reference" loot table with the MinCount/MaxCount parameters, MinCount is ignored and must just be same as MaxCount

Describe a possible solution to your feature or suggestion in detail

Modify the core loot distribution system to interpret the existing MinCount/MaxCount parameters in creature_loot_template as per-group settings when using reference table, rather than total items.

For example, if there is multiple reference tables with GroupId 1 and GroupId 2, and the creature_loot_template specifies Min/Max= 2 for GroupId 1 and MinCount=2, MaxCount=3 for GroupId 2, the system would attempt to drop:

  • 2 items from GroupId 1
  • 2-3 items from GroupId 2

Example Use Case

For Archimonde's loot table:

-- This entry would now drop 2 items possibly 3 from each group in reference table 34068
UPDATE creature_loot_template 
SET MinCount = 2, MaxCount = 3 
WHERE Entry = 17968 AND Reference = 34068;

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions