示例#1
0
    @classmethod
    def get_modifiers(self):
        return ['ach-login-10',
                'ach-qotd-10',
                'ach-chall-100',
                'ach-chall-won-10',
                'ach-chall-10-a-day',
                'ach-night-owl',
                'ach-early-bird',
                'ach-popularity',
                'ach-chall-def-big',
                'ach-this-is-sparta',
                'ach-flawless-victory',
                'ach-win-fast',
                'ach-god-mode-on',
                'ach-spell-5',
                'ach-level-5',
                'ach-level-10',
                'ach-gold-300',
                'ach-use-all-spells',
                'ach-use-all-mass',
                'ach-spent-gold',
        ]


def check_for_achievements(sender, **kwargs):
    Achievements.activity_handler(sender, **kwargs)

addActivity.connect(check_for_achievements)
messageSignal.connect(check_for_achievements)
示例#2
0
            'ach-login-10',
            'ach-qotd-10',
            'ach-chall-100',
            'ach-chall-won-10',
            'ach-chall-10-a-day',
            'ach-night-owl',
            'ach-early-bird',
            'ach-popularity',
            'ach-chall-def-big',
            'ach-this-is-sparta',
            'ach-flawless-victory',
            'ach-win-fast',
            'ach-god-mode-on',
            'ach-spell-5',
            'ach-level-5',
            'ach-level-10',
            'ach-gold-300',
            'ach-use-all-spells',
            'ach-use-all-mass',
            'ach-spent-gold',
            'ach-head-start',
        ]


def check_for_achievements(sender, **kwargs):
    Achievements.activity_handler(sender, **kwargs)


addActivity.connect(check_for_achievements)
messageSignal.connect(check_for_achievements)