Skip to content

Add: [CN] core monthly shop supply items filter (torpedo / AP shell / heavy shell) - #5837

Merged
LmeSzinc merged 1 commit into
LmeSzinc:devfrom
wanwan-doudou:feature/core-shop-ammo-filter
Jul 24, 2026
Merged

Add: [CN] core monthly shop supply items filter (torpedo / AP shell / heavy shell)#5837
LmeSzinc merged 1 commit into
LmeSzinc:devfrom
wanwan-doudou:feature/core-shop-ammo-filter

Conversation

@wanwan-doudou

@wanwan-doudou wanwan-doudou commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the request in #5835 — support buying the core monthly shop (核心月度商店) supply items that currently have no template / filter support:

Filter token In-game item (CN)
Type93PureOxygenTorpedo 九三式纯氧鱼雷 (彩雷)
Type1ArmorPiercingShell 一式穿甲弹 (白弹)
SuperHeavyShell 超重弹 (黑弹)

Changes

  • Add 3 item templates (96×96) to assets/shop/core/, cropped from a 1280×720 CN client frame using the existing CoreShop_250814.shop_grid geometry (origin=(265, 238), delta=(169, 223), button_shape=(64, 64)), so they match the runtime crop exactly.
  • Add type93pureoxygentorpedo|type1armorpiercingshell|superheavyshell to FILTER_REGEX in module/shop/base.py so these items parse into a filter group and can be recognized / selected.

Usage

Add any of Type93PureOxygenTorpedo / Type1ArmorPiercingShell / SuperHeavyShell to the Core Shop filter (> sets priority), e.g. Type93PureOxygenTorpedo > SuperHeavyShell > Type1ArmorPiercingShell.

Testing

Verified against a live CN core monthly shop screenshot using the actual shop detection code:

  • The 3 templates are recognized with the correct names.
  • FILTER_REGEX parses each token to its group.
  • Filter selection returns the expected items in priority order.

The buy flow itself is unchanged (reuses the existing path already used by Array / Chip).

@LmeSzinc

Copy link
Copy Markdown
Owner

使用游戏内物品名称,不要自定义缩写

@LmeSzinc LmeSzinc added the feature request / 功能请求 New feature or requests label Jul 23, 2026
Add item templates (Type93PureOxygenTorpedo / Type1ArmorPiercingShell / SuperHeavyShell) and FILTER_REGEX tokens for the core monthly shop, so they can be recognized and selected via the CoreShop filter.

Ref LmeSzinc#5835
@wanwan-doudou
wanwan-doudou force-pushed the feature/core-shop-ammo-filter branch from d974c50 to dd15d7d Compare July 24, 2026 01:22
@wanwan-doudou

Copy link
Copy Markdown
Contributor Author

感谢 review!已按照游戏内物品名称修改,去掉了自定义缩写:

  • 九三式纯氧鱼雷 → Type93PureOxygenTorpedo
  • 一式穿甲弹 → Type1ArmorPiercingShell
  • 超重弹 → SuperHeavyShell

模板文件名与 FILTER_REGEX 的 token 已同步更新,麻烦再看下。

@LmeSzinc
LmeSzinc merged commit e284170 into LmeSzinc:dev Jul 24, 2026
@wanwan-doudou
wanwan-doudou deleted the feature/core-shop-ammo-filter branch July 25, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request / 功能请求 New feature or requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants