aRTy42 / POE-ItemInfo

Item Info Script for Path of Exile
166 stars 224 forks source link

CheckBaseLevel Fix #1

Closed vdorie closed 8 years ago

vdorie commented 8 years ago

CheckBaseLevel fails on identified magic items since ItemTypeName includes affixes. Rather than checking base name equality, this version uses substring matching. Unlike the previous versions using substring matching, this one then finds the base name with the longest substring match, instead of just the first. It should work under all circumstances.