Repository navigation
Releases
v0.2.0 — 全局+角色两层黑名单 + OLC RitsuLib 集成
MerchantBlacklist v0.2.0
升级为「全局 + 角色」两层黑名单
- BlacklistStore schema v3:全局层 + 5 角色独立层(铁甲战士 / 静默猎手 / 故障核心 / 亡灵契约师 / 储君)
- 过滤逻辑 = 全局列表 ∪ 当前角色列表
- 自动检测当前游戏内角色(反射
RunManager → LocalContext.GetMe → Player.Character.Id) - 旧 v1 / v2 存档自动迁移到全局层,无需手动处理
- 面板加入分类切换下拉,可单独编辑全局/任意角色
修复
TryRerollRelic消耗 grab bag 的 bug 已修- 客机解封后无网络消息泄漏
OLC 合并贡献
- Merge PR #1 from @BAKAOLC:RitsuLib
ModSettingsInterop集成 - 装 RitsuLib 但不装 ModConfig 时不再反射失败
- 新增
MerchantBlacklistRitsuSettingsProvider.cs(快捷键 / 修饰键可在 RitsuLib 面板调)
MerchantBlacklist v0.2.0
Two-layer (global + per-character) blacklist.
- Schema v3 store: global layer + 5 character-specific layers (Ironclad / Silent / Defect / Necrobinder / Regent)
- Filter = global ∪ current character
- Auto-detects current character via reflection
- v1/v2 saves auto-migrate to global layer
- Panel exposes a category dropdown
- Fixes grab bag consumption bug in
TryRerollRelic - Merged PR #1 from @BAKAOLC: RitsuLib
ModSettingsInteropintegration
v0.1.2 — 客机解封 / Client peers re-enabled
MerchantBlacklist v0.1.2
Compatible with STS2 0.107 · 适配 STS2 0.107
中文
撤回 v0.1.1 客机限制。联机客机也能正常使用。
为什么撤回
v0.1.1 给客机加了"完全禁用过滤 + 红字 banner"的限制,是基于「主机持有商店权威库存、客机本地裁剪会和主机对不上」的判断。后来通过反编译验证这个判断是错的:
- STS2 0.107 的
MerchantInventory在每个 peer 用Player.PlayerRng.Shops同种子各自本地 roll,不存在主机权威同步(Sync/目录下没有任何MerchantInventory同步消息) - 购买消息走
RewardObtainedMessage(完整 model)+GoldLostMessage(int 金额),不携带 inventory 索引,主机不查任何本地 inventory - 客机本地点哪个 entry 就发哪个 model,"看见≠拿到"在网络层不可能发生
之前以为是黑名单触发的 "扣钱不到货" 实际上是 RefreshShop 重建商店时让 vanilla NMerchantSlot.GoldChanged 订阅泄漏导致 ObjectDisposedException(MegaLabel) → 已在 RefreshShop v0.1.2 修复。
改动
MerchantInventoryCreatePatch:删客机门卫ShopRightClickBanPatch:删客机门卫(Shift 修饰键保留)BlacklistPanel:删红字 banner- 删
Core/MultiplayerSession.cs(不再使用)
English
Reverts the v0.1.1 client peer restriction. Multiplayer client peers can now use this mod normally.
The earlier restriction was based on a false assumption that hosts hold the authoritative shop inventory. Verified by decompile: STS2 0.107 rolls MerchantInventory locally on each peer with a shared RNG seed, and purchase messages carry the full model (SerializableRelic / PotionModel.Id) instead of an inventory index. Local view filtering on a client peer cannot desync from the host.
The "gold deducted, no relic granted" symptom was actually triggered by RefreshShop's rebuild path leaking a vanilla NMerchantSlot.GoldChanged subscription, fixed in RefreshShop v0.1.2 — not a MerchantBlacklist concern.
安装 / Install
把 MerchantBlacklist_v0.1.2.zip 解压到:
<Steam>/steamapps/common/Slay the Spire 2/mods/MerchantBlacklist/
v0.1.1 — 联机客机安全 / Multiplayer client safety
MerchantBlacklist v0.1.1
Compatible with STS2 0.107 · 适配 STS2 0.107
English
Bug fix release.
- Multiplayer client safety: filter is no longer applied on client
peers. Previously, the local list was trimmed but the host kept the
full inventory, causing "see ≠ buy" on the client. Now only host /
singleplayer apply the blacklist; client peers see the host's
authoritative inventory unchanged. A red banner in the panel makes
this explicit. - Right-click ban modifier: shop right-click ban now requires a
modifier key by default (Shift), configurable via ModConfig
dropdown (None / Shift / Ctrl / Alt). Prevents accidental bans
while browsing.
简体中文
修复版本。
- 联机客机安全:客机模式下不再应用本地过滤。之前客机本地裁掉了几项,但主机
权威库存没动,导致"看到的≠拿到的"。现在只有主机/单机会过滤,客机原样显示主机
库存。面板顶部加红字 banner 明示。 - 右键拉黑修饰键:商店内右键拉黑默认要求按住
Shift,可在 ModConfig 下拉里
改为None / Shift / Ctrl / Alt,避免误 ban。
Install / 安装
把 MerchantBlacklist_v0.1.1.zip 解压到:
<Steam>/steamapps/common/Slay the Spire 2/mods/MerchantBlacklist/
v0.1.0 — STS2 0.107 适配 / Compatible with STS2 0.107
MerchantBlacklist v0.1.0
Compatible with Slay the Spire 2 0.107 · 适配 STS2 0.107
English
First public release. Local-only merchant inventory blacklist for relics & potions.
- Pause-menu entry "Shop Blacklist" (cloned from native Settings button).
- Native compendium-style panel with hover tooltips, per-rarity Allow all / Ban all.
- Right-click in shop bans a relic/potion instantly.
- Default hotkey
F10, rebindable via ModConfig, integrated with STS2-RitsuLib's hotkey router. - UI follows the client language (English / 简体中文 / 繁體中文).
- Multiplayer-safe: filters local view only, no network messages.
简体中文
首个公开版本。仅在本机商店生成时过滤被拉黑的遗物 / 药水(普通商人 + 先古商人)。
- 暂停菜单注入「商店黑名单」按钮(克隆自原生「设置」按钮)。
- 原生百科风面板,hover tooltip 与原版一致;每个稀有度组提供「全启用 / 全 ban」。
- 商人界面右键直接拉黑当前商品。
- 默认热键
F10,可通过 ModConfig 改键,并接入 STS2-RitsuLib 的热键路由器。 - 跟随客户端语言显示中 / 英文。
- 联机安全:仅本地视图过滤,不发任何网络消息。
Dependencies / 依赖
- STS2-RitsuLib(与游戏版本匹配的 variant-pack 版本)
- ModConfig v0.2.3(可选,用于改键)
Install / 安装
把 MerchantBlacklist_v0.1.0.zip 解压到:
<Steam>/steamapps/common/Slay the Spire 2/mods/MerchantBlacklist/
目录下应直接包含 MerchantBlacklist.dll 与 mod_manifest.json。