本文整理汇总了Python中models.Player.points方法的典型用法代码示例。如果您正苦于以下问题:Python Player.points方法的具体用法?Python Player.points怎么用?Python Player.points使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类models.Player
的用法示例。
在下文中一共展示了Player.points方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Player
# 需要导入模块: from models import Player [as 别名]
# 或者: from models.Player import points [as 别名]
abandons += 1
# players = [player, hero, level, k, d, a, lh, dn, xpm, gpm, [items]]
new_player = Player(pl["account_id"], pl["assists"], pl["deaths"],
pl["denies"], pl["gold"], pl["gold_per_min"],
pl["gold_spent"], pl["hero_damage"], pl["hero_healing"],
pl["hero_id"], pl["item_0"], pl["item_1"],
pl["item_2"], pl["item_3"], pl["item_4"],
pl["item_5"], pl["kills"], pl["last_hits"],
pl["leaver_status"], pl["level"],
pl["player_slot"], pl["tower_damage"],
pl["xp_per_min"], pl["win"])
new_player.points = calculateHeroPoints(new_player, duration=match["duration"])
new_match.players.extend([new_player])
new_match.is_significant_p = True
valid_modes = [0, 1, 2, 3, 4, 5, 12, 16] # 0 is valid for legacy reasons
if new_match.game_mode not in valid_modes:
new_match.is_significant_p = False
if new_match.human_players < 10:
new_match.is_significant_p = False