Comment 1 for bug 666935

Revision history for this message
speedwaystar (speedwaystar) wrote : Re: Looting two mobs with the same name and level which drop the exact same loot causes loot from the second (and any subsequent identical mob) to be ignored

Example: Kill three level 42 giant spiders. All drop shadow silk. The addon only records the loot which drops from the first spider.

Why: Opening the same unlooted body twice would record the loot on that body twice, poisoning the database. To avoid this, MobInfo2 assigns each new corpse a so-called "Unique ID" in the format "name:levelloot".

Faced with our example from above, the addon ends up assigning the same id, "giant spider:42shadow silk", to each mob. It cannot therefore distinguish between opening each mob in turn from opening the same one three times, and thus only records the loot from the first-opened mob, treating the other two as "reopens".

TODO: we need to improve the "unique ID" format assigned to each new mob so it's a bit more robust.