检视面板显示标签价;鉴定指南五个示例;展示样例排队按钮
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
55e7640390
commit
a8d7bc3427
13 files changed
+182
-23
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Decentralized.Domain;
|
||||
|
||||
@@ -35,6 +36,8 @@ namespace Decentralized
|
||||
};
|
||||
|
||||
private static int _next;
|
||||
/// <summary>设了之后,贩子和鉴定客户上货时只拿这一件。</summary>
|
||||
public static Func<GameItem> Override;
|
||||
private static GameItem _last;
|
||||
|
||||
private static void Place(GameItem item)
|
||||
@@ -59,6 +62,23 @@ namespace Decentralized
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Showcase: queue dealer case (test)", () => Log.Guard("展示样例(贩子,排队)", () =>
|
||||
{
|
||||
var c = All[_next++ % All.Count];
|
||||
Override = () => Make(c, DealerKind.Middleman);
|
||||
PlayerStore.Instance.storeClientManager.AddNextClient(UsedDealerClient.Create(DealerKind.Middleman, 40));
|
||||
PlayerStore.Instance.TryCallNextClient();
|
||||
Log.Info($"展示样例(贩子,排队){_next}/{All.Count}:{c.Name}");
|
||||
}));
|
||||
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Showcase: queue appraisal case (test)", () => Log.Guard("展示样例(鉴定,排队)", () =>
|
||||
{
|
||||
var c = All[_next++ % All.Count];
|
||||
while (AppraisalRankHelper.GetRank() < 2) AppraisalRankHelper.Promote();
|
||||
Override = () => { var it = Make(c, DealerKind.Honest); AppraisalHelper.InitAppraisalItem(it, (int)it.unitValue); return it; };
|
||||
PlayerStore.Instance.storeClientManager.AddNextClient(StoreClientListAppraisal.CreateAppraisalRandom());
|
||||
PlayerStore.Instance.TryCallNextClient();
|
||||
Log.Info($"展示样例(鉴定,排队){_next}/{All.Count}:{c.Name}");
|
||||
}));
|
||||
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Showcase: next dealer case (test)", () => Log.Guard("展示样例(贩子)", () =>
|
||||
{
|
||||
var c = All[_next++ % All.Count];
|
||||
|
||||
Reference in new issue
Block a user