Appraisal test helpers: put a client with appraisal cards in front of the counter

This commit is contained in:
ZHU MINCHAO committed 2026-11-03 13:20:11 +08:00
1 parent 2be4c90c8e
commit 821eb1b960
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -35,6 +35,9 @@ namespace Decentralized
if (depth < 5) foreach (Transform c in t) Walk(c, depth + 1);
}
var m = InspectionUIManager.Instance;
var ci = PlayerStore.Instance.currentClientInstance;
sb.AppendLine("当前顾客:" + (ci == null ? "无" : ci.GetClientBlueprint().identifier + " 意图 " + ci.GetClientBlueprint().clientIntent));
sb.AppendLine("检视物品:" + (m.currentInspectingItem?.identifier ?? "无") + " APPRAISAL=" + (m.currentInspectingItem?.IsTag("APPRAISAL_ITEM") ?? false));
Walk(m.panel.transform, 0);
Log.Info(sb.ToString());
}));
+3 -1
View File
@@ -25,7 +25,9 @@ namespace Decentralized
while (AppraisalRankHelper.GetRank() < 2) AppraisalRankHelper.Promote();
var pool = AppraisalItemRegistry.GetPool(AppraisalRankHelper.GetRank());
Log.Info($"鉴定等级 {AppraisalRankHelper.GetRank()},可抽的物品:{string.Join(", ", pool.ConvertAll(t => t.id))}");
PlayerStore.Instance.storeClientManager.AddNextClient(StoreClientListAppraisal.CreateAppraisalRandom());
var client = StoreClientListAppraisal.CreateAppraisalRandom();
PlayerStore.Instance.currentClientInstance = StoreClientInstance.CreateClientInstance(client); // 测试:直接换成鉴定客户
for (int i = 0; i < 3; i++) PlayerStore.Instance.AddDirectSellingItemToTable(CreateForAppraisal());
}));
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Appraisal cards to counter (test)", () => Log.Guard("鉴定显卡(测试)", () =>
{