def failure_epidermal_no_affliction(line, time, backrefs): if player.last_salve != 'epidermal': core.disable_trigger('failure_epidermal_no_affliction', 'failures') return where = player.actions['applied_to'] if where in ('torso', 'body'): afflictions = ( 'anorexia', 'itching' ) cures.remove_afflictions(afflictions) elif where == 'head': afflictions = ( 'laceration_lvl1', 'stuttering' ) cures.remove_afflictions(afflictions) core.disable_trigger('failure_epidermal_no_affliction', 'failures') player.salve_balance = 1
def failure_mending_no_affliction(line, time, backrefs): if player.last_salve != 'mending': core.disable_trigger('failure_mending_no_affliction', 'failures') return where = player.actions['applied_to'] if where == 'arms': afflictions = ( 'leftarm_lvl1', 'rightarm_lvl1', ) cures.remove_afflictions(afflictions) elif where == 'legs': afflictions = ( 'leftleg_lvl1', 'rightleg_lvl1', ) cures.remove_afflictions(afflictions) elif where in ('torso', 'body'): afflictions = ( 'ablaze', 'selarnia' ) cures.remove_afflictions(afflictions) core.disable_trigger('failure_mending_no_affliction', 'failures') # if you fail on mending you don't lose salve balance player.salve_balance = 1
def failure_restoration_no_affliction(line, time, backrefs): # we applied restoration but got no cure if player.last_salve != 'restoration': core.disable_trigger('failure_restoration_no_affliction', 'failures') return where = player.actions['applied_to'] if where == 'arms': afflictions = ( 'leftarm_lvl2', 'leftarm_lvl3', 'rightarm_lvl2', 'rightarm_lvl3' ) cures.remove_afflictions(afflictions) elif where == 'legs': afflictions = ( 'leftleg_lvl2', 'leftleg_lvl3', 'rightleg_lvl2', 'rightleg_lvl3' ) cures.remove_afflictions(afflictions) elif where == 'head': afflictions = ( 'head_lvl1', 'head_lvl2', 'concussion', 'laceration_lvl2' ) cures.remove_afflictions(afflictions) elif where in ('torso', 'body'): afflictions = ( 'torso_lvl1', 'torso_lvl2', 'heartseed' ) cures.remove_afflictions(afflictions) core.disable_trigger('failure_restoration_no_affliction', 'failures')