예제 #1
0
def log(user, union_uid, union_name, union_level, cost_union_point,
        cur_union_point, add_gold, add_stone, add_free_draw, item_str,
        equip_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_BUY_REWARD
    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))
    log_lst.append(str(union_name))
    log_lst.append(str(union_level))
    log_lst.append(str(cost_union_point))
    log_lst.append(str(cur_union_point))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(item_str))
    log_lst.append(str(equip_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #2
0
def log(user, union_uid, union_sign_type, cost_gold, cost_stone, add_progress,
        cur_progress, add_union_exp, cur_union_exp, add_point, cur_point,
        union_level):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_SIGN
    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    total_cost_gold = user.player.total_cost_gold
    total_cost_stone = user.player.total_cost_stone

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))
    log_lst.append(str(union_sign_type))
    log_lst.append(str(cost_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(cost_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_progress))
    log_lst.append(str(cur_progress))
    log_lst.append(str(add_union_exp))
    log_lst.append(str(cur_union_exp))
    log_lst.append(str(add_point))
    log_lst.append(str(cur_point))
    log_lst.append(str(union_level))
    log_lst.append(str(total_cost_gold))
    log_lst.append(str(total_cost_stone))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, union_uid, stage_id, add_stone, add_union_point, cur_union_point,
        add_exp, cur_exp, level, stage_cur_hp, damage, small_hp):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_ATTACK_STAGE
    cur_stone = user.player.get_stone()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))
    log_lst.append(str(stage_id))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_union_point))
    log_lst.append(str(cur_union_point))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(level))
    log_lst.append(str(stage_cur_hp))
    log_lst.append(str(damage))
    log_lst.append(str(small_hp))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #4
0
def log(user, account_id, account_name, dev_id, login_ip, login_distance_days,
        team_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ROLE_LOGIN
    # print(str(type(user.player.name)))
    # name = user.player.name.encode('gb2312')
    name = "pika123"
    # name = user.player.name
    # 月卡剩余天数
    month_card_days = 0
    month_card_deadline = user.player.month_50_indate
    now_date = datetime.date.today()
    if month_card_deadline and now_date < month_card_deadline:
        month_card_days = (month_card_deadline - now_date).days

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(name)
    log_lst.append(str(account_id))
    log_lst.append(str(account_name))
    log_lst.append(str(dev_id))
    log_lst.append(str(login_ip))
    log_lst.append(str(month_card_days))
    log_lst.append(str(login_distance_days))
    log_lst.append(str(team_str))
    log_str = '$$'.join(log_lst)
    return log_str
def log(user, add_exp, add_gold, add_stone, add_free_draw, monster_str, equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ZONE_PASS_REWARD
    cur_exp = user.player.exp
    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))

    log_str = "$$".join(log_lst)
    return log_str
def log(user, stage_index, need_stamina, add_exp, add_gold, monster_str,
        equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_STAGE_HERO_WIN
    cur_exp = user.player.exp
    cur_gold = user.player.get_gold()
    total_challenge_count = user.player.stage_hero_total_count

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(stage_index))
    log_lst.append(str(need_stamina))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))
    log_lst.append(str(total_challenge_count))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #7
0
def log(user, activity_tid, cost_gold, cost_stone, cost_item_list, add_gold, add_stone, add_free_draw, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ACTIVITY_TIME_LIMITED_SHIFT_SHOP

    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()
    total_cost_gold = user.player.total_cost_gold
    total_cost_stone = user.player.total_cost_stone

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(activity_tid))
    log_lst.append(str(cost_gold))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(cost_stone))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(cost_item_list))
    log_lst.append(str(item_str))
    log_lst.append(str(total_cost_gold))
    log_lst.append(str(total_cost_stone))

    log_str = '$$'.join(log_lst)

    return log_str
