Add complete item collection system (v0.2.0)

🎒 Item Collection System:
- 16 unique items across 5 categories (healing, battle, rare, location, special)
- Rarity tiers: Common, Uncommon, Rare, Epic, Legendary with symbols
- 30% chance to find items during exploration
- Location-specific items (shells, mushrooms, crystals, runes)
- Inventory management with \!inventory and \!use commands
- Web interface integration showing player inventories
- Consumable items: healing potions, battle boosters, lucky charms

🔧 Technical Updates:
- Added items and player_inventory database tables
- New Inventory module for item management
- Updated game engine with item discovery system
- Enhanced web interface with inventory display
- Item initialization from config/items.json

🆕 New Commands:
- \!inventory / \!inv / \!items - View collected items by category
- \!use <item name> - Use consumable items on active pets

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
megaproxy 2025-07-14 00:19:57 +01:00
parent e0edcb391a
commit db144da24f
13 changed files with 952 additions and 22 deletions

View file

@ -10,7 +10,7 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from src.database import Database
from src.game_engine import GameEngine
from modules import CoreCommands, Exploration, BattleSystem, PetManagement, Achievements, Admin
from modules import CoreCommands, Exploration, BattleSystem, PetManagement, Achievements, Admin, Inventory
class PetBot:
def __init__(self):
@ -53,7 +53,8 @@ class PetBot:
BattleSystem,
PetManagement,
Achievements,
Admin
Admin,
Inventory
]
self.modules = {}