Beispiel #1
0
def check_temp_trophies(c, pmap):
  award_temp_trophy(c, pmap, query.player_hare_candidates(c),
                    "last_win", [100])

  award_temp_trophy(c, pmap, query.player_streak_best(c),
                    'max_streak_Nth:%d', [200, 100, 50])

  award_temp_trophy(c, pmap, query.get_top_unique_killers(c),
                    'top_uniq_killer:%d', [50, 20, 10])

#  award_temp_trophy(c, pmap, query.player_pacific_win_best(c),
#                    'top_pacific_win:%d', [200, 100, 50],
#                    team_points=True)

  # [snark] xl1 dive disabled for 2010 tourney.
  #award_temp_trophy(c, pmap, query.player_xl1_dive_best(c),
  #                  'xl1_dive_Nth:%d', [50, 20, 10],
  #                  team_points=True)

  award_temp_trophy(c, pmap, query.player_hs_combo_best(c),
                    'max_combo_hs_Nth:%d', [200, 100, 50],
                    can_share_places=True, team_points=True)

  award_temp_trophy(c, pmap, query.get_top_ziggurats(c),
                    'zig_rank:%d', [200, 100, 50], team_points=True)

  award_temp_trophy(c, pmap, query.player_rune_dive_best(c),
                    'rune_dive_rank:%d', [50, 20, 10], team_points=True)

  award_temp_trophy(c, pmap, query.player_deaths_to_uniques_best(c),
                    'deaths_to_uniques_Nth:%d', [50, 20, 10],
                    can_share_places=False,
                    team_points=True)
Beispiel #2
0
def check_temp_trophies(c, pmap):
    award_temp_trophy(c, pmap, query.player_hare_candidates(c), "last_win", [100])

    award_temp_trophy(c, pmap, query.get_top_unique_killers(c), "top_unique_killer:%d", [50, 20, 10])

    #  award_temp_trophy(c, pmap, query.player_dieselest_best(c),
    #                    'top_ac+ev_game:%d', [50, 20, 10],
    #                    team_points=True)

    #  award_temp_trophy(c, pmap, query.player_pacific_win_best(c),
    #                    'top_pacific_win:%d', [200, 100, 50],
    #                    team_points=True)

    # [snark] xl1 dive disabled for 2010 tourney.
    # award_temp_trophy(c, pmap, query.player_xl1_dive_best(c),
    #                  'xl1_dive_rank:%d', [50, 20, 10],
    #                  team_points=True)

    award_temp_trophy(
        c,
        pmap,
        query.player_hs_combo_best(c),
        "combo_scores_Nth:%d",
        [200, 100, 50],
        can_share_places=True,
        team_points=True,
    )

    award_temp_trophy(c, pmap, query.get_top_ziggurats(c), "zig_rank:%d", [100, 50, 20], team_points=True)

    award_temp_trophy(c, pmap, query.player_low_xl_win_best(c), "low_xl_win_rank:%d", [100, 50, 20], team_points=True)

    award_temp_trophy(c, pmap, query.player_rune_dive_best(c), "rune_dive_rank:%d", [50, 20, 10], team_points=True)

    award_temp_trophy(
        c,
        pmap,
        query.player_deaths_to_uniques_best(c),
        "deaths_to_uniques_Nth:%d",
        [50, 20, 10],
        can_share_places=False,
        team_points=True,
    )
    # streak handling
    all_streaks = query.list_all_streaks(c)
    # not currently giving top_streak points
    # award_temp_trophy(c, pmap, all_streaks, 'top_streak:%d', [200, 100, 50])
    # give out streak points and handle Chei III here so we don't have to
    # recompute all streaks yet again
    for streak in all_streaks:
        if streak[1] > 1:
            assign_points(c, "streak", streak[0], streak[1] * 100, False)
        if streak[1] < 4:
            continue
        l = len(streak[3])
        for i in range(l - 3):
            if query.compute_streak_length(streak[3][i : i + 4]) == 4:
                banner.award_banner(c, streak[0], "cheibriados", 3)
                break
Beispiel #3
0
def check_temp_trophies(c, pmap):
  award_temp_trophy(c, pmap, query.player_hare_candidates(c),
                    "last_win", [100])

  award_temp_trophy(c, pmap, query.get_top_unique_killers(c),
                    'top_unique_killer:%d', [50, 20, 10])

#  award_temp_trophy(c, pmap, query.player_dieselest_best(c),
#                    'top_ac+ev_game:%d', [50, 20, 10],
#                    team_points=True)

#  award_temp_trophy(c, pmap, query.player_pacific_win_best(c),
#                    'top_pacific_win:%d', [200, 100, 50],
#                    team_points=True)

  # [snark] xl1 dive disabled for 2010 tourney.
  #award_temp_trophy(c, pmap, query.player_xl1_dive_best(c),
  #                  'xl1_dive_rank:%d', [50, 20, 10],
  #                  team_points=True)

  award_temp_trophy(c, pmap, query.player_hs_combo_best(c),
                    'combo_scores_Nth:%d', [200, 100, 50],
                    can_share_places=True, team_points=True)

  award_temp_trophy(c, pmap, query.get_top_ziggurats(c),
                    'zig_rank:%d', [100, 50, 20], team_points=True)

  award_temp_trophy(c, pmap, query.player_low_xl_win_best(c),
                    'low_xl_win_rank:%d', [100, 50, 20], team_points=True)

  award_temp_trophy(c, pmap, query.player_rune_dive_best(c),
                    'rune_dive_rank:%d', [50, 20, 10], team_points=True)

  award_temp_trophy(c, pmap, query.player_deaths_to_uniques_best(c),
                    'deaths_to_uniques_Nth:%d', [50, 20, 10],
                    can_share_places=False,
                    team_points=True)
  # streak handling
  all_streaks = query.list_all_streaks(c)
  # not currently giving top_streak points
  #award_temp_trophy(c, pmap, all_streaks, 'top_streak:%d', [200, 100, 50])
  # give out streak points and handle Chei III here so we don't have to
  # recompute all streaks yet again
  for streak in all_streaks:
    if streak[1] > 1:
      assign_points(c, "streak", streak[0], streak[1]*100, False)
    if streak[1] < 4:
      continue
    l = len(streak[3])
    for i in range(l-3):
      if query.compute_streak_length(streak[3][i:i+4]) == 4:
        banner.award_banner(c, streak[0], 'cheibriados', 3)
        break