示例#1
0
 def applied(match, action):
     bodypart = match.group(1)
     if bodypart == "skin":
         assert "bodypart" not in action.args or not action.args["bodypart"]
     else:
         assert action.args["bodypart"] == bodypart
     lose_balance("salve")
     p.raise_event("SalveApplied", salve=action.args["salve"], bodypart=action.args.get("bodypart", None))
示例#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')
示例#3
0
 def harvested(match, action):
     lose_balance('balance')
示例#4
0
 def deactivated(match, action):
     lose_balance('equilibrium')
     set_status('selfishness', False)
示例#5
0
 def gathered(match, action):
     lose_balance('balance')
     
示例#6
0
 def already_active(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
     if action.args['target'] is None:
         set_status('vigour', True)
示例#7
0
 def hit(action, match):
     lose_balance('balance')
示例#8
0
 def deactivated(match, action):
     assert not action.args['activate']
     set_status('dragon', False)
     lose_balance('balance')
     lose_balance('equilibrium')
     
示例#9
0
 def focused(action, match):
     lose_balance('focus')
示例#10
0
 def activated(action, match, event_args):
     assert match.group(1) == action.args['element']
     assert event_args['element'] == action.args['element']
     lose_balance('equilibrium')
     set_status('%s_channel' % action.args['element'], True)
示例#11
0
 def water_activated(match, action):
     for element in ['earth', 'air', 'fire', 'water']:
         set_status('%s_channel' % element, True)
     lose_balance('equilibrium')
示例#12
0
 def writhing(action, match):
     lose_balance('balance')
     set_status('entangled', False)
示例#13
0
 def started_writhing_off_transfixation(action, match):
     lose_balance('balance')
示例#14
0
 def started_writhing_free(action, match):
     lose_balance('balance')
示例#15
0
 def ate_balance_herb(match, action):
     herb = match.group(1)
     assert action.args.item == herb
     lose_balance('herb')
     p.raise_event('HerbEaten', herb=herb)
示例#16
0
 def ate_irid_moss(match, action):
     assert action.args.item in ('irid', 'moss')
     lose_balance('irid')
     p.raise_event('HerbEaten', herb='irid')
示例#17
0
 def first_line_captured(action, match):
     lose_balance('balance')
     action.first_line_captured = True
示例#18
0
 def activated_on_someone_else(match, action):
     assert action.first_activation_line_captured
     assert action.args['target'].lower() == match.group(1).lower()
     lose_balance('equilibrium')
示例#19
0
 def cast(action, match):
     lose_balance('equilibrium')
     set_status('swiftcurse', True)
示例#20
0
 def activated_on_oneself(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
     set_status('vigour', True)
示例#21
0
 def stage1(match, action):
     assert action.args['activate']
     lose_balance('balance')
     lose_balance('equilibrium')
     action.transformation_stage = 1
示例#22
0
 def off_balance(action, match):
     lose_balance('focus')
示例#23
0
 def activated(match, action):
     lose_balance('equilibrium')
     set_status('panacea', True)
示例#24
0
 def cast_at_oneself(match, action):
     assert action.args['target'] == 'me'
     lose_balance('equilibrium')
     set_status('chargeshield', True)
示例#25
0
 def activated_on_someone_else(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
示例#26
0
 def cast_at_someone_else(match, action):
     assert action.args['target'].lower() == match.group(1).lower()
     lose_balance('equlibrium')
示例#27
0
 def activated(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
     set_status('wildgrowth', True)
示例#28
0
 def activated(match, action):
     lose_balance('equilibrium')
     set_status('barkskin', True)
示例#29
0
 def hit(match, action):
     lose_balance('equilibrium')
     
示例#30
0
 def opening_line(action, match):
     lose_balance('equilibrium')
     action.defences = []