def bcure(cure): now = time.time() core.debug("registering blackout cure " + cure) player.waiting_for_aeon = 0 if player.fire_focus and player.focus_balance == .5: core.debug("fired focus in blackout") player.fire_focus = False player.focus_balance = 0 player.actions['focus'] = True core.enable_trigger('focus_balance', 'balances') ate = False for herb in player.blackout_ate: if player.blackout_ate[herb] == True: ate = True ate_herb = herb core.debug("Ate " + ate_herb + " in blackout") player.blackout_ate[herb] = False if ate: player.herb_balance = 0 player.herb_lastate = now player.ate[ate_herb] = True herbs.herbs[ate_herb].inv -= 1 cures.cure(cure)
def failure_wake(line, time, backrefs): if player.wake_balance == .5 or player.wake_balance == 0: player.wake_balance = 1 cures.cure('sleep')
def puppetry_cure_concussion(line, time, backrefs): cures.cure('concussion') player.afflictions['head_lvl1'] = False
def tumble_finished(line, time, backrefs): if player.tumbling is True and player.afflictions['impale'] is True: cures.cure('impale')
def fitness_ondef(line, time, backrefs): player.fitness_attempt = False defences.ondef('fitness') cures.cure('asthma')
def cure_head_lvl2(line, time, backrefs): cures.cure('head_lvl2') player.afflictions['head_lvl1'] = True player.afflictions['concussion'] = False
def cures_sleep(line, time, backrefs): player.wake_balance = 1 cures.cure('sleep') player.afflictions['prone'] = True player.defences['insomnia'] = False
def fitness_handling(line, time, backrefs): player.fitness_attempt = False action_queue.remove_by_name('fitnessing_out') input.run_events(time) cures.cure('asthma') core.disable_trigger('cures_fitness_asthma', 'cures')
def cure(cure): cures.cure(cure)
def chivalry_disembowel(line, time, backrefs): if player.delta_health < 0 \ and player.afflictions['reckless'] == False: cures.cure('impale') core.disable_trigger('chivalry_disembowel', 'chivalry')
def tarot_cure_emperor(line, time, backrefs): core.disable_trigger('failure_lose', 'failures') if len(cures.emperor): cures.emperor.pop() cures.cure('emperor')