コード例 #1
0
ファイル: apply.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: gathering.py プロジェクト: sh-ft/mudwyrm_users
 def harvested(match, action):
     lose_balance('balance')
コード例 #4
0
ファイル: survival.py プロジェクト: sh-ft/mudwyrm_users
 def deactivated(match, action):
     lose_balance('equilibrium')
     set_status('selfishness', False)
コード例 #5
0
ファイル: gathering.py プロジェクト: sh-ft/mudwyrm_users
 def gathered(match, action):
     lose_balance('balance')
     
コード例 #6
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: twoarts.py プロジェクト: sh-ft/mudwyrm_users
 def hit(action, match):
     lose_balance('balance')
コード例 #8
0
ファイル: dragoncraft.py プロジェクト: sh-ft/mudwyrm_users
 def deactivated(match, action):
     assert not action.args['activate']
     set_status('dragon', False)
     lose_balance('balance')
     lose_balance('equilibrium')
     
コード例 #9
0
ファイル: survival.py プロジェクト: sh-ft/mudwyrm_users
 def focused(action, match):
     lose_balance('focus')
コード例 #10
0
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 def water_activated(match, action):
     for element in ['earth', 'air', 'fire', 'water']:
         set_status('%s_channel' % element, True)
     lose_balance('equilibrium')
コード例 #12
0
ファイル: __init__.py プロジェクト: sh-ft/mudwyrm_users
 def writhing(action, match):
     lose_balance('balance')
     set_status('entangled', False)
コード例 #13
0
ファイル: __init__.py プロジェクト: sh-ft/mudwyrm_users
 def started_writhing_off_transfixation(action, match):
     lose_balance('balance')
コード例 #14
0
ファイル: __init__.py プロジェクト: sh-ft/mudwyrm_users
 def started_writhing_free(action, match):
     lose_balance('balance')
コード例 #15
0
ファイル: eat.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: eat.py プロジェクト: sh-ft/mudwyrm_users
 def ate_irid_moss(match, action):
     assert action.args.item in ('irid', 'moss')
     lose_balance('irid')
     p.raise_event('HerbEaten', herb='irid')
コード例 #17
0
ファイル: curses.py プロジェクト: sh-ft/mudwyrm_users
 def first_line_captured(action, match):
     lose_balance('balance')
     action.first_line_captured = True
コード例 #18
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 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
ファイル: curses.py プロジェクト: sh-ft/mudwyrm_users
 def cast(action, match):
     lose_balance('equilibrium')
     set_status('swiftcurse', True)
コード例 #20
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 def activated_on_oneself(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
     set_status('vigour', True)
コード例 #21
0
ファイル: dragoncraft.py プロジェクト: sh-ft/mudwyrm_users
 def stage1(match, action):
     assert action.args['activate']
     lose_balance('balance')
     lose_balance('equilibrium')
     action.transformation_stage = 1
コード例 #22
0
ファイル: survival.py プロジェクト: sh-ft/mudwyrm_users
 def off_balance(action, match):
     lose_balance('focus')
コード例 #23
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 def activated(match, action):
     lose_balance('equilibrium')
     set_status('panacea', True)
コード例 #24
0
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 def cast_at_oneself(match, action):
     assert action.args['target'] == 'me'
     lose_balance('equilibrium')
     set_status('chargeshield', True)
コード例 #25
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 def activated_on_someone_else(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
コード例 #26
0
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 def cast_at_someone_else(match, action):
     assert action.args['target'].lower() == match.group(1).lower()
     lose_balance('equlibrium')
コード例 #27
0
ファイル: groves.py プロジェクト: sh-ft/mudwyrm_users
 def activated(match, action):
     assert action.first_activation_line_captured
     lose_balance('equilibrium')
     set_status('wildgrowth', True)
コード例 #28
0
ファイル: elementalism.py プロジェクト: sh-ft/mudwyrm_users
 def activated(match, action):
     lose_balance('equilibrium')
     set_status('barkskin', True)
コード例 #29
0
ファイル: alchemy.py プロジェクト: sh-ft/mudwyrm_users
 def hit(match, action):
     lose_balance('equilibrium')
     
コード例 #30
0
ファイル: defences.py プロジェクト: sh-ft/mudwyrm_users
 def opening_line(action, match):
     lose_balance('equilibrium')
     action.defences = []