Skip to content

Conversation

@Hell4uk
Copy link
Owner

@Hell4uk Hell4uk commented Dec 7, 2025

No description provided.

Hell4uk and others added 28 commits October 28, 2025 22:41
…duce TelegramTextMap for text responses and implement a new Enemy model in the database.
…d updating related methods in InventoryService. Clean up unused imports and ensure consistent return types across inventory operations.
…figurations, and modifying model fields for better clarity. Change description field type in Item model and ensure consistent naming in ForeignKey relationships. Update command handling to use await for text responses.
…ntoryItems for consistency. Update related references throughout the codebase, ensuring ForeignKey relationships reflect the new naming conventions. Enhance InventoryItems model with unique constraints and table metadata.
…t from str, and adding table metadata and ordering to Users and Items models. Update BaseAttributes and WeaponAttributes schemas with new fields for item properties. Remove unused battle logic file and improve inventory service with a method to retrieve inventory as a dictionary.
…ent. Refactor TelegramTextMap methods to be static for improved clarity. Clean up unused imports in models and update item retrieval methods to use more efficient querying. Ensure consistent return types across item service methods.
…update equipped status handling in InventoryService, and enhance damage and armor calculation logic with new classes for better modularity. Adjust InventoryItems model to set default equipped status to False.
…onses and remove unused keyboard file. Enhance user interaction by providing a consistent reply markup for greeting and main menu callbacks.
…ntroduce EnemyTypeEnum for enemy classification, and implement EnemyCalculator for dynamic enemy stats and rewards based on player level. Update EnemyService to manage enemy spawning and rewards, integrating drop mechanics and level-up functionality for users.
…ard calculations. Rename `get_reward` method to `get_rewards` for better alignment with functionality. Update variable names for enhanced readability.
… `coin_reward_multiplier` for consistency. Update `get_rewards` method in `EnemyCalculator` to reflect this change and adjust related calculations. Modify callback handlers for battle, inventory, and market to use specific identifiers for improved clarity.
…nd retrieval. Update default command and battle callback handlers to utilize UserService methods for improved clarity and consistency. Enhance TelegramTextMap with additional menu text options for better user interaction.
…essage editing capabilities. Update callback handlers for battle, inventory, and market to utilize TelegramTextMap for dynamic menu text responses based on user interactions.
Enhance bot functionality by integrating logging for better debugging and monitoring. Update main.py to include logging configuration and set log levels for specific modules. Refactor bot initialization to utilize MemoryStorage for the Dispatcher and add LoggingMiddleware for improved message handling. Update item and enemy models to use IntEnum for better type safety and introduce new Locations and MarketItem models for expanded gameplay features. Remove unused inventory and market callback handlers to streamline codebase.
…ace SafeEditMiddleware with SafePatchMiddleware for enhanced message editing capabilities. Update inventory and market item description formatting to include defense and health attributes. Set default minimum price filter to 0 in market filters. Remove unused battle callback handler to streamline codebase.
… losses, and ELO ratings. Update ordering in the Enemies and Locations models for consistency. Implement string representation methods for better debugging output. Add a new button for statistics in the main menu keyboard.
…d information including level, experience, wins, losses, and equipped items. Update message formatting for improved readability.
…factor damage and armor calculations in calculation.py to use dictionary access for weapon and armor attributes. Update get_stats method in EnemyCalculator to be asynchronous, ensuring proper handling of calculations.
… feedback when the Telegram bot is closed. Remove unused basedb.py and related battle callback handlers to streamline the codebase. Introduce new statistics callback handler and update user statistics display with equipped item details. Refactor database sequence reset logic in generator.py to prevent ID conflicts. Update battle and statistics keyboards for improved user interaction.
…tering, ensuring enemies are spawned based on the user's current location. Update calculation methods in DamageCalculation and ArmorCalculation to accept user parameters directly, enhancing flexibility. Introduce Locations model with string representation for improved debugging. Clean up unused code and comments in models.py.
…pdate main.py to handle KeyboardInterrupt instead of InterruptedError for better user feedback. Modify damage calculation logic to use randint for more accurate damage values. Enhance EnemyCalculator methods to be asynchronous and accept user parameters directly, improving flexibility in calculations. Update battle menu and singleplayer logic to reflect new routing and reward structures.
…nctionality

- Added case initialization script to populate the database with various cases.
- Created CaseService for managing cases, including opening cases and retrieving case information.
- Developed handlers for case-related callbacks, including opening and buying cases.
- Enhanced inventory and market services to support case operations.
- Updated inline keyboards for case interactions in the bot.
- Improved user experience with detailed messages and error handling for case operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants