This is a tool to automatically edit xml files containing units and add treasure for those units based on their equipment.
This is very early version for now. Barely tested.
How to use:
1. Make a backup of the whole folder of xml files you want to work on.
2. Run tool
3. Press button with folder icon to open any xml file containing units
4. Press execute button
What it does in details:
1a. Based on opened xml file it checks ALL xml files in that folder (excluding subfolders) for items
1b. It makes a list of those items excluding clothes, hairs, faces and mounts
2a. Then it looks for units equipment in selected file
2b. It checks if equipment is already on the droppable treasure list
2c. If not then it adds it
Download and more on nexus page