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:
1 parent
19d728a079
commit
1841338fbb
4 files changed
+6
-5
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user