商店页面从0开始

This commit is contained in:
ManyManyTomato 2025-04-11 21:42:26 +08:00 committed by GitHub
parent d074c75b6c
commit 36c580213b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ class CShopManager:
sell = "" sell = ""
plants = list(g_pJsonManager.m_pPlant['plant'].items()) plants = list(g_pJsonManager.m_pPlant['plant'].items())
start = (num - 1) * 15 start = (num - 0) * 15
maxItems = min(len(plants) - start, 15) maxItems = min(len(plants) - start, 15)
items = plants[start:start + maxItems] items = plants[start:start + maxItems]