I know this topic is fairly dead but...
Is this script supposed to eliminate different grades of items?
Like I only loot items in their base forms. I.e. "Sword" "Pike" but no "Bent Sword" "Cracked Pike", ect.
I'm also using a WRECK'd module system if that has any bearing on this, because it made changes to allow for troops to be given items with those exact buffs/debuffs.