Example #1
0
 def finish(action):
     for element in char.available_elements():
         if element not in action.channels:
             set_status(element + '_channel', False)
     for element in action.channels:
         set_status(element + '_channel', True)
     p.raise_event('ChannelListCaptured', channels=action.channels)
Example #2
0
 def cast_successfully(match, action):
     target = match.group(1)
     if target == 'yourself':
         assert action.args['target'] == 'me'
         lose_balance('equilibrium')
         set_status('reflection', True)
     else:
         assert action.args['target'].lower() == match.group(1).lower()
         lose_balance('equlibrium')
Example #3
0
def on_diagnose_captured(diagnoses):
    for diagnosis in _diagnose_lines.iterkeys():
        if diagnosis not in diagnoses and diagnosis not in _special_diagnoses:
            set_status(diagnosis, False)
    for diagnosis in diagnoses:
        if diagnosis not in _special_diagnoses:
            set_status(diagnosis, True)
    
    if 'shivers' in diagnoses:
        set_status('caloric', False)
    if ('webbed' in diagnoses or
        'roped' in diagnoses or
        'bound' in diagnoses):
        set_status('entangled', True)
    _limb_check(diagnoses, 'crippled', 'arm')
    _limb_check(diagnoses, 'crippled', 'leg')
    _limb_check(diagnoses, 'damaged', 'arm')
    _limb_check(diagnoses, 'damaged', 'leg')
    _limb_check(diagnoses, 'mangled', 'arm')
    _limb_check(diagnoses, 'mangled', 'leg')
    
    set_status('loki', False)
Example #4
0
def drank_elixir_without_effect(match, event_args):
    elixir = event_args['elixir']
    if elixir == 'immunity':
        set_status('voyria', False)
    elif elixir == 'venom':
        set_status('venom', True)
    elif elixir == 'frost':
        set_status('frost', True)
Example #5
0
 def colocasia_2(action, match):
     char.set_status('deafness', True)
Example #6
0
 def euphorbia(action, match):
     char.set_status('nausea', True)
Example #7
0
 def prefarar_2(action, match):
     char.set_status('sensitivity', True)
Example #8
0
 def curare(action, match):
     char.set_status('paralysis', True)
Example #9
0
 def digitalis(action, match):
     char.set_status('shyness', True)
Example #10
0
 def eurypteria(action, match):
     char.set_status('recklessness', True)
Example #11
0
 def aconite(action, match):
     char.set_status('stupidity', True)
Example #12
0
 def notechis(action, match):
     char.set_status('haemophilia', True)
Example #13
0
 def delphinium_3(action, match):
     char.set_status('sleep', True)
Example #14
0
 def delphinium_2(action, match):
     char.set_status('insomnia', False)
Example #15
0
 def delphinium_1(action, match):
     char.set_status('kola', False)
Example #16
0
 def xentio(action, match):
     char.set_status('clumsiness', True)
Example #17
0
 def oleander(action, match):
     char.set_status('blindness', True)
Example #18
0
 def gecko(action, match):
     char.set_status('slickness', True)
Example #19
0
 def kalmia(action, match):
     char.set_status('asthma', True)
Example #20
0
 def scytherus(action, match):
     char.set_status('scytherus', True)
Example #21
0
 def darkshade(action, match):
     char.set_status('darkshade', True)
Example #22
0
 def nechamandra(action, match):
     char.set_status('shivers', True)
Example #23
0
 def prefarar_1(action, match):
     char.set_status('deafness', False)
Example #24
0
 def arm_cripple(action):
     if not char.status('crippled_arm_1'):
         char.set_status('crippled_arm_1', True)
     else:
         char.set_status('crippled_arm_2', True)
Example #25
0
 def monkshood(action, match):
     char.set_status('disloyalty', True)
Example #26
0
 def leg_cripple(action):
     if not char.status('crippled_leg_1'):
         char.set_status('crippled_leg_1', True)
     else:
         char.set_status('crippled_leg_2', True)
Example #27
0
 def colocasia_1(action, match):
     char.set_status('blindness', True)
Example #28
0
 def cured_blindness(action, match):
     char.set_status('transfixation', False)
     char.set_status('blindness', False)
Example #29
0
 def oculus(action, match):
     char.set_status('blindness', False)
Example #30
0
 def loki(action, match):
     char.set_status('loki', True)