feat(plugins): 迁移非 1.13c 原版「地图全开 (Automap Reveal)」至 plugins/automap-reveal #714
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
Diablo II v1.13c 原版仅随角色探索揭示自动地图(Automap)。当前仓库中的
automapReveal(off | level | act地图全开增强)属于非 1.13c 原版的客户端增强功能。当前核心代码位置
src/client/settings/client-settings.ts:AutomapRevealMode(off | level | act)src/client/toolbar/toolbar.ts:工具栏#d2-toolbar-automap-select下拉框src/client/automap/automap-view.ts:setMode(mode)src/client/main.ts/src/client/session/online-session.ts:状态同步与关卡切换处理迁移目标
plugins/插件框架与PluginHost落地后,将地图全开增强拆分为独立插件plugins/automap-reveal/。off);启用后可在插件配置菜单或工具栏贡献区切换off | level | act。验收标准
plugins/automap-reveal/index.ts实现D2WebPlugin契约并通过tests/arch/boundaries.test.ts插件边界检查off原版迷雾行为npm run typecheck与npx vitest run100% 通过Fixed in commit
fdde06b(origin/main): migrated the non-1.13c Automap Reveal (off | level | act) feature out of coresrc/client/toolbar/toolbar.tsintoplugins/automap-reveal/index.ts. Whenautomap-revealis disabled,PluginHostreleases the capability claim and strictly enforces 1.13c server-driven fog-of-war (automapReveal = "off") while removing#d2-toolbar-automap-selectfrom the toolbar.