Petbot/config/items.json
megaproxy db144da24f 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>
2025-07-14 00:19:57 +01:00

213 lines
No EOL
6.5 KiB
JSON

{
"healing_items": [
{
"id": 1,
"name": "Small Potion",
"description": "Restores 20 HP to a pet",
"rarity": "common",
"category": "healing",
"effect": "heal",
"effect_value": 20,
"locations": ["all"],
"spawn_rate": 0.15
},
{
"id": 2,
"name": "Large Potion",
"description": "Restores 50 HP to a pet",
"rarity": "uncommon",
"category": "healing",
"effect": "heal",
"effect_value": 50,
"locations": ["all"],
"spawn_rate": 0.08
},
{
"id": 3,
"name": "Super Potion",
"description": "Fully restores a pet's HP",
"rarity": "rare",
"category": "healing",
"effect": "full_heal",
"effect_value": 100,
"locations": ["all"],
"spawn_rate": 0.03
},
{
"id": 4,
"name": "Energy Berry",
"description": "Restores 15 HP and cures status effects",
"rarity": "uncommon",
"category": "healing",
"effect": "heal_status",
"effect_value": 15,
"locations": ["mystic_forest", "enchanted_grove"],
"spawn_rate": 0.12
}
],
"battle_items": [
{
"id": 5,
"name": "Attack Booster",
"description": "Increases attack damage by 25% for one battle",
"rarity": "uncommon",
"category": "battle",
"effect": "attack_boost",
"effect_value": 25,
"locations": ["all"],
"spawn_rate": 0.10
},
{
"id": 6,
"name": "Defense Crystal",
"description": "Reduces incoming damage by 20% for one battle",
"rarity": "uncommon",
"category": "battle",
"effect": "defense_boost",
"effect_value": 20,
"locations": ["crystal_caves", "frozen_peaks"],
"spawn_rate": 0.08
},
{
"id": 7,
"name": "Speed Elixir",
"description": "Guarantees first move in battle",
"rarity": "rare",
"category": "battle",
"effect": "speed_boost",
"effect_value": 100,
"locations": ["all"],
"spawn_rate": 0.05
}
],
"rare_items": [
{
"id": 8,
"name": "Fire Stone",
"description": "A mysterious stone that radiates heat (future evolution item)",
"rarity": "epic",
"category": "evolution",
"effect": "none",
"effect_value": 0,
"locations": ["volcanic_chamber"],
"spawn_rate": 0.02
},
{
"id": 9,
"name": "Water Stone",
"description": "A mysterious stone that flows like water (future evolution item)",
"rarity": "epic",
"category": "evolution",
"effect": "none",
"effect_value": 0,
"locations": ["crystal_caves"],
"spawn_rate": 0.02
},
{
"id": 10,
"name": "Lucky Charm",
"description": "Increases rare pet encounter rate by 50% for 1 hour",
"rarity": "legendary",
"category": "buff",
"effect": "lucky_boost",
"effect_value": 50,
"locations": ["all"],
"spawn_rate": 0.01
},
{
"id": 11,
"name": "Ancient Fossil",
"description": "A mysterious fossil from prehistoric times",
"rarity": "legendary",
"category": "special",
"effect": "none",
"effect_value": 0,
"locations": ["forgotten_ruins"],
"spawn_rate": 0.01
}
],
"location_items": [
{
"id": 12,
"name": "Pristine Shell",
"description": "A beautiful shell that shimmers with ocean magic",
"rarity": "uncommon",
"category": "treasure",
"effect": "sell_value",
"effect_value": 100,
"locations": ["crystal_caves"],
"spawn_rate": 0.12
},
{
"id": 13,
"name": "Glowing Mushroom",
"description": "A mushroom that glows with mystical energy",
"rarity": "rare",
"category": "treasure",
"effect": "sell_value",
"effect_value": 200,
"locations": ["mystic_forest", "enchanted_grove"],
"spawn_rate": 0.06
},
{
"id": 14,
"name": "Volcanic Glass",
"description": "Sharp obsidian formed by intense heat",
"rarity": "uncommon",
"category": "treasure",
"effect": "sell_value",
"effect_value": 150,
"locations": ["volcanic_chamber"],
"spawn_rate": 0.10
},
{
"id": 15,
"name": "Ice Crystal",
"description": "A crystal that never melts, cold to the touch",
"rarity": "rare",
"category": "treasure",
"effect": "sell_value",
"effect_value": 250,
"locations": ["frozen_peaks"],
"spawn_rate": 0.05
},
{
"id": 16,
"name": "Ancient Rune",
"description": "A stone tablet with mysterious inscriptions",
"rarity": "epic",
"category": "treasure",
"effect": "sell_value",
"effect_value": 500,
"locations": ["forgotten_ruins"],
"spawn_rate": 0.03
}
],
"rarity_info": {
"common": {
"color": "white",
"symbol": "○",
"description": "Common items found frequently"
},
"uncommon": {
"color": "green",
"symbol": "◇",
"description": "Uncommon items with moderate rarity"
},
"rare": {
"color": "blue",
"symbol": "◆",
"description": "Rare items with special properties"
},
"epic": {
"color": "purple",
"symbol": "★",
"description": "Epic items with powerful effects"
},
"legendary": {
"color": "gold",
"symbol": "✦",
"description": "Legendary items of immense value"
}
}
}