selectedFashion 385 3106 130 + selectedCard 107
attr2,1
7420 (base score) * 1.1(斑斓度16)= 8162 ()
* 1.00475 (GetTotalBonusByAttriIncludeFaction(2*2+1-1))
-- (not enabled) * 1.008 (level bonus , if bHasCollectionBonus)
* 1.0015 (card bonus)
* attri_factor (6000 / 1000) = 49278
15500 (base score) * 1.1 = 17050
* 1.00605 (GetTotalBonusByAttriIncludeFaction(4*2+1-1))
* 1.0015
* attri_factor (2000 / 1000) = 34357
serverFashionDetail 2 -> 8162
serverScoreInfo
attr2,1 baseScore 49278
attr3,1 baseScore 58155 skill bonus id 7672, score 14515
attr4,1 baseScore 34357
2984
Stage:
"93": {
"name": "1-2 海岛之约",
"desc": "",
"file_icon": 16193,
"bg_path": 16194,
"pre_id": 0,
"next_id": 0,
"stage_type": 0,
"stage_func": 0,
"common_limit_id": 0,
"combat_time": 5,
"combat_cg": 0,
"combat_prepare_bgm": 1,
"combat_loading_bg": 0,
"combat_keywords": "甜美清纯的少女装扮",
"combat_show_observe_ui_in_summary": 0,
"skip_show_tasks": "963,964,967,1078",
"main_attribute_type_1": 6,
"main_attribute_type_2": 4,
"main_tag_type_1": 0,
"main_tag_type_2": 0,
"attribute_type1": 1,
"attribute_value1": 3000,
"attribute_type2": 1,
"attribute_value2": 6000,
"attribute_type3": 1,
"attribute_value3": 6000,
"attribute_type4": 1,
"attribute_value4": 2000,
"attribute_type5": 0,
"attribute_value5": 3000,
"tag_type_1": 0,
"tag_value_1": 0,
"tag_type_2": 0,
"tag_value_2": 0,
"tag_type_3": 0,
"tag_value_3": 0,
"need_fashion_ids": [],
"phase": [
{
"phase_type": 1,
"start_task": 963,
"finish_task": 967,
"relative_id": 0,
"key_cluepoint_award": 0
},
{
"phase_type": 8,
"start_task": 969,
"finish_task": 970,
"relative_id": 0,
"key_cluepoint_award": 0
}
],
"button_posx": 850,
"button_posy": -355,
"task_tip_1": "风格甜美",
"task_tip_2": "清纯少女感",
"task_tip_3": "",
"npc_portrait_for_tip": 0,
"difficulty": [
{
"cost_force": 4,
"fail_gold": 0,
"rank_score": [
1,
4889,
9927,
14817
],
"fail_exp": 40,
"pass_gold": 600,
"pass_exp": 40,
"pass_item": 1599,
"pass_item_drop_list_id": 7537,
"perfect_item": 0,
"perfect_item_drop_list_id": 0,
"reward_tid": 0,
"hide_first_pass_reward": 0,
"first_pass_reward": [],
"guarantee_reward_list": [],
"guarantee_reward_id": 0
},
{
"cost_force": 8,
"fail_gold": 0,
"rank_score": [
1,
4889,
9927,
14817
],
"fail_exp": 80,
"pass_gold": 1200,
"pass_exp": 80,
"pass_item": 1588,
"pass_item_drop_list_id": 8887,
"perfect_item": 0,
"perfect_item_drop_list_id": 0,
"reward_tid": 0,
"hide_first_pass_reward": 0,
"first_pass_reward": [],
"guarantee_reward_list": [
{
"item_id": 16,
"item_count": 4
}
],
"guarantee_reward_id": 0
}
],
"recommand_card_factor": 0.0,
"recommand_tag_factor": 0.0,
"need_progress": 0,
"score": 100,
"is_score_repeatable": 0,
"score_perfect": 100,
"score_hard": 200,
"score_hard_perfect": 200,
"has_achievement_challenge": 0,
"achievement_rank_score": [
60000,
60000,
60000,
60000
],
"achievement_list": [
{
"id": 8173,
"reward_id": 7966,
"reward_bindcash_num": 0
},
{
"id": 4250,
"reward_id": 7967,
"reward_bindcash_num": 0
},
{
"id": 8174,
"reward_id": 7968,
"reward_bindcash_num": 0
}
],
"achievement_finish_reward_id": 8183,
"achievement_rank_reward_id": 8190,
"unlock_score_reward": 400,
"stage_toplist_id": 601
},
Fashion:
"385": {
"fashion_type": 1,
"color_plate_unlock_item_id": 1576,
"color_plate_unlock_item_num": 3,
"fashion_evolution_item_id": 1575,
"evolution_item_num": 1,
"decompose_group_id": 0,
"first_decompose_item_id": 0,
"first_decompose_item_count": 0,
"first_decompose_item_id2": 0,
"first_decompose_item_count2": 0,
"second_decompose_item_id": 0,
"second_decompose_item_count": 0,
"second_decompose_item_id2": 0,
"second_decompose_item_count2": 0,
"first_to_second_factor": 0,
"first_to_second_factor2": 0,
"is_home_fashion": 0,
"occasion_type_mask": 15,
"sort_index": 0,
"name": "散落闲绪",
"quality": 2,
"debugname": "发型0061",
"drop_id": 0,
"drop_desc": "",
"show_anim": "",
"show_emotion": "",
"stand_pose_type": 1,
"hand_pose": "",
"params": [
1,
385
],
"test_lv": 33,
"show_dialogue1": "",
"show_dialogue2": "",
"show_dialogue3": "",
"newgot_tip": 0,
"details": [...],
"decompose_reward_id": 0,
"dye_num": 1,
"special_color_plate_id": 1638,
"color_plates": [...],
"logo_num": 0,
"logos": [],
"show_act_id": 0,
"main_attribute_1": 1,
"main_attribute_2": 4,
"tag_1": 13,
"tag_2": 28,
"attribute_type1": 0,
"attribute_value1": 0,
"attribute_type2": 1,
"attribute_value2": 0,
"attribute_type3": 1,
"attribute_value3": 0,
"attribute_type4": 1,
"attribute_value4": 0,
"attribute_type5": 0,
"attribute_value5": 0,
"exclusive_group_id": 385,
"exclusive_type_1": 0,
"whitelist_group_1": 0,
"exclusive_type_2": 0,
"whitelist_group_2": 0,
"act_blacklist_group_id": 0,
"combat_cg_mask": 0,
"source": [],
"color_plate_attr_id": 0,
"modelings": [],
"modeling_attr": 0,
"score": 0,
"activity_id": 0
},
"3106": {
"fashion_type": 2,
"color_plate_unlock_item_id": 1644,
"color_plate_unlock_item_num": 72,
"fashion_evolution_item_id": 1645,
"evolution_item_num": 36,
"decompose_group_id": 0,
"first_decompose_item_id": 0,
"first_decompose_item_count": 0,
"first_decompose_item_id2": 0,
"first_decompose_item_count2": 0,
"second_decompose_item_id": 0,
"second_decompose_item_count": 0,
"second_decompose_item_id2": 0,
"second_decompose_item_count2": 0,
"first_to_second_factor": 0,
"first_to_second_factor2": 0,
"is_home_fashion": 0,
"occasion_type_mask": 0,
"sort_index": 0,
"name": "璞月之章",
"quality": 6,
"debugname": "连衣裙0185",
"drop_id": 0,
"drop_desc": "",
"show_anim": "",
"show_emotion": "",
"stand_pose_type": 90,
"hand_pose": "",
"params": [
0,
1,
2
],
"test_lv": 22,
"show_dialogue1": "",
"show_dialogue2": "",
"show_dialogue3": "",
"newgot_tip": 0,
"details": [...],
"decompose_reward_id": 0,
"dye_num": 4,
"special_color_plate_id": 21148,
"color_plates": [...],
"logo_num": 0,
"logos": [],
"show_act_id": 0,
"main_attribute_1": 8,
"main_attribute_2": 6,
"tag_1": 4,
"tag_2": 23,
"attribute_type1": 0,
"attribute_value1": 7770, - 典雅 跃动
"attribute_type2": 1,
"attribute_value2": 7420, - 性感 清纯
"attribute_type3": 1,
"attribute_value3": 8741, - 成熟 甜美
"attribute_type4": 1,
"attribute_value4": 15500, - 华丽 简约
"attribute_type5": 1,
"attribute_value5": 6037, - 清凉 保暖
"exclusive_group_id": 3106,
"exclusive_type_1": 0,
"whitelist_group_1": 0,
"exclusive_type_2": 0,
"whitelist_group_2": 0,
"act_blacklist_group_id": 0,
"combat_cg_mask": 0,
"source": [
16160
],
"color_plate_attr_id": 0,
"modelings": [],
"modeling_attr": 0,
"score": 2000,
"activity_id": 0
},
"130": {
"fashion_type": 7,
"color_plate_unlock_item_id": 1576,
"color_plate_unlock_item_num": 2,
"fashion_evolution_item_id": 1575,
"evolution_item_num": 1,
"decompose_group_id": 0,
"first_decompose_item_id": 0,
"first_decompose_item_count": 0,
"first_decompose_item_id2": 0,
"first_decompose_item_count2": 0,
"second_decompose_item_id": 0,
"second_decompose_item_count": 0,
"second_decompose_item_id2": 0,
"second_decompose_item_count2": 0,
"first_to_second_factor": 0,
"first_to_second_factor2": 0,
"is_home_fashion": 0,
"occasion_type_mask": 13,
"sort_index": 0,
"name": "蜜桃泡泡",
"quality": 2,
"debugname": "鞋子1000",
"drop_id": 0,
"drop_desc": "",
"show_anim": "",
"show_emotion": "",
"stand_pose_type": 1,
"hand_pose": "",
"params": [],
"test_lv": 33,
"show_dialogue1": "",
"show_dialogue2": "",
"show_dialogue3": "",
"newgot_tip": 0,
"details": [...],
"decompose_reward_id": 0,
"dye_num": 1,
"special_color_plate_id": 0,
"color_plates": [...],
"logo_num": 0,
"logos": [],
"show_act_id": 0,
"main_attribute_1": 8,
"main_attribute_2": 6,
"tag_1": 13,
"tag_2": 0,
"attribute_type1": 1,
"attribute_value1": 0,
"attribute_type2": 1,
"attribute_value2": 0,
"attribute_type3": 1,
"attribute_value3": 0,
"attribute_type4": 1,
"attribute_value4": 0,
"attribute_type5": 0,
"attribute_value5": 0,
"exclusive_group_id": 130,
"exclusive_type_1": 0,
"whitelist_group_1": 0,
"exclusive_type_2": 0,
"whitelist_group_2": 0,
"act_blacklist_group_id": 0,
"combat_cg_mask": 0,
"source": [],
"color_plate_attr_id": 0,
"modelings": [],
"modeling_attr": 0,
"score": 0,
"activity_id": 0
},
Card:
"107": {
"name": "小爱",
"spellname": "XIAOAI",
"subname": "与你起舞",
"desc": "内置私人GPRS系统,加载了最新信息采集与检索模块,查案好帮手!",
"quality": 0,
"is_story": 0,
"type": 6,
"icon": 13485,
"icon_evolve": 13486,
"disable_evolve": 0,
"bg_evolve": 0,
"normal_display": {...},
"evolve_display": {...},
"voicechangespeed": 0.0,
"evolve_fashion_id": 0,
"evolve_reward_id": 7472,
"default_bgm": 1,
"soundbankname": "",
"attribute_type1": 1,
"attribute_type2": 1,
"attribute_type3": 1,
"attribute_type4": 1,
"attribute_type5": 0,
"attribute_type1_filter": 1,
"attribute_type2_filter": 0,
"attribute_type3_filter": 0,
"attribute_type4_filter": 0,
"attribute_type5_filter": 0,
"main_attribute": 2,
"level_attri_tid": 6871, -- level_attr_config.level[i] -> attr_config[XXX] -> "attr": [31,15,21,15,6]
"star_attri_tid": 6956,
"level_award_tid": 2160,
"star_award_tid": 2179,
"source": [
8688
],
"piece_source": [
9109
],
"comment_icon": 13485,
"comment_icon_evolve": 13486,
"story_pos": 1,
"score": 250,
"score_evolve": 250,
"score_level_tbl_id": 9266, -- R卡升级战力系数
"score_star_tbl_id": 9269, -- R卡升星战力系数
"delay_syncbar_hitarea1": "",
"delay_syncbar_hitarea2": "",
"slotPosOffset": [
0,
-255
],
"card_skill": [
{
"id": 7672,
"desc_script_id": 0,
"level_max_limit": 5,
"piece_exp_factor_id": 7745,
"skillup_money_id": 7950,
"score_skill_tbl_id": 9654,
"shiny_id": 0,
"card_limit_level": 0
},
{
"id": 7732,
"desc_script_id": 0,
"level_max_limit": 5,
"piece_exp_factor_id": 7745,
"skillup_money_id": 7950,
"score_skill_tbl_id": 9654,
"shiny_id": 0,
"card_limit_level": 0
}
],
"video_share_id": 0,
"first_got_tip": 0,
"piece_to_piece_money": 0,
"piece_to_common_piece": 1,
"common_piece_to_piece": 1,
"auto_to_piece_repu_id": 0,
"auto_to_piece_repu_value": 0,
"collect_property_type": 2,
"first_get_prop": 5,
"first_get_exp": 5,
"evolve_prop": 5,
"evolve_exp": 5,
"skill_full_prop": 15,
"skill_full_exp": 15,
"cant_piece_compose": 0
},
调试命令: s print(_G.g_CardMan.m_AllCards[107].Attris)
s require("Utility.dump_table").table_print(_G.g_CardMan.m_AllCards[107].Attris)
s require("Utility.dump_table").table_print(_G.g_CardMan.m_AllCards[107].GetAttriBonus(2, 1))
s print(_G.g_CardMan.m_AllCards[107]:GetAttriBonus(2, 1))
s require("Utility.dump_table").table_print(require("Configs.FashionCfg").GetFashionDetailById(3106))
s print(require("Configs.FashionCfg").GetFashionInfo(3106).attribute_value2)
s local pb_helper=require("PB.pb_helper");msg=pb_helper.NewCmd("gp_stage_combat_start");msg.stage_id=93;msg.selected_fashion:append(385);msg.selected_fashion:append(3106);msg.selected_fashion:append(130);msg.selected_card:append(107);pb_helper.Send(msg);print("send msg", msg);
s local pb_helper=require("PB.pb_helper");msg=pb_helper.NewCmd("gp_stage_combat_start");msg.stage_id=93;msg.selected_fashion:append(385);msg.selected_fashion:append(3106);msg.selected_fashion:append(130);msg.selected_card:append(107);pb_helper.Send(msg);print("send msg", msg);
s require("Utility.dump_table").table_print(g_AttriBonusData)
s require("Utility.dump_table").table_print(g_Faction._practice_attris)
s print(g_AttriBonusData:GetTotalBonusByAttriIncludeFaction(1))
s g_AttriBonusData:GetTotalBonusByAttriIncludeFaction(2)
s print(g_AttriBonusData:GetCardBonusByAttri(2*2+1-1))