feat: add gated CH5 quiver support and unified regression runner

This commit is contained in:
shen
2026-10-22 17:41:47 -07:00
parent 60ed66692e
commit 3784137b4f
39 changed files with 1617 additions and 23 deletions
+15
View File
@@ -445,6 +445,21 @@ int main(int argc, char** argv)
CHECK(py("import net\nassert net.IsConnect(), 'disconnected in the game phase'"));
// Focused batch-pickup regression avoids unrelated legacy economy wire fixtures.
if (server && std::getenv("MT_TEST_QUIVER")) {
auto type=[] {auto* actor=CPythonCharacterManager::Instance().GetInstancePtr(FakeLoginServer::kMainVID);return actor?int(actor->GetArrowType()):-1;};
CHECK(pump_until(8,[&] {return type()==9 || failed();}));
CHECK(type()==9 && !failed());
for (int expected:{6,0,9}) {
CHECK(py("net.SendChatPacket('/quiver_test "+std::to_string(expected)+"')"));
CHECK(pump_until(5,[&] {return type()==expected || failed();}));
CHECK(type()==expected && !failed());
}
CHECK(py("import app\napp.Exit()"));
pump_until(2,[] {return !PythonBoot::IsAppLooping();});
PythonBoot::Stop();
std::printf("quiver negotiated packet fixture: %s\n",g_failures?"FAILED":"PASS");
return g_failures?1:0;
}
if (server && std::getenv("MT_TEST_AUTOHUNT_BATCH")) {
CHECK(CPythonPlayer::Instance().NEW_GetMainActorPtr());
CHECK(CPythonCharacterManager::Instance().GetInstancePtr(FakeLoginServer::kMobVID));