hkuno9000 / KanColle-YPS

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

艦娘解体後艦隊表示修正 #122

Closed skywalker999u closed 6 years ago

skywalker999u commented 6 years ago

艦隊最後列以外の艦娘を解体した後、その艦娘以降の艦娘は即時(/api_port/port の update_fdeck_list()まで)反映できなくなります。 解体する時$ship_fdeckから解体された艦娘を除去し、 push_fleet_status()時修正した$ship_fdeckを使って、艦隊を即時反映できるようにしました。

hkuno9000 commented 6 years ago

@skywalker999u I fix this problem by another way; f0d02e0. please check it.

skywalker999u commented 6 years ago

however, in the new method, push_fleet_status() only omits showing the deleted ship let $ship_fdeck == [a,b,c,d,e,f] if ship_delete() on ship e, ($ship_fdeck == [a,b,c,d,null,f], push_fleet_status() shows [a,b,c,d,f] then /api_req_hensei/change on ship f with ship g ($ship_fdeck == [a,b,c,d,null,g], push_fleet_status() shows [a,b,c,d,g] which $ship_fdeck == [a,b,c,d,f,g] is expected but not met

hkuno9000 commented 6 years ago

I see, I will try again.

hkuno9000 commented 6 years ago

@skywalker999u I have pushed this on master