def elementalism_transfix(line, time, backrefs): # blind is on the prompt if player.afflictions['blackout'] is False \ and player.defences['blind'] == 1: return cures.affliction('transfixed')
def necromancy_leprosy(line, time, backrefs): which_1 = backrefs[5] limb_1 = backrefs[6] which_2 = backrefs[7] limb_2 = backrefs[8] cures.affliction("%s%s_lvl1" % (which_1, limb_1)) cures.affliction("%s%s_lvl1" % (which_2, limb_2))
def dragoncraft_stream(line, time, backrefs): type = backrefs[0] if type == 'ice': cures.freeze() elif type == 'lightning': cures.affliction('epilepsy')
def amnesia(line, time, backrefs): if core.aeon_mode: if core.last_output == '' or core.last_output == ' ': core.write('touch amnesia') else: core.write(core.last_output) else: cures.affliction('amnesia')
def puppetry_concussion(line, time, backrefs): if backrefs[2] != player.name: return '''We store times of 40+ fashion messages to AI this''' if backrefs[0] in player.last_fashion.keys(): if time - player.last_fashion[backrefs[0]] <= (60 * 60): cures.affliction('concussion')
def failure_eating_mickey(line, time, backrefs): player.herb_balance = 1 core.disable_trigger('failure_eating', 'failures') core.disable_trigger('failure_eating_anorexia', 'failures') core.disable_trigger('failure_eating_mickey', 'failures') herb = herb_queue.fire() core.disable_trigger('cure_enablers_' + herb, 'cure_enablers') cures.affliction('nausea')
def trample_cure(line, time, backrefs): limb = backrefs[1] + ' ' + backrefs[2] if limb == 'left leg': cures.affliction('leftleg_lvl1') elif limb == 'right leg': cures.affliction('rightleg_lvl1') elif limb == 'left arm': cures.affliction('leftarm_lvl1') elif limb == 'right arm': cures.affliction('rightarm_lvl1') cures.ai['trample_prone_check'] = True
def voicecraft_break(line, time, backrefs): which = backrefs[1] limb = backrefs[2] if which == 'right': if limb == 'arm': cures.affliction('rightarm_lvl1') else: cures.affliction('rightleg_lvl1') else: if limb == 'arm': cures.affliction('leftarm_lvl1') else: cures.affliction('leftleg_lvl1')
def occultism_shrivel(line, time, backrefs): which = backrefs[0] limb = backrefs[1] if which == 'right': if limb == 'arm': cures.affliction('rightarm_lvl1') else: cures.affliction('rightleg_lvl1') else: if limb == 'arm': cures.affliction('leftarm_lvl1') else: cures.affliction('leftleg_lvl1')
def occultism_chaosrays(line, time, backrefs): colors = backrefs[0] colors = colors.split(',') if len(colors) == 1: colors = colors[0].split(' and ') for color in colors: color = color.replace('and', '') color = color.strip() if color == 'orange': cures.affliction('paralysis') elif color == 'indigo': cures.affliction('stupidity') elif color == 'violet': if player.defences['speed'] == 1: defences.undef('speed') else: cures.affliction('aeon')
def puppetry_confusion(line, time, backrefs): if backrefs[3] == player.name: cures.affliction('confusion')
def affliction(aff): cures.affliction(aff)
def runelore_nairat(line, time, backrefs): player.defences['caloric'] = 0 if player.afflictions['shivering']: cures.affliction('frozen') else: cures.affliction('shivering')
def puppetry_vodun_dizzy(line, time, backrefs): if backrefs[2] == player.name: cures.affliction('dizziness')
def metamorphosis_elephant_trumpet(line, time, backrefs): if player.defences['deaf'] == 0: cures.affliction('prone') cures.affliction('disruption') player.stunned = True
def puppetry_reckless(line, time, backrefs): if backrefs[2] == player.name: cures.affliction('reckless')
def spirituality_smash_break(line, time, backrefs): cures.affliction(player.smash_break)
def metamorphosis_basilisk_glare(line, time, backrefs): if len(input.buffer) == 1: cures.affliction('stupidity')
def tarot_lust(line, time, backrefs): who = backrefs[0] cures.lusted.append(who) cures.affliction('lust')
def tarot_emperor(line, time, backrefs): who = backrefs[0] cures.emperor.append(who) cures.affliction('emperor')
def necromancy_shrivel_targetted_legs(line, time, backrefs): which = backrefs[1] if which == 'right': cures.affliction('rightleg_lvl1') elif which == 'left': cures.affliction('leftleg_lvl1')
def necromancy_shrivel_untargetted_legs(line, time, backrefs): if player.afflictions['rightleg_lvl1']: cures.affliction('leftleg_lvl1') else: cures.affliction('rightleg_lvl1')
def failure_apply_slickness(line, time, backrefs): core.disable_trigger('failure_salves_offbal', 'failures') player.salve_balance = 1 player.salve_failure = True cures.affliction('slickness')
def chivalry_impale(line, time, backrefs): cures.affliction('impale') core.enable_trigger('chivalry_disembowel', 'chivalry')
def chivalry_lunge_2(line, time, backrefs): cures.affliction('prone')
def failure_asthma_smoking(line, time, backrefs): cures.affliction('asthma') waiting_for_aeon = 0
def crystalism_plague_nausea(line, time, backrefs): if 'nausea' in cures.pre_afflictions: return elif len(cures.pre_afflictions) == 0: cures.affliction('nausea')