Align AVA2 Windows behavior and improve mobile touch interactions

This commit is contained in:
shen
2026-10-13 23:46:26 -07:00
parent 31c5b3dd9b
commit b3808d8d0c
106 changed files with 5162 additions and 637 deletions
+4 -4
View File
@@ -77,9 +77,9 @@ void TestSafeBoxCpp() {
std::cout << "[Test 2] Testing CPythonSafeBox storeroom..." << std::endl;
auto& sb = CPythonSafeBox::Instance();
// Open 3 pages (3 * 45 = 135 slots)
// Windows OpenSafeBox takes rows: three rows * five columns, not three pages.
sb.OpenSafeBox(3);
assert(sb.GetCurrentSafeBoxSize() == 135);
assert(sb.GetCurrentSafeBoxSize() == 15);
sb.SetMoney(9876543);
assert(sb.GetMoney() == 9876543);
@@ -106,8 +106,8 @@ void TestSafeBoxCpp() {
assert(sb.GetSlotItemID(5, &queriedVnum) && queriedVnum == 0);
// Mall
sb.OpenMall(2); // 2 * 45 = 90 slots
assert(sb.GetMallSize() == 90);
sb.OpenMall(2); // Two rows * five columns.
assert(sb.GetMallSize() == 10);
TItemData mallItem;
mallItem.vnum = 70005; // Teleportation Ring