hkuno9000 / KanColle-YPS

艦これ余所見プレイ支援 Google Chrome拡張
https://hkuno9000.github.io/KanColle-YPS
17 stars 5 forks source link

2016.10.5メンテ追加の6-5海域bossの敵連合艦隊に対応する #64

Closed hkuno9000 closed 7 years ago

hkuno9000 commented 8 years ago

海域に到達していないので、battle APIのjsonデータ募集中

t-f-m commented 8 years ago

API name: /kcsapi/api_req_combined_battle/ec_battle

{
  "api_result": 1,
  "api_result_msg": "成功",
  "api_data": {
    "api_deck_id": 1,
    "api_ship_ke": [
      -1,
      586,
      615,
      527,
      592,
      576,
      576
    ],
    "api_ship_ke_combined": [
      -1,
      555,
      527,
      575,
      575,
      575,
      575
    ],
    "api_ship_lv": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_ship_lv_combined": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_nowhps": [
      -1,
      92,
      78,
      70,
      59,
      43,
      37,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_maxhps": [
      -1,
      92,
      78,
      70,
      59,
      43,
      37,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_nowhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_maxhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_eSlot": [
      [
        547,
        548,
        549,
        532,
        -1
      ],
      [
        556,
        557,
        558,
        558,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        550,
        550,
        545,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_eSlot_combined": [
      [
        506,
        525,
        542,
        543,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_fParam": [
      [
        115,
        0,
        120,
        107
      ],
      [
        70,
        0,
        88,
        83
      ],
      [
        59,
        0,
        86,
        84
      ],
      [
        77,
        82,
        82,
        79
      ],
      [
        63,
        139,
        49,
        63
      ],
      [
        60,
        54,
        110,
        54
      ]
    ],
    "api_eParam": [
      [
        180,
        0,
        130,
        150
      ],
      [
        25,
        0,
        50,
        80
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        64,
        92,
        96,
        68
      ],
      [
        38,
        66,
        32,
        26
      ],
      [
        38,
        66,
        32,
        26
      ]
    ],
    "api_eParam_combined": [
      [
        48,
        80,
        30,
        39
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ]
    ],
    "api_midnight_flag": 0,
    "api_search": [
      1,
      1
    ],
    "api_formation": [
      "1",
      13,
      1
    ],
    "api_air_base_attack": [
      {
        "api_base_id": 1,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 170,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 180,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 23,
          "api_e_count": 277,
          "api_e_lostcount": 63,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            525
          ]
        },
        "api_stage2": {
          "api_f_count": 38,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            1,
            0,
            1,
            1,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            221,
            0,
            63,
            51,
            0,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        }
      },
      {
        "api_base_id": 1,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 170,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 180,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 21,
          "api_e_count": 214,
          "api_e_lostcount": 30,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            558
          ]
        },
        "api_stage2": {
          "api_f_count": 37,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            0,
            1,
            0,
            1,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            58,
            0,
            0,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            1,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        }
      },
      {
        "api_base_id": 2,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 168,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 20,
          "api_e_count": 181,
          "api_e_lostcount": 35,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            558
          ]
        },
        "api_stage2": {
          "api_f_count": 41,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            1,
            0,
            1
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            92
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            1,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        }
      },
      {
        "api_base_id": 2,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 168,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 19,
          "api_e_count": 146,
          "api_e_lostcount": 38,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            -1
          ]
        },
        "api_stage2": {
          "api_f_count": 42,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            1,
            0,
            0,
            1,
            1,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            225,
            0,
            0,
            55,
            77,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        }
      }
    ],
    "api_stage_flag": [
      1,
      1,
      1
    ],
    "api_kouku": {
      "api_plane_from": [
        [
          2,
          3,
          4
        ],
        [
          2
        ]
      ],
      "api_stage1": {
        "api_f_count": 128,
        "api_f_lostcount": 1,
        "api_e_count": 44,
        "api_e_lostcount": 19,
        "api_disp_seiku": 1,
        "api_touch_plane": [
          -1,
          -1
        ]
      },
      "api_stage2": {
        "api_f_count": 80,
        "api_f_lostcount": 9,
        "api_e_count": 20,
        "api_e_lostcount": 18,
        "api_air_fire": {
          "api_idx": 5,
          "api_kind": 1,
          "api_use_items": [
            122,
            122,
            106
          ]
        }
      },
      "api_stage3": {
        "api_frai_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_erai_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fbak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          1
        ],
        "api_ebak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fcl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ecl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fdam": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_edam": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      },
      "api_stage3_combined": {
        "api_frai_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_erai_flag": [
          -1,
          0,
          0,
          1,
          1,
          0,
          0
        ],
        "api_fbak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ebak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          1
        ],
        "api_fcl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ecl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fdam": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_edam": [
          -1,
          0,
          0,
          0,
          18,
          0,
          4
        ]
      }
    },
    "api_support_flag": 0,
    "api_support_info": null,
    "api_opening_taisen_flag": 0,
    "api_opening_taisen": null,
    "api_opening_flag": 1,
    "api_opening_atack": {
      "api_frai": [
        -1,
        0,
        0,
        0,
        0,
        7,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_erai": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fdam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_edam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        85,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fydam": [
        -1,
        0,
        0,
        0,
        0,
        85,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_eydam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fcl": [
        -1,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_ecl": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "api_hourai_flag": [
      1,
      1,
      1,
      1
    ],
    "api_hougeki1": {
      "api_at_eflag": [
        -1,
        0,
        1,
        0,
        0,
        1,
        0,
        0,
        0
      ],
      "api_at_list": [
        -1,
        1,
        8,
        4,
        5,
        10,
        2,
        3,
        6
      ],
      "api_at_type": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_df_list": [
        -1,
        [
          11
        ],
        [
          2
        ],
        [
          9
        ],
        [
          12
        ],
        [
          6
        ],
        [
          8
        ],
        [
          8
        ],
        [
          8
        ]
      ],
      "api_si_list": [
        -1,
        [
          161
        ],
        [
          505
        ],
        [
          50
        ],
        [
          90
        ],
        [
          502
        ],
        [
          -1
        ],
        [
          -1
        ],
        [
          122
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ],
        [
          0
        ],
        [
          1
        ],
        [
          2
        ],
        [
          1
        ],
        [
          1
        ],
        [
          0
        ],
        [
          1
        ]
      ],
      "api_damage": [
        -1,
        [
          97
        ],
        [
          0
        ],
        [
          59
        ],
        [
          89
        ],
        [
          3
        ],
        [
          59
        ],
        [
          0
        ],
        [
          2
        ]
      ]
    },
    "api_raigeki": {
      "api_frai": [
        -1,
        0,
        0,
        0,
        2,
        2,
        8,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_erai": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fdam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_edam": [
        -1,
        0,
        37,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0
      ],
      "api_fydam": [
        -1,
        0,
        0,
        0,
        0,
        37,
        1,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_eydam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fcl": [
        -1,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_ecl": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "api_hougeki2": {
      "api_at_eflag": [
        -1,
        0
      ],
      "api_at_list": [
        -1,
        1
      ],
      "api_at_type": [
        -1,
        6
      ],
      "api_df_list": [
        -1,
        [
          2
        ]
      ],
      "api_si_list": [
        -1,
        [
          102,
          161,
          114
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ]
      ],
      "api_damage": [
        -1,
        [
          114
        ]
      ]
    },
    "api_hougeki3": {
      "api_at_eflag": [
        -1,
        0,
        0
      ],
      "api_at_list": [
        -1,
        1,
        2
      ],
      "api_at_type": [
        -1,
        0,
        0
      ],
      "api_df_list": [
        -1,
        [
          8
        ],
        [
          10
        ]
      ],
      "api_si_list": [
        -1,
        [
          161
        ],
        [
          -1
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ],
        [
          1
        ]
      ],
      "api_damage": [
        -1,
        [
          75
        ],
        [
          95
        ]
      ]
    }
  }
}
t-f-m commented 8 years ago

API name: /kcsapi/api_req_combined_battle/ec_midnight_battle

{
  "api_result": 1,
  "api_result_msg": "成功",
  "api_data": {
    "api_active_deck": [
      1,
      1
    ],
    "api_deck_id": 0,
    "api_ship_ke": [
      -1,
      586,
      615,
      527,
      592,
      576,
      576
    ],
    "api_ship_ke_combined": [
      -1,
      555,
      527,
      575,
      575,
      575,
      575
    ],
    "api_ship_lv": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_ship_lv_combined": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_nowhps": [
      -1,
      92,
      55,
      73,
      48,
      41,
      17,
      254,
      0,
      1,
      0,
      0,
      0
    ],
    "api_maxhps": [
      -1,
      92,
      70,
      78,
      59,
      43,
      37,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_nowhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "api_maxhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_eSlot": [
      [
        547,
        548,
        549,
        532,
        -1
      ],
      [
        556,
        557,
        558,
        558,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        550,
        550,
        545,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_eSlot_combined": [
      [
        506,
        525,
        542,
        543,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_fParam": [
      [
        115,
        0,
        120,
        107
      ],
      [
        59,
        0,
        86,
        84
      ],
      [
        70,
        0,
        88,
        83
      ],
      [
        77,
        82,
        82,
        79
      ],
      [
        63,
        139,
        49,
        63
      ],
      [
        60,
        54,
        110,
        54
      ]
    ],
    "api_eParam": [
      [
        180,
        0,
        130,
        150
      ],
      [
        25,
        0,
        50,
        80
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        64,
        92,
        96,
        68
      ],
      [
        38,
        66,
        32,
        26
      ],
      [
        38,
        66,
        32,
        26
      ]
    ],
    "api_eParam_combined": [
      [
        48,
        80,
        30,
        39
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ]
    ],
    "api_touch_plane": [
      102,
      -1
    ],
    "api_flare_pos": [
      -1,
      -1
    ],
    "api_hougeki": {
      "api_at_list": [
        -1,
        1,
        7,
        4,
        5,
        6
      ],
      "api_df_list": [
        -1,
        [
          7
        ],
        [
          1
        ],
        [
          9,
          9
        ],
        [
          7,
          7
        ],
        [
          7,
          7
        ]
      ],
      "api_si_list": [
        -1,
        [
          161
        ],
        [
          -1
        ],
        [
          50,
          90
        ],
        [
          90,
          50
        ],
        [
          122,
          122
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ],
        [
          1
        ],
        [
          1,
          1
        ],
        [
          1,
          2
        ],
        [
          1,
          1
        ]
      ],
      "api_sp_list": [
        -1,
        0,
        0,
        1,
        1,
        1
      ],
      "api_damage": [
        -1,
        [
          1
        ],
        [
          78
        ],
        [
          98,
          113
        ],
        [
          33,
          184
        ],
        [
          3,
          3
        ]
      ]
    }
  }
}
hkuno9000 commented 8 years ago

@t-f-m 戦闘APIのjson提供ありがとうございました。 動作確認はできていませんが、暫定対応版をpushしました。お試しください。 支援艦隊攻撃、航空基地攻撃、戦闘詳報については、おそらく不完全です。

hkuno9000 commented 8 years ago

勝敗判定推定も未対応でした。guess_win_rank に、敵護衛艦隊分の被害集計が必要です。

hkuno9000 commented 8 years ago

@t-f-m 敵連合艦隊の勝敗判定に仮対応しました。判定条件はとりあえず従来通りとします。

t-f-m commented 8 years ago

@hkuno9000 早速の実装ありがとうございます。

通常艦隊での戦闘ではいずれも機能していたのですが、肝心の敵連合艦隊の戦闘では昼戦戦闘詳報・夜戦戦闘詳報・戦闘結果いずれも機能しませんでした。 ひとまず、機能しなかった戦闘での昼戦・夜戦のデータを貼っておきます。

昼戦

{
  "api_result": 1,
  "api_result_msg": "成功",
  "api_data": {
    "api_deck_id": 1,
    "api_ship_ke": [
      -1,
      586,
      615,
      527,
      592,
      576,
      576
    ],
    "api_ship_ke_combined": [
      -1,
      555,
      527,
      575,
      575,
      575,
      575
    ],
    "api_ship_lv": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_ship_lv_combined": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_nowhps": [
      -1,
      92,
      67,
      64,
      52,
      43,
      19,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_maxhps": [
      -1,
      92,
      78,
      70,
      59,
      43,
      37,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_nowhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_maxhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_eSlot": [
      [
        547,
        548,
        549,
        532,
        -1
      ],
      [
        556,
        557,
        558,
        558,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        550,
        550,
        545,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_eSlot_combined": [
      [
        506,
        525,
        542,
        543,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_fParam": [
      [
        115,
        0,
        120,
        107
      ],
      [
        70,
        0,
        88,
        83
      ],
      [
        59,
        0,
        86,
        84
      ],
      [
        77,
        82,
        82,
        79
      ],
      [
        63,
        139,
        49,
        63
      ],
      [
        58,
        56,
        114,
        52
      ]
    ],
    "api_eParam": [
      [
        180,
        0,
        130,
        150
      ],
      [
        25,
        0,
        50,
        80
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        64,
        92,
        96,
        68
      ],
      [
        38,
        66,
        32,
        26
      ],
      [
        38,
        66,
        32,
        26
      ]
    ],
    "api_eParam_combined": [
      [
        48,
        80,
        30,
        39
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ]
    ],
    "api_midnight_flag": 1,
    "api_search": [
      1,
      1
    ],
    "api_formation": [
      "1",
      13,
      2
    ],
    "api_air_base_attack": [
      {
        "api_base_id": 1,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 170,
            "api_count": 18
          },
          {
            "api_mst_id": 186,
            "api_count": 18
          },
          {
            "api_mst_id": 180,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 19,
          "api_e_count": 277,
          "api_e_lostcount": 40,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            525
          ]
        },
        "api_stage2": {
          "api_f_count": 39,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            0,
            1,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            88,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            1,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        }
      },
      {
        "api_base_id": 1,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 18
          },
          {
            "api_mst_id": 170,
            "api_count": 18
          },
          {
            "api_mst_id": 186,
            "api_count": 18
          },
          {
            "api_mst_id": 180,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 72,
          "api_f_lostcount": 22,
          "api_e_count": 237,
          "api_e_lostcount": 29,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            558
          ]
        },
        "api_stage2": {
          "api_f_count": 38,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            0,
            1,
            1
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            197,
            98
          ]
        }
      },
      {
        "api_base_id": 2,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 15
          },
          {
            "api_mst_id": 168,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 187,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 69,
          "api_f_lostcount": 16,
          "api_e_count": 208,
          "api_e_lostcount": 39,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            549
          ]
        },
        "api_stage2": {
          "api_f_count": 41,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            1,
            0,
            0,
            0,
            1
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            0,
            0,
            89
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            0,
            0,
            1,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            0,
            0,
            116,
            0,
            0
          ]
        }
      },
      {
        "api_base_id": 2,
        "api_stage_flag": [
          1,
          1,
          1
        ],
        "api_plane_from": [
          [
            1,
            2,
            3,
            4,
            7,
            8
          ]
        ],
        "api_squadron_plane": [
          {
            "api_mst_id": 22,
            "api_count": 15
          },
          {
            "api_mst_id": 168,
            "api_count": 18
          },
          {
            "api_mst_id": 169,
            "api_count": 18
          },
          {
            "api_mst_id": 187,
            "api_count": 18
          }
        ],
        "api_stage1": {
          "api_f_count": 69,
          "api_f_lostcount": 18,
          "api_e_count": 169,
          "api_e_lostcount": 25,
          "api_disp_seiku": 3,
          "api_touch_plane": [
            -1,
            525
          ]
        },
        "api_stage2": {
          "api_f_count": 40,
          "api_f_lostcount": 0,
          "api_e_count": 0,
          "api_e_lostcount": 0
        },
        "api_stage3": {
          "api_erai_flag": [
            -1,
            0,
            1,
            0,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            10.1,
            0,
            0,
            0,
            0
          ]
        },
        "api_stage3_combined": {
          "api_erai_flag": [
            -1,
            0,
            1,
            1,
            0,
            0,
            0
          ],
          "api_ebak_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_ecl_flag": [
            -1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "api_edam": [
            -1,
            0,
            55,
            126,
            0,
            0,
            0
          ]
        }
      }
    ],
    "api_stage_flag": [
      1,
      1,
      1
    ],
    "api_kouku": {
      "api_plane_from": [
        [
          2,
          3,
          4
        ],
        [
          1,
          2
        ]
      ],
      "api_stage1": {
        "api_f_count": 107,
        "api_f_lostcount": 9,
        "api_e_count": 133,
        "api_e_lostcount": 42,
        "api_disp_seiku": 2,
        "api_touch_plane": [
          -1,
          558
        ]
      },
      "api_stage2": {
        "api_f_count": 51,
        "api_f_lostcount": 16,
        "api_e_count": 62,
        "api_e_lostcount": 39,
        "api_air_fire": {
          "api_idx": 5,
          "api_kind": 1,
          "api_use_items": [
            122,
            122,
            106
          ]
        }
      },
      "api_stage3": {
        "api_frai_flag": [
          -1,
          0,
          1,
          1,
          0,
          0,
          0
        ],
        "api_erai_flag": [
          -1,
          0,
          0,
          1,
          0,
          0,
          0
        ],
        "api_fbak_flag": [
          -1,
          0,
          0,
          0,
          0,
          1,
          0
        ],
        "api_ebak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fcl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ecl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fdam": [
          -1,
          0,
          4,
          6,
          0,
          5,
          0
        ],
        "api_edam": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      },
      "api_stage3_combined": {
        "api_frai_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_erai_flag": [
          -1,
          1,
          1,
          0,
          0,
          0,
          0
        ],
        "api_fbak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ebak_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fcl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_ecl_flag": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_fdam": [
          -1,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "api_edam": [
          -1,
          0.1,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    "api_support_flag": 0,
    "api_support_info": null,
    "api_opening_taisen_flag": 0,
    "api_opening_taisen": null,
    "api_opening_flag": 1,
    "api_opening_atack": {
      "api_frai": [
        -1,
        0,
        0,
        0,
        0,
        8,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_erai": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fdam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_edam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        44,
        0,
        0,
        0,
        0
      ],
      "api_fydam": [
        -1,
        0,
        0,
        0,
        0,
        44,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_eydam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fcl": [
        -1,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_ecl": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "api_hourai_flag": [
      1,
      1,
      1,
      1
    ],
    "api_hougeki1": {
      "api_at_eflag": [
        -1,
        0
      ],
      "api_at_list": [
        -1,
        1
      ],
      "api_at_type": [
        -1,
        6
      ],
      "api_df_list": [
        -1,
        [
          7
        ]
      ],
      "api_si_list": [
        -1,
        [
          102,
          114,
          161
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ]
      ],
      "api_damage": [
        -1,
        [
          136
        ]
      ]
    },
    "api_raigeki": {
      "api_frai": [
        -1,
        0,
        0,
        0,
        4,
        2,
        2,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_erai": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fdam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_edam": [
        -1,
        0,
        55,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fydam": [
        -1,
        0,
        0,
        0,
        0,
        51,
        4,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_eydam": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_fcl": [
        -1,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_ecl": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    "api_hougeki2": {
      "api_at_eflag": [
        -1,
        0,
        1,
        0,
        0,
        1,
        0,
        0
      ],
      "api_at_list": [
        -1,
        1,
        1,
        4,
        5,
        4,
        3,
        6
      ],
      "api_at_type": [
        -1,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_df_list": [
        -1,
        [
          3
        ],
        [
          2
        ],
        [
          2
        ],
        [
          2
        ],
        [
          1
        ],
        [
          4
        ],
        [
          4
        ]
      ],
      "api_si_list": [
        -1,
        [
          114
        ],
        [
          -1
        ],
        [
          90
        ],
        [
          90
        ],
        [
          550
        ],
        [
          -1
        ],
        [
          122
        ]
      ],
      "api_cl_list": [
        -1,
        [
          2
        ],
        [
          2
        ],
        [
          1
        ],
        [
          0
        ],
        [
          1
        ],
        [
          0
        ],
        [
          1
        ]
      ],
      "api_damage": [
        -1,
        [
          122
        ],
        [
          44.1
        ],
        [
          21
        ],
        [
          0
        ],
        [
          8
        ],
        [
          0.1
        ],
        [
          1
        ]
      ]
    },
    "api_hougeki3": {
      "api_at_eflag": [
        -1,
        0,
        1,
        0,
        1,
        0,
        0,
        0
      ],
      "api_at_list": [
        -1,
        1,
        1,
        3,
        4,
        4,
        5,
        6
      ],
      "api_at_type": [
        -1,
        6,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "api_df_list": [
        -1,
        [
          1
        ],
        [
          6
        ],
        [
          4
        ],
        [
          2
        ],
        [
          4
        ],
        [
          2
        ],
        [
          1
        ]
      ],
      "api_si_list": [
        -1,
        [
          102,
          114,
          161
        ],
        [
          -1
        ],
        [
          -1
        ],
        [
          550
        ],
        [
          90
        ],
        [
          90
        ],
        [
          122
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1
        ],
        [
          1
        ],
        [
          1
        ],
        [
          0
        ],
        [
          1
        ],
        [
          1
        ],
        [
          0
        ]
      ],
      "api_damage": [
        -1,
        [
          83
        ],
        [
          11
        ],
        [
          61
        ],
        [
          0
        ],
        [
          16
        ],
        [
          2
        ],
        [
          0
        ]
      ]
    }
  }
}

夜戦

{
  "api_result": 1,
  "api_result_msg": "成功",
  "api_data": {
    "api_active_deck": [
      1,
      1
    ],
    "api_deck_id": 0,
    "api_ship_ke": [
      -1,
      586,
      615,
      527,
      592,
      576,
      576
    ],
    "api_ship_ke_combined": [
      -1,
      555,
      527,
      575,
      575,
      575,
      575
    ],
    "api_ship_lv": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_ship_lv_combined": [
      -1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "api_nowhps": [
      -1,
      84,
      19,
      58,
      52,
      38,
      8,
      267,
      8,
      0,
      0,
      0,
      0
    ],
    "api_maxhps": [
      -1,
      92,
      78,
      70,
      59,
      43,
      37,
      350,
      96,
      76,
      66,
      37,
      37
    ],
    "api_nowhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "api_maxhps_combined": [
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      -1,
      57,
      76,
      35,
      35,
      35,
      35
    ],
    "api_eSlot": [
      [
        547,
        548,
        549,
        532,
        -1
      ],
      [
        556,
        557,
        558,
        558,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        550,
        550,
        545,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_eSlot_combined": [
      [
        506,
        525,
        542,
        543,
        -1
      ],
      [
        505,
        506,
        515,
        525,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ],
      [
        502,
        545,
        542,
        -1,
        -1
      ]
    ],
    "api_fParam": [
      [
        115,
        0,
        120,
        107
      ],
      [
        70,
        0,
        88,
        83
      ],
      [
        59,
        0,
        86,
        84
      ],
      [
        77,
        82,
        82,
        79
      ],
      [
        63,
        139,
        49,
        63
      ],
      [
        58,
        56,
        114,
        52
      ]
    ],
    "api_eParam": [
      [
        180,
        0,
        130,
        150
      ],
      [
        25,
        0,
        50,
        80
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        64,
        92,
        96,
        68
      ],
      [
        38,
        66,
        32,
        26
      ],
      [
        38,
        66,
        32,
        26
      ]
    ],
    "api_eParam_combined": [
      [
        48,
        80,
        30,
        39
      ],
      [
        68,
        48,
        40,
        70
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ],
      [
        38,
        60,
        30,
        22
      ]
    ],
    "api_touch_plane": [
      102,
      -1
    ],
    "api_flare_pos": [
      -1,
      -1
    ],
    "api_hougeki": {
      "api_at_list": [
        -1,
        1,
        7,
        4,
        5
      ],
      "api_df_list": [
        -1,
        [
          8,
          8
        ],
        [
          4
        ],
        [
          7,
          7
        ],
        [
          7,
          7
        ]
      ],
      "api_si_list": [
        -1,
        [
          114,
          161
        ],
        [
          -1
        ],
        [
          90,
          50
        ],
        [
          90,
          50
        ]
      ],
      "api_cl_list": [
        -1,
        [
          1,
          1
        ],
        [
          0
        ],
        [
          1,
          1
        ],
        [
          1,
          1
        ]
      ],
      "api_sp_list": [
        -1,
        1,
        0,
        1,
        1
      ],
      "api_damage": [
        -1,
        [
          88,
          79
        ],
        [
          0
        ],
        [
          28,
          78
        ],
        [
          18,
          118
        ]
      ]
    }
  }
}
hkuno9000 commented 8 years ago

@t-f-m デバッグモードで戦闘APIデータを差し替えて、昼戦の表示ができるところまで修正しましたが、 戦闘フェーズの流れ(開幕、砲撃1、砲撃2、砲撃3、雷撃の相手が敵主力か敵護衛か?)がわからないので ダメージ計算は正しくないと思います。

t-f-m commented 7 years ago

動く状態のものPRしようと思ってましたが、小手先の修正だとダメなようなのでひとまずわかっていることを共有したいと思います。

戦闘フェーズ

on_battle の switch case を修正するとすれば次のようになります。

    default:// 不明 敵連合艦隊暫定対応.
        calc_damage(result, nowhps, d.api_hougeki1, nowhps_c);  // 砲撃一巡目(友軍 vs 敵護衛艦隊).
        calc_damage(result, nowhps, d.api_raigeki, nowhps_c);   // 雷撃戦(友軍からの攻撃対象は敵主力・護衛の双方).
        calc_damage(result, nowhps, d.api_hougeki2);    // 砲撃二巡目(友軍 vs 敵主力艦隊).
        calc_damage(result, nowhps, d.api_hougeki3, nowhps_c);  // 砲撃三巡目(友軍からの攻撃対象は敵主力・護衛の双方).
        break;

砲撃三巡目で敵護衛艦隊を砲撃するパターンは、一度遭遇したのですが戦闘APIデータを保存し忘れたので手元にありません。

昼戦の戦闘APIデータ解釈(api_at_eflag)

砲撃三巡目のように、敵の主力・護衛のどちらを攻撃しても解釈可能なように、 api_at_eflag というデータが増えています。抜粋するとこんな感じです。

    "api_hougeki3": {
      "api_at_eflag": [
        -1,
        0, 1, 0, 1, 0, 0, 0
      ],
      "api_at_list": [
        -1,
        1, 1, 3, 4, 4, 5, 6
      ],
      "api_at_type": [
        -1,
        6, 0, 0, 0, 0, 0, 0
      ],
      "api_df_list": [
        -1,
        [ 1 ], [ 6 ], [ 4 ], [ 2 ], [ 4 ], [ 2 ], [ 1 ]
      ],

api_at_list[1] が 1 に対して、 api_df_list[1] にも [ 1 ] が対応しています。 今までのデータ解釈であれば友軍旗艦から友軍旗艦への攻撃と解釈されてしまいます。 それを防ぐのが api_at_eflag で、この配列が 0 であれば友軍の攻撃、 1 であれば敵軍の攻撃です。 なので、 1 に対して [ 1 ] が対応するケースは、今までなら 1 に対して [ 7 ] が対応していたケースということになります。

夜戦のAPIデータ解釈(api_active_deck)

今のところ自分が遭遇していないので戦闘APIデータがないのですが、昼戦で敵護衛艦隊を十分に撃破できなかった場合、夜戦の相手が敵護衛艦隊になるケースがあります。

    "api_active_deck": [
      1,
      1
    ],

友軍主力、敵主力であればこのように 1, 1 となっていますが、 敵護衛を相手にするケースではここの部分が変化して解釈を変えねばならないと思われます。

t-f-m commented 7 years ago

検索して出てきたので貼っときます。

昼戦、砲撃三巡目で敵護衛に攻撃するケース http://pastebin.com/M2zLWXD1

夜戦、敵護衛と対戦するケース http://pastebin.com/dLCXTZWh

hkuno9000 commented 7 years ago

@t-f-m イベント最終日になって今更ですが、 E-3boss戦と6-5の api_at_eflag と 戦闘フェーズに対応しました。 砲撃戦はOKですが、雷撃戦や航空戦のダメージ計算はまだ怪しい箇所が残っています。 夜戦のAPIデータ解釈 api_active_deck はまだ手をつけていません。

hkuno9000 commented 7 years ago

上記コミットにて、2016秋イベント E-3 boss の戦闘解析が正しく動作するようになった。

残件は

json

/kcsapi/api_req_combined_battle/each_battle

svdata={"api_result":1,"api_result_msg":"\u6210\u529f","api_data":{"api_deck_id":1,"api_ship_ke":[-1,708,525,525,594,575,575],"api_ship_ke_combined":[-1,555,527,527,520,501,501],"api_ship_lv":[-1,1,1,1,1,1,1],"api_ship_lv_combined":[-1,1,1,1,1,1,1],"api_nowhps":[-1,59,67,82,58,45,57,370,88,88,80,35,35],"api_maxhps":[-1,67,67,82,58,45,57,370,88,88,80,35,35],"api_nowhps_combined":[-1,50,54,57,44,32,31,57,76,76,55,20,20],"api_maxhps_combined":[-1,50,57,57,44,37,31,57,76,76,55,20,20],"api_eSlot":[[501,541,571,571,-1],[520,517,524,-1,-1],[520,517,524,-1,-1],[505,505,515,525,-1],[502,545,542,-1,-1],[502,545,542,-1,-1]],"api_eSlot_combined":[[506,525,542,543,-1],[505,506,515,525,-1],[505,506,515,525,-1],[506,513,525,-1,-1],[501,-1,-1,-1,-1],[501,-1,-1,-1,-1]],"api_fParam":[[64,0,82,76],[57,0,84,75],[98,0,84,94],[34,0,72,65],[29,0,39,59],[77,84,106,78]],"api_fParam_combined":[[70,98,68,69],[85,86,70,78],[77,79,69,75],[64,110,72,65],[60,54,110,54],[59,84,72,52]],"api_eParam":[[95,90,100,175],[0,0,40,55],[0,0,40,55],[73,66,72,82],[38,60,30,22],[38,60,30,22]],"api_eParam_combined":[[48,80,30,39],[68,48,40,70],[68,48,40,70],[36,48,24,36],[5,15,6,5],[5,15,6,5]],"api_midnight_flag":0,"api_search":[1,1],"api_formation":["14",13,1],"api_stage_flag":[1,1,1],"api_kouku":{"api_plane_from":[[1,2,4,5],[1,2,3]],"api_stage1":{"api_f_count":207,"api_f_lostcount":17,"api_e_count":206,"api_e_lostcount":90,"api_disp_seiku":2,"api_touch_plane":[93,517]},"api_stage2":{"api_f_count":130,"api_f_lostcount":9,"api_e_count":84,"api_e_lostcount":66,"api_air_fire":{"api_idx":11,"api_kind":5,"api_use_items":[122,122,106]}},"api_stage3":{"api_frai_flag":[-1,0,1,0,0,0,0],"api_erai_flag":[-1,0,0,1,1,0,1],"api_fbak_flag":[-1,0,0,0,0,1,0],"api_ebak_flag":[-1,0,0,0,0,1,0],"api_fcl_flag":[-1,0,0,0,0,0,0],"api_ecl_flag":[-1,0,0,0,0,0,0],"api_fdam":[-1,0,0,0,0,0,0],"api_edam":[-1,0,0,9,84,73,0]},"api_stage3_combined":{"api_frai_flag":[-1,0,0,0,0,0,0],"api_erai_flag":[-1,1,0,0,1,0,0],"api_fbak_flag":[-1,1,0,0,0,0,0],"api_ebak_flag":[-1,0,0,0,0,0,0],"api_fcl_flag":[-1,0,0,0,0,0,0],"api_ecl_flag":[-1,0,0,0,0,0,0],"api_fdam":[-1,0,0,0,0,0,0],"api_edam":[-1,0,0,0,39,0,0]}},"api_support_flag":0,"api_support_info":null,"api_opening_taisen_flag":0,"api_opening_taisen":null,"api_opening_flag":1,"api_opening_atack":{"api_frai":[-1,0,0,0,0,0,0,0,0,0,3,0,0],"api_erai":[-1,0,0,0,0,0,0,0,0,0,0,0,0],"api_fdam":[-1,0,0,0,0,0,0,0,0,0,0,0,0],"api_edam":[-1,0,0,67,0,0,0,0,0,0,0,0,0],"api_fydam":[-1,0,0,0,0,0,0,0,0,0,67,0,0],"api_eydam":[-1,0,0,0,0,0,0,0,0,0,0,0,0],"api_fcl":[-1,0,0,0,0,0,0,0,0,0,1,0,0],"api_ecl":[-1,0,0,0,0,0,0,0,0,0,0,0,0]},"api_hourai_flag":[1,1,1,1],"api_hougeki1":{"api_at_eflag":[-1,0,1,0,1,0,0,0,0],"api_at_list":[-1,3,1,6,6,2,5,4,1],"api_at_type":[-1,6,0,3,0,0,0,0,0],"api_df_list":[-1,[3],[4],[2],[3],[6],[1],[1],[1]],"api_si_list":[-1,[59,103,104],[501],[59,123,135],[502],[-1],[-1],[-1],[-1]],"api_cl_list":[-1,[1],[0],[2],[0],[1],[1],[1],[1]],"api_damage":[-1,[178],[0],[134],[0],[138.1],[23],[32],[29]]},"api_hougeki2":{"api_at_eflag":[-1,0,1,0,0,0,1,0,1,0],"api_at_list":[-1,10,8,9,8,7,9,11,12,12],"api_at_type":[-1,0,0,0,0,0,0,0,0,0],"api_df_list":[-1,[10],[9],[7],[9],[9],[12],[11],[10],[9]],"api_si_list":[-1,[12],[505],[50],[90],[50],[505],[122],[501],[122]],"api_cl_list":[-1,[1],[0],[2],[1],[0],[0],[1],[0],[1]],"api_damage":[-1,[40],[0],[131],[49],[0],[0],[72],[0],[2]]},"api_raigeki":{"api_frai":[-1,0,0,0,0,0,0,1,12,9,1,9,12],"api_erai":[-1,0,0,0,0,0,0,0,10,0,0,0,1],"api_fdam":[-1,0,0,0,0,0,0,0,0,0,0,0,0],"api_edam":[-1,51,0,0,0,0,0,0,0,32,0,0,190],"api_fydam":[-1,0,0,0,0,0,0,19,95,32,32,0,95],"api_eydam":[-1,0,0,0,0,0,0,0,0,0,0,0,0],"api_fcl":[-1,0,0,0,0,0,0,2,1,1,1,1,1],"api_ecl":[-1,0,0,0,0,0,0,0,0,0,0,0,0]},"api_hougeki3":{"api_at_eflag":[-1,0,1,0,0,0,0,0],"api_at_list":[-1,1,1,2,3,4,5,6],"api_at_type":[-1,0,0,0,6,0,0,0],"api_df_list":[-1,[1],[3],[1],[1],[1],[8],[8]],"api_si_list":[-1,[-1],[501],[-1],[59,103,104],[-1],[-1],[135]],"api_cl_list":[-1,[1],[0],[1],[1],[2],[1],[1]],"api_damage":[-1,[28],[0],[13],[88],[154],[74],[25]]}}}

戦闘経過ログ

2016/12/8 20:08:58, server:2016/12/8 20:08:58
本土沖太平洋上 battle4

36-3-2(任務部隊 前衛潜水艦隊@丙):連合対潜警戒/反航/敵梯形/制空権確保:A
36-3-5:能動分岐
36-3-9(16th任務部隊 B群@丙):連合輪形陣/同航/敵輪形/航空優勢:完S
36-3-12(16th任務部隊 主力機動部隊群@丙):連合輪形陣/T字有利/敵輪形/航空優勢:完S
36-3-27(boss)
連合戦闘隊形/同航/敵連合輪形陣
索敵: 敵艦隊発見!
触接中: 九七式艦攻(友永隊)
被触接中: 深海棲艦攻 Mark.II
航空優勢
戦闘被害:f_damage:0/636(0%)[0/12]652, e_damage:1000/1000(100%)[x12/12], api:/api_req_combined_battle/each_battle, rate:100
勝敗推定:完S
戦闘詳報  -
種別  攻撃艦 防御艦 敵撃墜/戦果  被撃墜/ダメージ    使用装備
触接                  九七式艦攻(友永隊)
被触接                 深海棲艦攻 Mark.II
航空優勢            90/206(43%) 17/207(8%)  
対空カットイン(5)  (艦隊2)時雨改二Lv98       66/84(78%)  9/130(6%)   10cm連装高角砲+高射装置, 10cm連装高角砲+高射装置, 13号対空電探改
航空戦     (艦隊1)蒼龍改二Lv88   miss        
航空戦     (艦隊1)祥鳳改Lv81    miss        
航空戦     (敵3)空母ヲ級eliteLv1    hit 9:. 
航空戦     (敵4)重巡ネ級Lv1 hit 84:撃沈---    
航空戦     (敵5)駆逐イ級後期型Lv1  hit 73:撃沈---    
航空戦     (敵6)駆逐イ級後期型Lv1  miss        
航空戦     (艦隊2)神通改二Lv90   miss        
航空戦     (敵護衛1)軽巡ヘ級flagshipLv1   miss        
航空戦     (敵護衛4)軽巡ト級eliteLv1  hit 39:中破   
雷撃戦 (艦隊2)木曾改二Lv95   (敵3)空母ヲ級eliteLv1    hit 67:大破!!!    
主主カットイン (艦隊1)金剛改二Lv99   (敵3)空母ヲ級eliteLv1    hit 178:撃沈---   零式水上観測機, 試製35.6cm三連装砲, 35.6cm連装砲(ダズル迷彩)
砲撃戦 (敵1)水母水姫Lv1 (艦隊1)千代田航改二Lv92 miss        5inch単装砲
主副カットイン (艦隊1)摩耶改二Lv98   (敵2)空母ヲ級eliteLv1    critical    134:撃沈---   零式水上観測機, SKC34 20.3cm連装砲, 90mm単装高角砲
砲撃戦 (敵6)駆逐イ級後期型Lv1  (艦隊1)金剛改二Lv99   miss        5inch連装砲
砲撃戦 (艦隊1)蒼龍改二Lv88   (敵6)駆逐イ級後期型Lv1  hit 138.1:撃沈--- 
砲撃戦 (艦隊1)祥鳳改Lv81    (敵1)水母水姫Lv1 hit 23:.    
砲撃戦 (艦隊1)千代田航改二Lv92 (敵1)水母水姫Lv1 hit 32:.    
砲撃戦 (艦隊1)飛龍改二Lv91   (敵1)水母水姫Lv1 hit 29:..   
砲撃戦 (艦隊2)木曾改二Lv95   (敵護衛4)軽巡ト級eliteLv1  hit 40:撃沈---    15.5cm三連装副砲
砲撃戦 (敵護衛2)重巡リ級flagshipLv1   (艦隊2)愛宕改Lv75    miss        8inch三連装砲
砲撃戦 (艦隊2)愛宕改Lv75    (敵護衛1)軽巡ヘ級flagshipLv1   critical    131:撃沈---   20.3cm(3号)連装砲
砲撃戦 (艦隊2)鳥海改二Lv78   (敵護衛3)重巡リ級flagshipLv1   hit 49:中破   20.3cm(2号)連装砲
砲撃戦 (艦隊2)神通改二Lv90   (敵護衛3)重巡リ級flagshipLv1   miss        20.3cm(3号)連装砲
砲撃戦 (敵護衛3)重巡リ級flagshipLv1   (艦隊2)時雨改二Lv98   miss        8inch三連装砲
砲撃戦 (艦隊2)初月改Lv81    (敵護衛5)駆逐イ級Lv1   hit 72:撃沈---    10cm連装高角砲+高射装置
砲撃戦 (敵護衛6)駆逐イ級Lv1   (艦隊2)木曾改二Lv95   miss        5inch単装砲
砲撃戦 (艦隊2)時雨改二Lv98   (敵護衛3)重巡リ級flagshipLv1   hit 2:中破    10cm連装高角砲+高射装置
雷撃戦 (艦隊2)神通改二Lv90   (敵1)水母水姫Lv1 critical    19:小破   
雷撃戦 (艦隊2)鳥海改二Lv78   (敵護衛6)駆逐イ級Lv1   hit 95:撃沈---    
雷撃戦 (艦隊2)愛宕改Lv75    (敵護衛3)重巡リ級flagshipLv1   hit 32:撃沈---    
雷撃戦 (艦隊2)木曾改二Lv95   (敵1)水母水姫Lv1 hit 32:小破   
雷撃戦 (艦隊2)初月改Lv81    (敵護衛3)重巡リ級flagshipLv1   hit     
雷撃戦 (艦隊2)時雨改二Lv98   (敵護衛6)駆逐イ級Lv1   hit 95:撃沈---    
雷撃戦 (敵護衛2)重巡リ級flagshipLv1   (艦隊2)木曾改二Lv95   miss        
雷撃戦 (敵護衛6)駆逐イ級Lv1   (艦隊1)飛龍改二Lv91   miss        
砲撃戦 (艦隊1)飛龍改二Lv91   (敵1)水母水姫Lv1 hit 28:小破   
砲撃戦 (敵1)水母水姫Lv1 (艦隊1)金剛改二Lv99   miss        5inch単装砲
砲撃戦 (艦隊1)蒼龍改二Lv88   (敵1)水母水姫Lv1 hit 13:小破   
主主カットイン (艦隊1)金剛改二Lv99   (敵1)水母水姫Lv1 hit 88:中破   零式水上観測機, 試製35.6cm三連装砲, 35.6cm連装砲(ダズル迷彩)
砲撃戦 (艦隊1)千代田航改二Lv92 (敵1)水母水姫Lv1 critical    154:撃沈---   
砲撃戦 (艦隊1)祥鳳改Lv81    (敵護衛2)重巡リ級flagshipLv1   hit 74:大破!!!    
砲撃戦 (艦隊1)摩耶改二Lv98   (敵護衛2)重巡リ級flagshipLv1   hit 25:撃沈---    90mm単装高角砲
friend damage
E-3攻略
1(飛龍改二Lv91).    59/67:.
2(蒼龍改二Lv88).    67/67:*
3(金剛改二Lv99).    82/82:*
4(千代田航改二Lv92).  58/58:*
5(祥鳳改Lv81). 45/45:*
6(摩耶改二Lv98).    57/57:*
E-3護衛
1(神通改二Lv90).    50/50:*
2(鳥海改二Lv78).    54/57:.
3(愛宕改Lv75). 57/57:*
4(木曾改二Lv95).    44/44:*
5(初月改Lv81). 32/37:.
6(時雨改二Lv98+修理要員x1). 31/31:*
被撃墜数: 26
enemy damage
1(水母水姫Lv1). 0/370(-418):撃沈---   +
2(空母ヲ級eliteLv1).    0/88(-134):撃沈---    +
3(空母ヲ級eliteLv1).    0/88(-254):撃沈---    +
4(重巡ネ級Lv1). 0/80(-84):撃沈--- +
5(駆逐イ級後期型Lv1).  0/35(-73):撃沈--- +
6(駆逐イ級後期型Lv1).  0/35(-138):撃沈---    +
7(軽巡ヘ級flagshipLv1). 0/57(-131):撃沈---    +
8(重巡リ級flagshipLv1). 0/76(-99):撃沈--- +
9(重巡リ級flagshipLv1). 0/76(-83):撃沈--- +
10(軽巡ト級eliteLv1).   0/55(-79):撃沈--- +
11(駆逐イ級Lv1).    0/20(-72):撃沈--- +
12(駆逐イ級Lv1).    0/20(-190):撃沈---    +

battle result
16th任務部隊 主力機動部隊群@丙(12/6):完S
MVP: 金剛改二Lv99 +720exp
MVP: 愛宕改Lv75 +720exp
drop ship
軽空母:飛鷹
t-f-m commented 7 years ago

6-5 boss戦にて、昼戦の戦闘詳報は問題なく動作することを確認しました。たいへんお疲れ様でした&ありがとうございます。

夜戦時の戦闘詳報は、友軍第二艦隊のデータが引っ張り出されているようです。

{
  "api_result": 1,
  "api_result_msg": "成功",
  "api_data": {
    "api_active_deck": [1,1],
    "api_deck_id": 1,
    "api_ship_ke": [-1,586,615,615,592,577,577],
    "api_ship_ke_combined": [-1,555,527,527,577,575,575],
    "api_ship_lv": [-1,1,1,1,1,1,1],
    "api_ship_lv_combined": [-1,1,1,1,1,1,1],
    "api_nowhps": [
      -1,
      66,51,61,69,32,14,
      64,0,59,12,0,0
    ],
    "api_maxhps": [
      -1,
      92,58,78,79,43,37,
      350,96,96,66,38,38
    ],
    "api_nowhps_combined": [
      -1,
      -1,-1,-1,-1,-1,-1,
      0,0,0,0,0,0
    ],
    "api_maxhps_combined": [
      -1,
      -1,-1,-1,-1,-1,-1,
      57,76,76,38,35,35
    ],
    "api_eSlot": [
      [547,548,549,532,-1],
      [556,557,558,558,-1],
      [556,557,558,558,-1],
      [550,550,545,525,-1],
      [502,515,542,-1,-1],
      [502,515,542,-1,-1]
    ],
    "api_eSlot_combined": [
      [506,525,542,543,-1],
      [505,506,515,525,-1],
      [505,506,515,525,-1],
      [502,515,542,-1,-1],
      [502,545,542,-1,-1],
      [502,545,542,-1,-1]
    ],
    "api_fParam": [
      [115,0,120,107],
      [77,83,83,79],
      [70,0,88,83],
      [65,0,90,84],
      [63,139,49,63],
      [58,56,114,52]
    ],
    "api_eParam": [
      [180,0,130,150],
      [25,0,50,80],
      [25,0,50,80],
      [64,92,96,68],
      [44,72,36,29],
      [44,72,36,29]
    ],
    "api_eParam_combined": [
      [48,80,30,39],
      [68,48,40,70],
      [68,48,40,70],
      [44,72,36,29],
      [38,60,30,22],
      [38,60,30,22]
    ],
    "api_touch_plane": [102,-1],
    "api_flare_pos": [-1,-1],
    "api_hougeki": {
      "api_at_list": [-1,1,2,9,5,6],
      "api_df_list": [-1,[10,10],[7,7],[1],[7,7],[9,9]],
      "api_si_list": [-1,[161,114],[50,90],[-1],[50,90],[122,122]],
      "api_cl_list": [-1,[1,1],[1,1],[0],[1,1],[2,1]],
      "api_sp_list": [-1,1,1,0,1,1],
      "api_damage": [-1,[101,93],[4,8],[0],[78,0],[56,29]]
    }
  }
}
6-5-13(boss)
触接中: 九八式水上偵察機(夜偵)
緒戦被害:f_damage:13/306(4%)[0/6]387, e_damage:866/1001(86%)[9/12], api:/api_req_combined_battle/ec_battle, rate:21.5, 推定:A
戦闘被害:f_damage:13/306(4%)[0/6]387, e_damage:1001/1001(100%)[x12/12], api:/api_req_combined_battle/ec_midnight_battle, rate:25
勝敗推定:S
戦闘詳報  -
種別  攻撃艦 防御艦 敵撃墜/戦果  被撃墜/ダメージ    使用装備
触接(夜戦)                  九八式水上偵察機(夜偵)
連撃  (艦隊2)能代Lv27 (敵4)軽巡ツ級eliteLv1    hit 101:撃沈---   16inch三連装砲 Mk.7, 38cm連装砲改
連撃  (艦隊2)能代Lv27 (敵4)軽巡ツ級eliteLv1    hit 93:撃沈---    16inch三連装砲 Mk.7, 38cm連装砲改
連撃  (艦隊2)浦波改Lv54    (敵1)空母棲姫Lv1 hit 4:大破!!! 20.3cm(3号)連装砲, 20.3cm(2号)連装砲
連撃  (艦隊2)浦波改Lv54    (敵1)空母棲姫Lv1 hit 8:大破!!! 20.3cm(3号)連装砲, 20.3cm(2号)連装砲
砲撃戦 (敵3)空母ヲ級flagshipLv1 (艦隊2)能代Lv27 miss
連撃  (艦隊2)Z3 zweiLv89    (敵1)空母棲姫Lv1 hit 78:撃沈---    20.3cm(3号)連装砲, 20.3cm(2号)連装砲
連撃  (艦隊2)Z3 zweiLv89    (敵1)空母棲姫Lv1 hit     20.3cm(3号)連装砲, 20.3cm(2号)連装砲
連撃  (艦隊2)伊168改Lv97  (敵3)空母ヲ級flagshipLv1 critical    56:大破!!!    10cm連装高角砲+高射装置, 10cm連装高角砲+高射装置
連撃  (艦隊2)伊168改Lv97  (敵3)空母ヲ級flagshipLv1 hit 29:撃沈---    10cm連装高角砲+高射装置, 10cm連装高角砲+高射装置
friend damage
第1艦隊
1(Iowa改Lv99).   66/92:小破
2(筑摩改二Lv99).    51/58:.
3(翔鶴改二甲Lv99+修理要員x1).    61/78:..
4(瑞鶴改二甲Lv99).   69/79:.
5(大井改二Lv99).    32/43:小破
6(照月改Lv93). 14/37:中破
第2艦隊
被撃墜数: 0
enemy damage
1(空母棲姫Lv1). 0/350(-90):撃沈---    +
2(空母ヲ級flagshipLv1). 0/96:撃沈---  +
3(空母ヲ級flagshipLv1). 0/96(-85):撃沈--- +
4(軽巡ツ級eliteLv1).    0/66(-194):撃沈---    +
5(駆逐ハ級後期型Lv1).  0/38:撃沈---  +
6(駆逐ハ級後期型Lv1).  0/38:撃沈---  +
7(軽巡ヘ級flagshipLv1). 0/57:撃沈---  +
8(重巡リ級flagshipLv1). 0/76:撃沈---  +
9(重巡リ級flagshipLv1). 0/76:撃沈---  +
10(駆逐ハ級後期型Lv1). 0/38:撃沈---  +
11(駆逐イ級後期型Lv1). 0/35:撃沈---  +
12(駆逐イ級後期型Lv1). 0/35:撃沈---  +
hkuno9000 commented 7 years ago

@t-f-m 敵連合艦隊について修正して v1.5.6 をリリースしました。 夜戦も支援艦隊も、このバージョンで問題解消したつもりです。お試しください。

戦闘APIのjsonを、戦闘画面先頭の日付時刻のサブメニューに入れたので 今後は、メニューを開いた状態で画面を全選択してコピーし、それをIssueに貼り付けてください。

hkuno9000 commented 7 years ago

@t-f-m いろいろ修正して v1.5.8 リリースしました。

10月に貼っていただいた 夜戦JSONにて "api_deck_id": 0, というデータがありますが、 艦隊番号の有効範囲は 1...4 なので、これはおかしいです。 "api_deck_id": 0, では、艦隊番号から艦名を引き出す箇所や、司令部撤退判断する箇所で、YPSがエラーになります。

12月に貼っていただいた 夜戦JSON では "api_deck_id": 1, となっています。 こちらは v1.5.8 のデバッグモードで正常処理を確認したので、本件は一旦クローズします。 "api_deck_id": 0 のケースが再発したら、再開してください。