You could also parse the item's icon. Icons always (AFAIK) say what weapon type or armor type they are, with one exception: all staves use the same icon so there is no granularity in that.
Your tooltip parsing idea may be used to further granulate staves into types, however...
|