Ejemplo n.º 1
0
 def _pack(cls, bonus):
     model = IconBonusModel()
     cls._packCommon(bonus, model)
     model.setName('default')
     model.setValue(
         backport.text(R.strings.quests.missions.awards.merged(),
                       count=len(bonus.getValue())))
     return [model]
Ejemplo n.º 2
0
 def _packSingleBonus(cls, bonus, dossierIconName, dossierNamePostfix,
                      dossierValue):
     model = IconBonusModel()
     model.setName(bonus.getName() + dossierNamePostfix)
     model.setIsCompensation(bonus.isCompensation())
     model.setValue(str(dossierValue))
     model.setIcon(dossierIconName)
     return model
Ejemplo n.º 3
0
 def _packSingleBonus(cls, bonus):
     model = IconBonusModel()
     model.setName(bonus.getNameForIcon())
     model.setIcon(bonus.getIcon())
     return model