From 00a000e3f9acf6aacfcb61749ac2eae585463b3d Mon Sep 17 00:00:00 2001 From: ZHU MINCHAO <48154958+MinchaoZhu@users.noreply.github.com> Date: Wed, 4 Nov 2026 23:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=201.0.0-rc4=EF=BC=9AWeb3=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E6=94=BE=E8=BF=9B=E5=9F=BA=E7=A1=80=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ README.md | 2 +- src/Decentralized/Core.cs | 2 +- src/Decentralized/ModFiles/manifest.xml | 2 +- src/Decentralized/Unlock.cs | 11 ++++------- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c11ab7c..0d75496 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.0-rc4 + +- 人脉网络里 Web3 的三个升级(入口、混币器、黑市)从单独的 WEB3 标签挪进“基础”页,自成一栏(栏名 Web3),像水商升级那样连成一条。 + ## 1.0.0-rc3 - 去掉反射:游戏的模组扫描把运行时反射算作未声明的权限,rc1 因此被拒绝启用。两处都改掉:电子元件升级矿架时,原版元件工厂改用游戏公开的 `DirectoryMaster.GetFactory` 取得;手册占位符取值(`TuningText`)从反射改成生成的查表(`TuningTable.cs`,单元测试核对它和 `Tuning` 一致)。清单不声明任何能力,扫描结果为无。升级流程重新走通:普通 ×4 解锁第 3 槽,稀有 ×1 第 4 槽,稀有 ×2 第 5 槽。 diff --git a/README.md b/README.md index c97accb..6807dc1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Probably Decentralized -A mod for *Probably Stolen*: crypto mining, a fictional coin market, stablecoins, laundering and its risks, a Web3 black market, built on the game's own power, events and law systems. Current version: 1.0.0-rc3 (release candidate). +A mod for *Probably Stolen*: crypto mining, a fictional coin market, stablecoins, laundering and its risks, a Web3 black market, built on the game's own power, events and law systems. Current version: 1.0.0-rc4 (release candidate). All coins, exchanges and events are fictional and have no real-world value. diff --git a/src/Decentralized/Core.cs b/src/Decentralized/Core.cs index 807a9fa..057f1a2 100644 --- a/src/Decentralized/Core.cs +++ b/src/Decentralized/Core.cs @@ -7,7 +7,7 @@ namespace Decentralized { public const string Id = "probably_decentralized"; public const string Name = "Probably Decentralized"; - public const string Version = "1.0.0-rc3"; + public const string Version = "1.0.0-rc4"; } /// 本地化:游戏的 mod 本地化表(ModFiles/Localization/*.csv),当前语言缺失时回退英文。 diff --git a/src/Decentralized/ModFiles/manifest.xml b/src/Decentralized/ModFiles/manifest.xml index 8bb6206..a71e857 100644 --- a/src/Decentralized/ModFiles/manifest.xml +++ b/src/Decentralized/ModFiles/manifest.xml @@ -3,7 +3,7 @@ probably_decentralized Probably Decentralized edward - 1.0.0-rc3 + 1.0.0-rc4 Mine PSC with graphics cards, trade it on a fictional exchange, and cash it out past the compliance desk. Work in progress. All coins, exchanges and events are fictional and have no real-world value. 0.46 diff --git a/src/Decentralized/Unlock.cs b/src/Decentralized/Unlock.cs index f87a138..6a7dfbf 100644 --- a/src/Decentralized/Unlock.cs +++ b/src/Decentralized/Unlock.cs @@ -7,9 +7,8 @@ namespace Decentralized { public const string Id = "PD_WEB3_COMMUNITY"; public const int Price = Domain.Tuning.UnlockPrice; - private const string Card = "Service"; - /// 人脉网络里本 mod 自己的一页:入口、混币器等 Web3 相关升级都放在这里。 - public const string Tab = "PD_WEB3"; + /// 人脉网络"基础"页里本 mod 自己的一栏(像水商升级那样成组):入口、混币器等 Web3 相关升级都放在这里。栏按这个键分组,显示的名称走回调。 + public const string Card = "PD_WEB3"; public const string MixerId = "PD_MIXER"; public const int MixerPrice = Domain.Tuning.MixerUnlockPrice; @@ -22,9 +21,7 @@ namespace Decentralized public static void Register() { - // 分类用游戏自己的 "Service" 键,和 Probably Automated 一样归进现有的"服务"栏; - // 标题和说明用回调:OnEnable 时 mod 本地化表还没加载 - ModHelper.SetNetworkTabLabel(Tab, () => L.T("upgrade.tab")); + // 升级放在默认的"基础"页,自成一栏;标题、说明和栏名都用回调:OnEnable 时 mod 本地化表还没加载 // 登记定义后游戏会访问 PlayerStore.Instance,主菜单阶段为空会抛异常;定义已登记,读档时游戏会把升级补进这一局。 // 每个升级单独 try,免得前一个抛异常时后面的没登记上。 Add(Id, Price, () => L.T("upgrade.title"), () => L.T("upgrade.desc"), OnPurchased, "terminal", null); @@ -34,7 +31,7 @@ namespace Decentralized private static void Add(string id, int price, Func title, Func desc, Action onUnlock, string icon, string[] prerequisites) { - try { ModHelper.AddNetworkUpgrade(ModInfo.Id, id, price, Card, title, desc, onUnlock, tab: Tab, iconKey: ModInfo.Id + ":" + icon, prerequisites: prerequisites); } + try { ModHelper.AddNetworkUpgrade(ModInfo.Id, id, price, Card, title, desc, onUnlock, iconKey: ModInfo.Id + ":" + icon, prerequisites: prerequisites, subtitleLabel: () => L.T("upgrade.tab")); } catch (NullReferenceException) { Log.Info($"人脉升级 {id} 已登记(主菜单阶段访问 PlayerStore 失败,已忽略)"); } }