feat: Add shop system, befriend command, and level system

- Added configurable shop system with shop.json
- Created ShopManager class for modular shop handling
- Implemented level system with levels.json for difficulty scaling
- Added multiple duck spawn messages with random selection
- Enhanced message system with color placeholders
- Added ducks_befriended tracking separate from ducks_shot
- Updated help system and admin commands
- All systems tested and working correctly
This commit is contained in:
2025-09-23 18:05:28 +01:00
parent de64756b6d
commit 3aaf0d0bb4
15 changed files with 733 additions and 60 deletions

View File

@@ -63,6 +63,11 @@ class DuckDB:
if nick_lower not in self.players:
self.players[nick_lower] = self.create_player(nick)
else:
# Ensure existing players have new fields
player = self.players[nick_lower]
if 'ducks_befriended' not in player:
player['ducks_befriended'] = 0
return self.players[nick_lower]
@@ -72,6 +77,7 @@ class DuckDB:
'nick': nick,
'xp': 0,
'ducks_shot': 0,
'ducks_befriended': 0,
'ammo': 6,
'max_ammo': 6,
'chargers': 2,