本文整理汇总了Python中mudwyrm_users.admin.achaea.scripts.char.set_status函数的典型用法代码示例。如果您正苦于以下问题:Python set_status函数的具体用法?Python set_status怎么用?Python set_status使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_status函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finish
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)
示例2: cast_successfully
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: on_diagnose_captured
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)
示例4: drank_elixir_without_effect
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)
示例5: colocasia_2
def colocasia_2(action, match):
char.set_status('deafness', True)
示例6: euphorbia
def euphorbia(action, match):
char.set_status('nausea', True)
示例7: prefarar_2
def prefarar_2(action, match):
char.set_status('sensitivity', True)
示例8: curare
def curare(action, match):
char.set_status('paralysis', True)
示例9: digitalis
def digitalis(action, match):
char.set_status('shyness', True)
示例10: eurypteria
def eurypteria(action, match):
char.set_status('recklessness', True)
示例11: aconite
def aconite(action, match):
char.set_status('stupidity', True)
示例12: notechis
def notechis(action, match):
char.set_status('haemophilia', True)
示例13: delphinium_3
def delphinium_3(action, match):
char.set_status('sleep', True)
示例14: delphinium_2
def delphinium_2(action, match):
char.set_status('insomnia', False)
示例15: delphinium_1
def delphinium_1(action, match):
char.set_status('kola', False)