示例#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]
 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
示例#3
0
 def _packSingleBonus(cls, bonus):
     model = IconBonusModel()
     model.setName(bonus.getNameForIcon())
     model.setIcon(bonus.getIcon())
     return model