-
Posts
2 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Khaled
-
-
36 minutes ago, VegaS™ said:
Thanks for release, already i did something like this in a topic from 2019, so here's:
- locale/en/locale_game.txt
ATTR_6TH_7TH_POSSIBILITY You can add an additional bonus.
- root/uiToolTip.py
# Search for: def __AppendAttributeInformation(self, attrSlot): if 0 != attrSlot: for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM): type = attrSlot[i][0] value = attrSlot[i][1] if 0 == value: continue affectString = self.__GetAffectString(type, value) if affectString: affectColor = self.__GetAttributeColor(i, value) self.AppendTextLine(affectString, affectColor) # Replace with: def __AppendAttributeInformation(self, attrSlot, attrRareStart = player.ITEM_ATTRIBUTE_SLOT_MAX_NUM, attrRareCount = 2): if not self.__IsAttr(attrSlot): return attrCount = 0 for attrIndex, (attrType, attrValue) in enumerate(attrSlot): if attrValue: affectString = self.__GetAffectString(attrType, attrValue) if affectString: self.AppendTextLine(affectString, self.__GetAttributeColor(attrIndex, attrValue)) attrCount += 1 if attrCount in range(attrRareStart, (attrRareStart + attrRareCount) + 1): self.AppendTextLine(localeInfo.ATTR_6TH_7TH_POSSIBILITY, self.CONDITION_COLOR)
Thanks for release
this is better
but your code still good VegaS
Create Guild Level 20
in Programming & Scripts
Posted · Edited by Khaled
thx