Пример #1
0
 },
 TOOLTIPS_CONSTANTS.TANKMAN_SKILL: {
     'tooltip':
     TOOLTIPS_CONSTANTS.TANKMEN_SKILL_UI,
     'method':
     skill.SkillTooltipData(
         contexts.PersonalCaseContext(
             fieldsToExclude=('count', ))).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.TANKMAN_NEW_SKILL: {
     'tooltip':
     TOOLTIPS_CONSTANTS.TANKMEN_BUY_SKILL_UI,
     'method':
     skill.BuySkillTooltipData(contexts.NewSkillContext()).buildToolTip,
     'complex':
     lambda tooltipData: tooltipData['count'] > 1 or tooltipData['level'] >
     0
 },
 TOOLTIPS_CONSTANTS.BATTLE_STATS_ACHIEVS: {
     'tooltip':
     TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
     'method':
     achievement.AchievementTooltipData(
         contexts.BattleResultContext()).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.ACHIEVEMENT: {
     'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
 def __init__(self, tooltipType, linkage):
     super(TankmanNewSkillTooltipBuilder, self).__init__(
         tooltipType, linkage, TOOLTIPS_CONSTANTS.COMPLEX_UI,
         skill.BuySkillTooltipData(contexts.NewSkillContext()))