perryhuynh / kcauto

kcauto, the successor to kancolle-auto, a Kantai Collection (Kancolle) bot/automation tool
GNU General Public License v3.0
68 stars 22 forks source link

Leverage WCTF Data in Ship Switcher #430

Open perryhuynh opened 4 years ago

perryhuynh commented 4 years ago

Currently, finding ship ids to select for ship switcher is somewhat of a pain. Since we already have the WCTF data, it might be a good idea to use it for some sort of filterable list the user can search through to select ships for ship switcher as well.

Relevant JSON Snippet:

{
  "id": 576,
  "no": 376,
  "name": {
    "ja_jp": "Nelson",
    "ja_kana": "ネルソン",
    "ja_romaji": "",
    "zh_cn": "纳尔逊",
    "en_us": "",
    "suffix": 1
  }
}

The ID used by ship switcher is the no key

mrmin123 commented 4 years ago

Please expand on this request. The ship switcher already uses the sortno ID for matching.

waicool20 commented 4 years ago

The KC3 panel shows the id and the script uses sortno which corresponds to no in the json above. So people have to refer to the mapping each time