本文整理汇总了Python中Character.Character.get_skill方法的典型用法代码示例。如果您正苦于以下问题:Python Character.get_skill方法的具体用法?Python Character.get_skill怎么用?Python Character.get_skill使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character.Character
的用法示例。
在下文中一共展示了Character.get_skill方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: assign_to_taskgroup
# 需要导入模块: from Character import Character [as 别名]
# 或者: from Character.Character import get_skill [as 别名]
def assign_to_taskgroup(self, Character):
self.__task_group.append(Character)
if self.__req_skills.count == 0:
pass
else:
for i in range(0, len(self.__req_skills)):
Character.get_skill(self.__req_skills[i])
示例2: __init__
# 需要导入模块: from Character import Character [as 别名]
# 或者: from Character.Character import get_skill [as 别名]
#.........这里部分代码省略.........
pass
for key, value in armors.items():
try:
money_sum = money_sum + int(value)
except Exception:
pass
cpoint_sum = self.max_cpoints - cpoint_sum
opoint_sum = op_current_limit - opoint_sum
money_sum = self.money - money_sum
cpoint_text = str(cpoint_sum) + "/" + str(self.max_cpoints)
opoint_text = str(opoint_sum) + "/" + str(op_current_limit)
for header in self.datasets["headers"]:
header.var_cpoints.set(cpoint_text)
header.var_opoints.set(opoint_text)
header.var_money.set(str(money_sum))
# self.var_cpoints.set(str(cpoint_text))
# self.var_opoints.set(opoint_text)
def get_Wpn_availability(self):
return self.__char.getAttributeRoll("Luck")
def getChar_stat(self, stat):
return self.__char.get_stat(stat)
def setChar_stat(self, stat, value):
self.__char.set_stat(stat, value)
def clear_all_skills(self):
list = self.__char.get_skills()
for key, value in list.items():
list[key] = 0
def set_char_skill(self, skill, value):
self.__char.add_skill(skill, value)
def get_char_skill_dictionary(self):
return self.__char.get_skills()
def clear_ability_list(self, name):
list = self.__char.get_ability_list(name)
if name != "cyberware":
list.clear()
else:
del list[:]
def set_to_ability_list(self, list, ability, value, complication=False, frequency=0, intensity=0, importance=0):
self.__char.set_to_ability_list(list, ability, value, complication, frequency, intensity, importance)
def get_from_ability_list(self, list, ability):
ability = self.__char.get_ability(list, ability)
return ability
def get_ability_dictionary(self, list_name):
list = self.__char.get_ability_list(list_name)
return list
def get_char_cyberwear(self):
return self.__char.get_installed_cyberwear()