Closed XVs32 closed 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
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
I might not open a new folder for equipment, the equipment module can stay under ship folder (but not inside ship module)
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:
- 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
- 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:
Final decision:
port
api to find the equipment currently loaded on a shipapi_get_member/ship3/api_slot_data
to find equipment currently unuseThis is #87 's problem though, well, whatever
Done, after port
api is updated, equipment on ship will be recorded in equipment["loaded"]
What
How
Result
Reference