Entry upgrade goes under the game's Service group

Uses the game's own "Service" card key like Probably Automated instead of
a custom group label, and the terminal as its icon.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-03 09:53:13 +08:00
1 parent 19d728a079
commit 1841338fbb
4 files changed
+6 -5

No files matched your search

@@ -1,7 +1,6 @@
# Probably Decentralized localization table: English (en)
# Source language and fallback. Format: key,text (text may be quoted; \n is a line break).
upgrade.title,Web3 Governance Community
upgrade.card,Web3
upgrade.desc,Members receive a trading terminal and an RZX 50 graphics card. The terminal holds the wallet and trades on the Poinbase exchange. Mining rigs and further cards are sold by Dr. Jackson.
item.terminal.name,Trading Terminal
item.terminal.desc,Wallet, the Poinbase exchange and the nightly mining report.
1 # Probably Decentralized localization table: English (en)
2 # Source language and fallback. Format: key
3 upgrade.title
upgrade.card
4 upgrade.desc
5 item.terminal.name
6 item.terminal.desc
@@ -1,6 +1,5 @@
# Probably Decentralized 本地化表:简体中文(zh)
upgrade.title,Web3 治理社区
upgrade.card,Web3
upgrade.desc,成员可获得一台交易终端和一张 RZX 50 显卡。终端用于查看钱包,并在 Poinbase 交易所交易。矿架和更多显卡由杰克逊博士出售。
item.terminal.name,交易终端
item.terminal.desc,钱包、Poinbase 交易所与夜间挖矿报告。
1 # Probably Decentralized 本地化表:简体中文(zh)
2 upgrade.title,Web3 治理社区
upgrade.card,Web3
3 upgrade.desc,成员可获得一台交易终端和一张 RZX 50 显卡。终端用于查看钱包,并在 Poinbase 交易所交易。矿架和更多显卡由杰克逊博士出售。
4 item.terminal.name,交易终端
5 item.terminal.desc,钱包、Poinbase 交易所与夜间挖矿报告。
+5 -3
View File
@@ -7,6 +7,7 @@ namespace Decentralized
{
public const string Id = "PD_WEB3_COMMUNITY";
public const int Price = 300;
private const string Card = "Service";
public static bool IsUnlocked => PlayerStore.Instance != null && ModHelper.IsNetworkUpgradeUnlocked(Id);
@@ -14,10 +15,11 @@ namespace Decentralized
{
try
{
// 文字都用回调:OnEnable 时 mod 本地化表还没加载
ModHelper.AddNetworkUpgrade(ModInfo.Id, Id, Price, "",
// 分类用游戏自己的 "Service" 键,和 Probably Automated 一样归进现有的"服务"栏;
// 标题和说明用回调:OnEnable 时 mod 本地化表还没加载
ModHelper.AddNetworkUpgrade(ModInfo.Id, Id, Price, Card,
() => L.T("upgrade.title"), () => L.T("upgrade.desc"), OnPurchased,
iconKey: ModInfo.Id + ":rig", subtitleLabel: () => L.T("upgrade.card"));
iconKey: ModInfo.Id + ":terminal");
}
catch (NullReferenceException)
{