Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. def __AppendAttributeInformation(self, attrSlot, itemAbsChance = 0):
  2. import chat
  3. chat.AppendChat(1, str(attrSlot))
  4. if 0 != attrSlot:
  5. for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
  6. type = attrSlot[i][0]
  7. value = attrSlot[i][1]
  8. if 0 == value:
  9. continue
  10.  
  11. affectString = self.__GetAffectString(type, value)
  12. if app.ENABLE_SASH_SYSTEM:
  13. if item.GetItemType() == item.ITEM_TYPE_COSTUME and item.GetItemSubType() == item.COSTUME_TYPE_SASH and itemAbsChance:
  14. value = self.CalcSashValue(value, itemAbsChance)
  15. affectString = self.__GetAffectString(type, value)
  16.  
  17. if affectString:
  18. affectColor = self.__GetAttributeColor(i, value, type)
  19. self.AppendTextLine(affectString, affectColor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement