hkuno9000 / KanColle-YPS

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

2022-1-21メンテにて、装備運用枠上限から女神やダメコンが除外されたことに対応する #176

Closed hkuno9000 closed 2 years ago

hkuno9000 commented 2 years ago

装備運用枠上限の満杯判定から、下記装備の数を除外する。

https://twitter.com/KanColle_STAFF/status/1484487043409317891 ●応急修理要員 ●応急修理女神 を【装備運用枠】から分離して、それぞれの上限枠の中で運用可能となります。

https://twitter.com/KanColle_STAFF/status/1484487083863404544 ●戦闘糧食 ●戦闘糧食(特別なおにぎり) ●秋刀魚の缶詰 ●洋上補給
も【装備運用枠】から分離して、それぞれの上限枠の中で運用可能となります。

t-f-m commented 2 years ago

現在の api_start2/getData の返り値です。

https://gist.github.com/t-f-m/06824ffb0c8ad4f02cb28e5343df7fab ※ 長すぎると怒られたので gist で代用

ざっと見たところ、ダメコン系・戦闘糧食系・洋上補給のいずれの装備データにも装備運用枠から除外されたことを示すようなフラグはないようです。

hkuno9000 commented 2 years ago

装備カテゴリ( type[2] ) の値が 23, 43, 44 のアイテムを、カウント除外すれば良い気がする。

YPS が起動時に debug_print_mst_slotitem() で表示している $mst_slotitem のダンプ内容

id name type0 type1 type2 type3
42 応急修理要員 6 30 23 14
43 応急修理女神 6 30 23 14
145 戦闘糧食 18 34 43 34
241 戦闘糧食(特別なおにぎり) 18 34 43 34
150 秋刀魚の缶詰 18 34 43 34
146 洋上補給 19 35 44 35

api_mst_slotitem_equiptype の内容

api_id = 装備カテゴリ値

[
    {
        "api_id": 1,
        "api_name": "小口径主砲",
        "api_show_flg": 1
    },
    {
        "api_id": 2,
        "api_name": "中口径主砲",
        "api_show_flg": 1
    },
    {
        "api_id": 3,
        "api_name": "大口径主砲",
        "api_show_flg": 1
    },
    {
        "api_id": 4,
        "api_name": "副砲",
        "api_show_flg": 1
    },
    {
        "api_id": 5,
        "api_name": "魚雷",
        "api_show_flg": 1
    },
〜〜〜
    {
        "api_id": 23,
        "api_name": "応急修理要員",
        "api_show_flg": 1
    },
    {
        "api_id": 24,
        "api_name": "上陸用舟艇",
        "api_show_flg": 1
    },
〜〜〜
    {
        "api_id": 43,
        "api_name": "戦闘糧食",
        "api_show_flg": 0
    },
    {
        "api_id": 44,
        "api_name": "補給物資",
        "api_show_flg": 0
    },
]
hkuno9000 commented 2 years ago

@t-f-m start2 の内容参照は下記URLが便利です。 https://github.com/Tibowl/api_start2/blob/master/parsed/