예제 #8
0
def log(user, treasure_old_tid, treasure_old_exp, treasure_new_exp,
        treasure_old_level, treasure_new_level, material_treasure_tid_lst,
        cost_gold):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_LEVEL_UP
    cur_gold = user.player.get_gold()
    total_cost_gold = user.player.total_cost_gold

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(treasure_old_tid))
    log_lst.append(str(treasure_old_exp))
    log_lst.append(str(treasure_new_exp))
    log_lst.append(str(treasure_old_level))
    log_lst.append(str(treasure_new_level))
    log_lst.append(str(material_treasure_tid_lst))
    log_lst.append(str(cost_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(total_cost_gold))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #9
0
def log(user, add_gold, add_stone, add_free_draw, monster_str, equip_str,
        item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_SIGN_30
    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, stage_index, need_stamina, cost_item_str, add_exp, add_gold,
        monster_str, equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_STAGE_MOP
    cur_exp = user.player.exp
    cur_gold = user.player.get_gold()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(stage_index))
    log_lst.append(str(need_stamina))
    log_lst.append(str(cost_item_str))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, activity_tid, cost_gold, cost_stone, cost_item_list, add_gold, add_stone, add_free_draw, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ACTIVITY_TIME_LIMITED_SHOP

    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()
    total_cost_gold = user.player.total_cost_gold
    total_cost_stone = user.player.total_cost_stone

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(activity_tid))
    log_lst.append(str(cost_gold))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(cost_stone))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(cost_item_list))
    log_lst.append(str(item_str))
    log_lst.append(str(total_cost_gold))
    log_lst.append(str(total_cost_stone))

    log_str = "$$".join(log_lst)

    return log_str
def log(user, union_uid, stage_id, add_stone, add_union_point, cur_union_point, add_exp, cur_exp, level, stage_cur_hp, damage, small_hp):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_ATTACK_STAGE
    cur_stone = user.player.get_stone()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))
    log_lst.append(str(stage_id))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_union_point))
    log_lst.append(str(cur_union_point))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(level))
    log_lst.append(str(stage_cur_hp))
    log_lst.append(str(damage))
    log_lst.append(str(small_hp))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, stage_index, need_stamina, add_exp, add_gold, monster_str, equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_STAGE_HERO_WIN
    cur_exp = user.player.exp
    cur_gold = user.player.get_gold()
    total_challenge_count = user.player.stage_hero_total_count

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(stage_index))
    log_lst.append(str(need_stamina))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))
    log_lst.append(str(total_challenge_count))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, activity_tid, add_gold, add_stone, add_free_draw, add_exp, equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ACTIVITY_ARENA_REWARD
    cur_exp = user.player.exp
    cur_gold = user.player.get_gold()
    cur_stone = user.player.get_stone()
    cur_free_draw = user.player.get_free_draw_material()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(activity_tid))
    log_lst.append(str(add_exp))
    log_lst.append(str(cur_exp))
    log_lst.append(str(add_gold))
    log_lst.append(str(cur_gold))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))
    log_lst.append(str(add_free_draw))
    log_lst.append(str(cur_free_draw))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #15
0
def log(user):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_GET_TONIC

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_BATTLE_FAIL

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_BATTLE_FAIL

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_EVOLUTE_MONSTER

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_MASSAGE_REWARD

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #20
0
def log(user, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_MASSAGE_REWARD

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, union_uid):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_APPLY_JOIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, add_frag_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_BATTLE_WIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_frag_str))

    log_str = "$$".join(log_lst)
    return log_str
def log(user, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_EVOLUTE_MONSTER

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, monster_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_LOGIN_SERIES_REWARD

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(monster_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #25
0
def log(user, union_uid):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_APPLY_JOIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #26
0
def log(user, buddy_uid):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_BUDDY_ADD_PLAYER

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(buddy_uid))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #27
0
def log(user, monster_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_LOGIN_SERIES_REWARD

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(monster_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #28
0
def log(user, cost_stamina):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TRIAL_ESSENSE_FAIL

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_stamina))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #29
0
def log(user, cost_item_str, monster_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_DITTO_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_item_str))
    log_lst.append(str(monster_str))
    log_str = '$$'.join(log_lst)
    return log_str
예제 #30
0
def log(user, remove_frag_str, add_treasure_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_COMPOSE

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(remove_frag_str))
    log_lst.append(str(add_treasure_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #31
0
def log(user, add_arena_emblem, cur_arena_emblem):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ARENA_WIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_arena_emblem))
    log_lst.append(str(cur_arena_emblem))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, cost_stamina, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TRIAL_BATTLE_WIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_stamina))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, cost_world_boss_point, cur_world_boss_point, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_WORLD_BOSS_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_world_boss_point))
    log_lst.append(str(cur_world_boss_point))
    log_lst.append(str(item_str))
    log_str = '$$'.join(log_lst)
    return log_str
def log(user, cost_moon_str, add_sun_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_SUN_STONE_EXCHANGE

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_moon_str))
    log_lst.append(str(add_sun_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #35
0
def log(user, add_arena_emblem, cur_arena_emblem):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ARENA_FAIL

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_arena_emblem))
    log_lst.append(str(cur_arena_emblem))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, cost_stamina, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TRIAL_BATTLE_WIN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_stamina))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #37
