fix some issues with item ranking and sha-toushed weapons, fix to some cases where we compared string with int