Jump to content

Khaled

Inactive Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Khaled

  1. 36 minutes ago, VegaS™ said:

    Thanks for release, already i did something like this in a topic from 2019, so here's:

     

     5SKFcab.png qitNeab.png gq6ofab.png

     

    • 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 New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.