Appraisal test helpers: put a client with appraisal cards in front of the counter
This commit is contained in:
1 parent
2be4c90c8e
commit
821eb1b960
2 files changed
+6
-1
No files matched your search
@@ -35,6 +35,9 @@ namespace Decentralized
|
|||||||
if (depth < 5) foreach (Transform c in t) Walk(c, depth + 1);
|
if (depth < 5) foreach (Transform c in t) Walk(c, depth + 1);
|
||||||
}
|
}
|
||||||
var m = InspectionUIManager.Instance;
|
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);
|
Walk(m.panel.transform, 0);
|
||||||
Log.Info(sb.ToString());
|
Log.Info(sb.ToString());
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ namespace Decentralized
|
|||||||
while (AppraisalRankHelper.GetRank() < 2) AppraisalRankHelper.Promote();
|
while (AppraisalRankHelper.GetRank() < 2) AppraisalRankHelper.Promote();
|
||||||
var pool = AppraisalItemRegistry.GetPool(AppraisalRankHelper.GetRank());
|
var pool = AppraisalItemRegistry.GetPool(AppraisalRankHelper.GetRank());
|
||||||
Log.Info($"鉴定等级 {AppraisalRankHelper.GetRank()},可抽的物品:{string.Join(", ", pool.ConvertAll(t => t.id))}");
|
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("鉴定显卡(测试)", () =>
|
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Appraisal cards to counter (test)", () => Log.Guard("鉴定显卡(测试)", () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user