def log(user, stage_index, need_stamina, add_exp, add_gold, monster_str, equip_str, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_STAGE_NORMAL_WIN cur_exp = user.player.exp cur_gold = user.player.get_gold() total_challenge_count = user.player.stage_normal_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, account_id, account_name, dev_id, login_ip, login_distance_days, team_str): """ 输出日志 """ action = game_define.EVENT_ACTION_ROLE_LOGIN 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, activity_tid, add_gold, add_stone, add_free_draw, add_exp, monster_str, equip_str, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_ACTIVITY_ONE_RECHARGE 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(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, 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, add_gold, add_stone, add_free_draw, monster_str, equip_str, item_str, reward_id): """ 输出日志 """ action = game_define.EVENT_ACTION_SUM_RECHARGE_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(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_lst.append(str(reward_id)) 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): """ 输出日志 """ action = game_define.EVENT_ACTION_GYM_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, 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, buddy_uid): """ 输出日志 """ action = game_define.EVENT_ACTION_BUDDY_REMOVE_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
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, buddy_uid): """ 输出日志 """ action = game_define.EVENT_ACTION_BUDDY_SEND_STAMINA 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
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
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
def log(user, monster_str): """ 输出日志 """ action = game_define.EVENT_ACTION_SIGN_30_SERIES 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
def log(user, stageIndex): """ 输出日志 """ action = game_define.EVENT_ACTION_STAGE_BATTLE_FAIL log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append(str(stageIndex)) log_str = '$$'.join(log_lst) return log_str
def log(user, cost_stamina): """ 输出日志 """ action = game_define.EVENT_ACTION_TRIAL_BATTLE_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
def log(user, cost_stamina, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_TRIAL_ESSENSE_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, 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_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, 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
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
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, 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
def log(user, cost_gym_point, cur_gym_point, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_GYM_SHOP_BUY log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append(str(cost_gym_point)) log_lst.append(str(cur_gym_point)) log_lst.append(str(item_str)) log_str = '$$'.join(log_lst) return log_str
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
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, add_gold): """ 输出日志 """ action = game_define.EVENT_ACTION_DAILY_REWARD_GOLD cur_gold = user.player.get_gold() 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_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, add_stone): """ 输出日志 """ action = game_define.EVENT_ACTION_MONTH_CARD 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, add_gold): """ 输出日志 """ action = game_define.EVENT_ACTION_QUIZ_ANSWER_TRUE cur_gold = user.player.get_gold() 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_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, cost_consumption_point, cur_consumption_point, monster_str): """ 输出日志 """ action = game_define.EVENT_ACTION_SHOP_EXCHANGE log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append(str(cost_consumption_point)) log_lst.append(str(cur_consumption_point)) log_lst.append(str(monster_str)) log_str = '$$'.join(log_lst) return log_str
def log(user, stageIndex): """ 输出日志 """ action = game_define.EVENT_ACTION_STAGE_EXP_FAIL total_challenge_count = user.player.stage_exp_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, 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, 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_gold): """ 输出日志 """ action = game_define.EVENT_ACTION_WORLD_BOSS_ATTACK cur_gold = user.player.get_gold() 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_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
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, remove_mon_str, add_item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_MONSTER_FREE log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append(str(remove_mon_str)) log_lst.append(str(add_item_str)) log_str = '$$'.join(log_lst) # print("free monster:") # print(log_str) return log_str
def log(user, buddy_uid, stamina): """ 输出日志 """ action = game_define.EVENT_ACTION_BUDDY_RECEIVE_STAMINA cur_stamina = user.player.get_stamina() log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append(str(buddy_uid)) log_lst.append(str(stamina)) log_lst.append(str(cur_stamina)) log_str = '$$'.join(log_lst) return log_str
def log(user, add_gold, equip_str): """ 输出日志 """ action = game_define.EVENT_ACTION_EQUIP_SELL cur_gold = user.player.get_gold() 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(equip_str)) log_str = '$$'.join(log_lst) return log_str
def log(user, union_uid, union_name, cur_num, union_level): """ 输出日志 """ action = game_define.EVENT_ACTION_UNION_EXIT 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(cur_num)) log_lst.append(str(union_level)) log_str = '$$'.join(log_lst) return log_str