Beispiel #1
0
 def buildItem(self, dossierType, dossierCompDescr, block, name, isRare, isCurrentUserDossier):
     dossier = loadDossier(dossierCompDescr)
     if dossierType == constants.DOSSIER_TYPE.VEHICLE:
         self._component = TOOLTIP_COMPONENT.PROFILE_VEHICLE
     self._dossier = dossier
     self._dossierType = dossierType
     self._isCurrentUserDossier = isCurrentUserDossier
     if block == ACHIEVEMENT_BLOCK.RARE:
         name = int(name)
     return dossier.getTotalStats().getAchievement((block, name))
Beispiel #2
0
 def buildItem(self, dossierType, dossierCompDescr, block, name, isRare,
               isCurrentUserDossier):
     dossier = loadDossier(dossierCompDescr)
     if dossierType == constants.DOSSIER_TYPE.VEHICLE:
         self._component = TOOLTIP_COMPONENT.PROFILE_VEHICLE
     self._dossier = dossier
     self._dossierType = dossierType
     self._isCurrentUserDossier = isCurrentUserDossier
     if block == ACHIEVEMENT_BLOCK.RARE:
         name = int(name)
     return dossier.getTotalStats().getAchievement((block, name))