Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __AppendAttributeInformation(self, attrSlot, itemAbsChance = 0):
- import chat
- chat.AppendChat(1, str(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 app.ENABLE_SASH_SYSTEM:
- if item.GetItemType() == item.ITEM_TYPE_COSTUME and item.GetItemSubType() == item.COSTUME_TYPE_SASH and itemAbsChance:
- value = self.CalcSashValue(value, itemAbsChance)
- affectString = self.__GetAffectString(type, value)
- if affectString:
- affectColor = self.__GetAttributeColor(i, value, type)
- self.AppendTextLine(affectString, affectColor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement