LootGeneratorTemplate Upgrade
PostPosted: Sun Aug 19, 2012 1:02 pm
I've prepared a small update that improves the LootGeneratorTemplate. I feel like the code could use a full rewrite, but I was able to solve some of the problems I was having with it. Beforehand, on a mob with a lot of loot, it would cycle through the loot repeatedly and generate a huge list of items, many of them duplicate. This wouldn't be evident when the mob had a MobXLoot template set to 1.
I made a simple change to the code for when there isn't a MobXLoot Template, so that it cycles through the loot list once and checks each item once. I also made a further change to where there is a MobXLoot template, setting it so that when an item drops with 100% chance, it doesn't add the MobXLoot drop count instead of the item's dropcount.
I made a simple change to the code for when there isn't a MobXLoot Template, so that it cycles through the loot list once and checks each item once. I also made a further change to where there is a MobXLoot template, setting it so that when an item drops with 100% chance, it doesn't add the MobXLoot drop count instead of the item's dropcount.