def loot(): if char.balance('balance') and char.balance('equilibrium'): for item in s.loot: p.send("get %s" % item) s.loot = [] s.state = 'inactive' combat_echo("Finished fighting.")
def prereqs(obj): if status('anorexia'): return False if obj in achaea.known_herbs: if obj in ['moss', 'irid']: return balance('irid') return balance('herb') return True
def autosip(): if actions.drink_potion.possible(): if (char.max_health - char.health > 500 or char.status('blackout')): if s.available_potions['health']: p.act(actions.drink_potion, 'health') elif char.max_mana - char.mana > 500: if s.available_potions['mana']: p.act(actions.drink_potion, 'mana') if char.health < (char.max_health * 0.65) and char.balance('irid') and actions.eat.possible('irid'): p.act(actions.eat, 'irid')
def reel_line(): if char.balance('balance') and char.balance('equilibrium'): p.send("reel line") s.hooked_fish = False