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 -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("鉴定显卡(测试)", () =>
{