XVs32 / kcauto_custom

kcauto_custom, the successor to kcauto, a Kantai Collection (Kancolle) bot / automation tool
https://xvs32.github.io/kcauto_custom/
GNU General Public License v3.0
8 stars 2 forks source link

Record the equipment of every ship #85

Closed XVs32 closed 9 months ago

XVs32 commented 9 months ago

What

How

Result

Reference

XVs32 commented 9 months ago

The info in ship module is more like stable info (ex. id, max_hp, max ammo, max fuel)

For the equipment, I would want to setup a new equipment module since it is more dynamic, and it does not have to be bind in ship module

XVs32 commented 9 months ago

Getting the equipment id on each ship is easy, those data are there in port api already, all I have to do is using it

XVs32 commented 9 months ago

I might not open a new folder for equipment, the equipment module can stay under ship folder (but not inside ship module)

XVs32 commented 9 months ago

Next I will have to find the pure equipment list, and the order of the equipment in the list

equipment list could be found in require_info/api_slot_item Two issues here:

  1. This does not provide the order of equipment in equipment list
  2. This api only get sent on start up (from splash screen)
XVs32 commented 9 months ago
  1. This does not provide the order of equipment in equipment list

The equipment list contains

With this two, I could get the order of equipment list under "全裝備" category

  1. This api only get sent on start up (from splash screen)

For Fleet reset, this is not deadly, but for future functions, I will have to track & maintain the equipment list on fly.....(Oh nooooo.....) <= gotta find a workaround

There is a api_get_member/ship3/api_slot_data gets trigger when equipment is load/unload to a ship, the good things are:

XVs32 commented 9 months ago

Final decision:

This is #87 's problem though, well, whatever

XVs32 commented 9 months ago

Done, after port api is updated, equipment on ship will be recorded in equipment["loaded"]