if you only want bonuses to be displayed on equipped gems and not elsewhere...
### uitooltip.py ###
#find
elif item.ITEM_TYPE_DS == itemType:
self.AppendTextLine(self.__DragonSoulInfoString(itemVnum))
if app.ENABLE_DS_SET:
if window_type == player.EQUIPMENT and self.interface and self.interface.wndDragonSoul:
self.__AppendDragonSoulAttributeInformation(attrSlot, itemVnum / 10000, self.interface.wndDragonSoul.GetDSSetGrade())
else:
self.__AppendAttributeInformation(attrSlot)
else:
self.__AppendAttributeInformation(attrSlot)
else:
self.__AppendLimitInformation()
### replace them all with this
elif item.ITEM_TYPE_DS == itemType:
self.AppendTextLine(self.__DragonSoulInfoString(itemVnum))
if app.ENABLE_DS_SET:
showSetBonus = False
if self.interface and self.interface.wndDragonSoul:
if slotIndex != -1 and window_type is not None:
try:
if player.IsDSEquipmentSlot(window_type, slotIndex):
showSetBonus = True
except:
showSetBonus = False
if showSetBonus:
self.__AppendDragonSoulAttributeInformation(
attrSlot, itemVnum / 10000, self.interface.wndDragonSoul.GetDSSetGrade()
)
else:
self.__AppendDragonSoulAttributeInformation(attrSlot)
else:
self.__AppendAttributeInformation(attrSlot)