Update shop.py

This commit is contained in:
ManyManyTomato 2025-04-11 22:43:12 +08:00 committed by GitHub
parent 36c580213b
commit 8a285b4043
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 - 0) * 15 start = (num - 1) * 15
maxItems = min(len(plants) - start, 15) maxItems = min(len(plants) - start, 15)
items = plants[start:start + maxItems] items = plants[start:start + maxItems]