Exemplo n.º 1
0
 def post_expire(self, psdue):
     """
      Execute an action right before a spell expires
     """
     from wouso.core import scoring
     if psdue.spell.name == 'top-disguise':
         psdue.player.points = scoring.real_points(psdue.player)
         psdue.player.save()
Exemplo n.º 2
0
Arquivo: god.py Projeto: TomyRO/wouso
 def post_expire(self, psdue):
     """
      Execute an action right before a spell expires
     """
     from wouso.core import scoring
     if psdue.spell.name == 'top-disguise':
         psdue.player.points = scoring.real_points(psdue.player)
         psdue.player.save()
Exemplo n.º 3
0
def post_expire(sender, **kwargs):
    """
     Execute an action right before a spell expires
    """

    try:
        psdue = kwargs['psdue']
    except:
        return

    from wouso.core import scoring
    if psdue.spell.name == 'top-disguise':
        psdue.player.points = scoring.real_points(psdue.player)
        psdue.player.save()