def failed(match, action): restore_balance("salve")
def already_active(match, action): restore_balance('equilibrium') set_status('panacea', True)
def fail(action): restore_balance('balance')
def already_active_on_oneself(match, action): assert action.args['target'] == 'me' restore_balance('equilibrium') set_status('chargeshield', True)
def failure(match, action): restore_balance('balance')
def ate_nonbalance_herb(match, action): herb = match.group(1) assert action.args.item == herb restore_balance('herb') p.raise_event('HerbEaten', herb=herb)
def already_active(action, match): assert match.group(1) == action.args['element'] restore_balance('equilibrium') set_status('%s_channel' % action.args['element'], True)
def no_venom(action, match): restore_balance('balance') char.secreted_venom = None
def fail(action): if action.args['activate']: restore_balance('balance')
def anorexia_prevents_drinking(action, match): restore_balance('potion') set_status('anorexia', True)
def already_inactive(action, match): assert not action.args['activate'] restore_balance('balance') set_status('hide', False)
def out_of_potion(action): restore_balance('potion') p.raise_event('OutOfPotionToDrink', potion=action.args['potion'])
def fail(action): restore_balance('potion')
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"])
def cannot_eat_that(match, action): restore_balance(action._balance_type())
def already_active(match, action): assert action.args['activate'] restore_balance('balance') set_status('scales', True)
def cant_eat(match, action): restore_balance(action._balance_type()) set_status('anorexia', True)
def cant_activate(action, match): assert action.args['activate'] restore_balance('balance') set_status('hide', False)
def failure(action, match): restore_balance('equilibrium')
def already_active(action, match): assert action.args['activate'] restore_balance('balance') set_status('hide', True)
def already_reflected(match, action): restore_balance('equilibrium') if action.args['target'] == 'me': set_status('reflection', True)
def already_inactive(match, action): restore_balance('equilibrium') set_status('selfishness', False)
def already_active_on_someone_else(match, action): restore_balance('equilibrium')
def fail(action): restore_balance('focus')
def fail(action): if action.args['activate']: restore_balance('balance') restore_balance('equilibrium') char.autosip = action.autosip
def fail(action): restore_balance(action._balance_type())
def already_active(match, action): restore_balance('equilibrium') set_status('wildgrowth', True)
def no_such_item(match, action): restore_balance(action._balance_type()) if action.eating_herb: p.raise_event('OutOfHerbsToEat', herb=action.args.item)
def fail(action): restore_balance('equilibrium')
def fail(action): restore_balance("salve")