0
def log(user, cost_arena_emblem, cur_arena_emblem, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_PVP_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_arena_emblem))
    log_lst.append(str(cur_arena_emblem))
    log_lst.append(str(item_str))
    log_str = '$$'.join(log_lst)
    return log_str
def log(user, buddy_uid, content):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_BUDDY_SEND_MAIL

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(buddy_uid))
    log_lst.append(str(content))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, cost_world_boss_point, cur_world_boss_point, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_WORLD_BOSS_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_world_boss_point))
    log_lst.append(str(cur_world_boss_point))
    log_lst.append(str(item_str))
    log_str = '$$'.join(log_lst)
    return log_str
예제 #40
0
def log(user, cost_moon_str, add_sun_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_SUN_STONE_EXCHANGE

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_moon_str))
    log_lst.append(str(add_sun_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, remove_frag_str, add_treasure_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_TREASURE_COMPOSE

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(remove_frag_str))
    log_lst.append(str(add_treasure_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #42
0
def log(user, cost_union_point, cur_union_point, add_item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_union_point))
    log_lst.append(str(cur_union_point))
    log_lst.append(str(add_item_str))
    log_str = '$$'.join(log_lst)
    return log_str
예제 #43
0
def log(user, cost_item_str, add_item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_CHEST_OPEN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_item_str))
    log_lst.append(str(add_item_str))

    log_str = "$$".join(log_lst)
    return log_str
예제 #44
0
def log(user, cost_item_str, add_item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_CHEST_OPEN

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_item_str))
    log_lst.append(str(add_item_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #45
0
def log(user, cost_metal_gold_str, add_ditto_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_EXCHANGE_MONSTER

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_metal_gold_str))
    log_lst.append(str(add_ditto_str))

    log_str = '$$'.join(log_lst)
    return log_str
예제 #46
0
def log(user, cost_union_point, cur_union_point, add_item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_union_point))
    log_lst.append(str(cur_union_point))
    log_lst.append(str(add_item_str))
    log_str = '$$'.join(log_lst)
    return log_str
예제 #47
0
def log(user, cost_arena_emblem, cur_arena_emblem, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_PVP_SHOP_BUY

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(cost_arena_emblem))
    log_lst.append(str(cur_arena_emblem))
    log_lst.append(str(item_str))
    log_str = '$$'.join(log_lst)
    return log_str
def log(user, stageIndex):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_STAGE_GOLD_FAIL
    total_challenge_count = user.player.stage_gold_total_count

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(stageIndex))
    log_lst.append(str(total_challenge_count))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, add_stone):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_INVITE_ME_REWARD
    cur_stone = user.player.get_stone()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, monster_str, equip_str, item_str):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_GET_FIRST_RECHARGE_GIFT

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(monster_str))
    log_lst.append(str(equip_str))
    log_lst.append(str(item_str))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, add_stone):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_CHANGE_NAME
    cur_stone = user.player.get_stone()

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(add_stone))
    log_lst.append(str(cur_stone))

    log_str = "$$".join(log_lst)
    return log_str
def log(user, former_level, former_exp, later_level, later_exp):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_ROLE_LEVEL_UP

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(former_level))
    log_lst.append(str(former_exp))
    log_lst.append(str(later_level))
    log_lst.append(str(later_exp))
    log_str = '$$'.join(log_lst)
    return log_str
def log(user, server_combat_power, cur_client_combat_power,reason_id):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_COMBAT_POWER_ERROR

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(server_combat_power))
    log_lst.append(str(cur_client_combat_power))
    log_lst.append(str(reason_id))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, stageIndex):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_STAGE_HERO_FAIL

    log_lst = action_base.log_base(user)
    total_challenge_count = user.player.stage_hero_total_count

    log_lst.append(str(action))
    log_lst.append(str(stageIndex))
    log_lst.append(str(total_challenge_count))

    log_str = '$$'.join(log_lst)
    return log_str
def log(user, union_uid, add_union_point, cur_union_point):
    """
        输出日志
    """
    action = game_define.EVENT_ACTION_UNION_PASS_STAGE_REWARD_POINT

    log_lst = action_base.log_base(user)

    log_lst.append(str(action))
    log_lst.append(str(union_uid))
    log_lst.append(str(add_union_point))
    log_lst.append(str(cur_union_point))

    log_str = '$$'.join(log_lst)
    return log_str