Beispiel #1
0
 def failed(match, action):
     restore_balance("salve")
Beispiel #2
0
 def already_active(match, action):
     restore_balance('equilibrium')
     set_status('panacea', True)
Beispiel #3
0
 def fail(action):
     restore_balance('balance')
Beispiel #4
0
 def already_active_on_oneself(match, action):
     assert action.args['target'] == 'me'
     restore_balance('equilibrium')
     set_status('chargeshield', True)
Beispiel #5
0
 def failure(match, action):
     restore_balance('balance')
Beispiel #6
0
 def ate_nonbalance_herb(match, action):
     herb = match.group(1)
     assert action.args.item == herb
     restore_balance('herb')
     p.raise_event('HerbEaten', herb=herb)
Beispiel #7
0
 def already_active(action, match):
     assert match.group(1) == action.args['element']
     restore_balance('equilibrium')
     set_status('%s_channel' % action.args['element'], True)
Beispiel #8
0
 def no_venom(action, match):
     restore_balance('balance')
     char.secreted_venom = None
Beispiel #9
0
 def fail(action):
     if action.args['activate']:
         restore_balance('balance')
Beispiel #10
0
 def anorexia_prevents_drinking(action, match):
     restore_balance('potion')
     set_status('anorexia', True)
Beispiel #11
0
 def already_inactive(action, match):
     assert not action.args['activate']
     restore_balance('balance')
     set_status('hide', False)
Beispiel #12
0
 def out_of_potion(action):
     restore_balance('potion')
     p.raise_event('OutOfPotionToDrink', potion=action.args['potion'])
Beispiel #13
0
 def fail(action):
     restore_balance('potion')
Beispiel #14
0
 def out_of_salve(match, action):
     restore_balance("salve")
     if action.args["salve"] in achaea.known_salves:
         p.raise_event("OutOfSalveToApply", salve=action.args["salve"])
Beispiel #15
0
 def cannot_eat_that(match, action):
     restore_balance(action._balance_type())
Beispiel #16
0
 def already_active(match, action):
     assert action.args['activate']
     restore_balance('balance')
     set_status('scales', True)
Beispiel #17
0
 def cant_eat(match, action):
     restore_balance(action._balance_type())
     set_status('anorexia', True)
Beispiel #18
0
 def cant_activate(action, match):
     assert action.args['activate']
     restore_balance('balance')
     set_status('hide', False)
Beispiel #19
0
 def failure(action, match):
     restore_balance('equilibrium')
Beispiel #20
0
 def already_active(action, match):
     assert action.args['activate']
     restore_balance('balance')
     set_status('hide', True)
Beispiel #21
0
 def already_reflected(match, action):
     restore_balance('equilibrium')
     if action.args['target'] == 'me':
         set_status('reflection', True)
Beispiel #22
0
 def already_inactive(match, action):
     restore_balance('equilibrium')
     set_status('selfishness', False)
Beispiel #23
0
 def already_active_on_someone_else(match, action):
     restore_balance('equilibrium')
Beispiel #24
0
 def fail(action):
     restore_balance('focus')
Beispiel #25
0
 def fail(action):
     if action.args['activate']:
         restore_balance('balance')
         restore_balance('equilibrium')
         char.autosip = action.autosip
Beispiel #26
0
 def fail(action):
     restore_balance(action._balance_type())
Beispiel #27
0
 def already_active(match, action):
     restore_balance('equilibrium')
     set_status('wildgrowth', True)
Beispiel #28
0
 def no_such_item(match, action):
     restore_balance(action._balance_type())
     if action.eating_herb:
         p.raise_event('OutOfHerbsToEat', herb=action.args.item)
Beispiel #29
0
 def fail(action):
     restore_balance('equilibrium')
Beispiel #30
0
 def fail(action):
     restore_balance("salve")