Commit Graph

  • d921dc2f7e Integrate servant management into Falukant family dynamics: Added support for servant-related logic in FalukantFamilyWorker, including daily and monthly processing of servant data. Updated SQL queries to handle servant attributes and integrated servant discretion modifiers into relationship calculations, enhancing family interaction and satisfaction tracking. main Torsten Schulz (local) 2026-03-22 10:09:26 +01:00
  • c209c41b52 Implement notification system for character death events: Added a new method in UserCharacterWorker to notify users of character deaths, including directors, relationships, and children. Updated SQL queries to support the insertion of notifications with event types, enhancing user engagement and real-time updates. Torsten Schulz (local) 2026-03-22 09:48:16 +01:00
  • 4086e9a207 Refactor pregnancy handling in UserCharacterWorker: Changed the pregnancy check from a daily to an hourly basis, updating the associated method and SQL query to reflect this new frequency. This adjustment improves the accuracy of pregnancy probability calculations and aligns with the updated family dynamics logic. Torsten Schulz (local) 2026-03-22 09:43:36 +01:00
  • ac5ec3a245 Enhance Falukant family dynamics: Updated the FalukantFamilyWorker to incorporate marriage buffs and detailed age rules for relationships. Added new WebSocket events for real-time updates and expanded SQL queries to support marriage state and buff management, improving overall family interaction and satisfaction tracking. Torsten Schulz (local) 2026-03-20 11:02:28 +01:00
  • 6a5ff4557e Add FalukantFamilyWorker and related SQL queries: Introduced the FalukantFamilyWorker to manage family-related logic, including marriage satisfaction and relationship states. Added new SQL queries for handling lover relationships and marriage updates, enhancing the overall functionality of family dynamics in the application. Torsten Schulz (local) 2026-03-20 10:26:15 +01:00
  • f9c80bbd6b Enhance pregnancy candidate query: Refactored SQL query to calculate pregnancy probabilities based on mother's age, utilizing a common table expression (CTE) for improved clarity and maintainability. The new logic replaces the previous average age calculation with a more detailed age-based probability assessment, ensuring accurate filtering of candidates. Torsten Schulz (local) 2026-03-19 09:13:36 +01:00
  • 6757aa363f Refactor event handling in EventsWorker: Consolidated money change, storage capacity change, and character health change logic into dedicated methods for improved clarity and maintainability. This change enhances the handling of various event effects while preserving existing functionality. Torsten Schulz (local) 2026-03-10 22:04:54 +01:00
  • 9961b91c4f Enhance event handling for money changes in EventsWorker: Introduced special cases for 'windfall' and 'theft' events, allowing for random monetary adjustments based on current user funds. Updated logic to ensure accurate percentage and absolute changes while maintaining existing functionality for standard money change events. Torsten Schulz (local) 2026-03-10 17:07:14 +01:00
  • 5d0dd41c3f Refactor event handling for character death: Updated the EventsWorker to ensure only player characters are notified of sudden child deaths, while NPCs are excluded. Adjusted health update logic to prevent player characters from reaching zero health due to accidents or illnesses. Enhanced SQL queries to filter characters based on user ID, improving clarity and functionality. Torsten Schulz (local) 2026-03-02 00:36:21 +01:00
  • 69dad6854a Enhance money change functionality in EventsWorker: Updated the MoneyChange event effect to include an optional minimum absolute positive value, ensuring that money changes do not result in zero for positive adjustments. Introduced a new SQL query for inserting money history, improving reliability in tracking monetary changes for users. Torsten Schulz (local) 2026-02-06 07:40:25 +01:00
  • 4baf88b0cf Enhance SQL query for character region filtering: Updated the query to use a recursive common table expression (CTE) for retrieving region IDs, allowing for more comprehensive region hierarchy handling. This change improves the accuracy of character selection based on regional relationships while maintaining existing filtering criteria. Torsten Schulz (local) 2026-02-05 23:59:20 +01:00
  • 1e565e6dd9 Refactor money change handling in EventsWorker: Updated the logic for applying money changes to use the current money value for calculations, ensuring accurate adjustments. Introduced a new method to retrieve the current money of a user, enhancing error handling and improving the overall clarity of the code. Torsten Schulz (local) 2026-02-05 08:16:54 +01:00
  • deaf5ac6ca Refactor variable naming in DirectorWorker: Updated variable names to improve code clarity by prefixing with underscores for unused variables. This change enhances readability and maintains functionality without altering logic. Torsten Schulz (local) 2026-02-04 14:50:39 +01:00
  • d94fa791b3 Add child relation deletion by parent query: Introduced a new SQL query to delete child relations where the character is either a father or mother. Updated relevant workers to execute this query before deleting child relations, ensuring proper cleanup of relationships during character deletion. Torsten Schulz (local) 2026-02-04 14:46:57 +01:00
  • 2293c1204b Add SQL query for product price history: Introduced a new query to insert regional product prices into the history table, calculating prices based on sell cost and worth percentage. Updated ValueRecalculationWorker to log current prices for affected regions, enhancing price tracking functionality. Torsten Schulz (local) 2026-02-04 09:10:31 +01:00
  • 00cb97ec57 Enhance logging for sales checks in DirectorWorker: Added detailed logging statements to track the sales verification process, including cases with no items to sell and the number of inventory items found. This improves visibility into the sales workflow and aids in debugging. Torsten Schulz (local) 2026-02-02 15:48:53 +01:00
  • 85b4c73c11 Update user money handling to prevent serialization errors: Adjusted the SQL query to cast money as numeric and modified the UserCharacterWorker to clamp and format the money value before executing the update. This change ensures valid numeric input and enhances error handling for user transactions. Torsten Schulz (local) 2026-02-02 15:29:53 +01:00
  • 658a9034ed Add SQL query to count children by user: Introduced a new query to count distinct children associated with a user across all their characters. Updated UserCharacterWorker to utilize this new query, replacing the previous count query. This enhances user-specific data retrieval capabilities. Torsten Schulz (local) 2026-02-02 15:25:13 +01:00
  • 460310ae89 Refactor error handling in ProduceWorker: Simplify error logging by removing detailed error messages and replacing them with silent error handling. This change streamlines the code and reduces console output during production processing, while maintaining functionality. Torsten Schulz (local) 2026-02-02 15:18:44 +01:00
  • 2f875d6c1c Refactor SQL query for finished productions: Update to use DISTINCT ON for unique production IDs, change JOINs to LEFT JOINs for character and director relationships, and simplify capacity checks to ensure sufficient storage for productions. Adjust ordering for improved query performance. Torsten Schulz (local) 2026-02-02 15:04:56 +01:00
  • 340c658ad1 Implement character death handling and periodic checks: Add logic to process characters with health <= 0 in EventsWorker and UserCharacterWorker, including immediate death handling during health updates and a scheduled death check every 12 hours. Introduce a new SQL query to retrieve characters with zero health. Torsten Schulz (local) 2026-02-02 08:05:12 +01:00
  • 972ef2b714 Reduce probabilities and effects of various random events in EventsWorker: Adjusted the likelihood and impact of events such as character illness, accidents, regional epidemics, and earthquakes to balance gameplay dynamics. Torsten Schulz (local) 2026-01-31 08:58:15 +01:00
  • f6d566427a Add immediate handling for deceased characters in health update: Implement logic to check if a character's health is less than or equal to zero and handle their death accordingly, improving character state management. Torsten Schulz (local) 2026-01-31 08:55:49 +01:00
  • c24aa63f97 Fix SQL query parameter order in inventory update: Swap parameters in the execute call to correctly update inventory quantity based on the new quantity and inventory ID. Add comment for clarity on SQL operation. Torsten Schulz (local) 2026-01-29 16:10:34 +01:00
  • 9f1c54fde9 automatic apply on church jobs Torsten Schulz (local) 2026-01-29 11:20:45 +01:00
  • 55a86f75f1 Improve stock creation logging in StockageManager: Add detailed logging for the number of new stocks created and errors encountered during the stock addition process. Update randomness threshold for stock creation to increase the likelihood of stock generation per town. Torsten Schulz (local) 2026-01-29 08:21:48 +01:00
  • 45287837bc Enhance house creation logging in HouseWorker: Add detailed logging for the number of new buyable houses created and errors encountered during the process. Update SQL query to increase the randomness threshold for house selection, improving the variety of houses retrieved. Torsten Schulz (local) 2026-01-29 08:18:56 +01:00
  • 31998e310c Implement capacity check in ProduceWorker: Add a method to verify available storage before processing finished productions, ensuring that production only occurs if sufficient capacity is present. Update SQL query to reflect the new capacity validation logic for improved reliability in production handling. Torsten Schulz (local) 2026-01-29 08:10:38 +01:00
  • 05e6155e38 Enhance capacity management in DirectorWorker: Retrieve current capacity values directly from the database to prevent race conditions, calculate free capacity based on real-time data, and ensure production only occurs if sufficient storage is available. Update SQL query to check for adequate storage before returning production results. Torsten Schulz (local) 2026-01-28 16:36:30 +01:00
  • 4b4d84b15c Implement overproduction notification handling in ProduceWorker: Add logic to check for existing notifications and update them if necessary, or create a new notification if none exist. Introduce SQL queries for finding and updating overproduction notifications to enhance database interactions. Torsten Schulz (local) 2026-01-28 15:06:48 +01:00
  • 710a2a62b2 Refactor SQL query in DirectorWorker: Remove original_sell_cost from selection and enhance cost resolution logic for improved clarity and efficiency in database interactions. Torsten Schulz (local) 2026-01-28 14:46:57 +01:00
  • 1d9a7ba8a0 Refactor product cost retrieval in DirectorWorker: Simplify the SQL query by removing the original_sell_cost from the selection, and adjust the cost resolution logic to improve clarity and efficiency in database interactions. Torsten Schulz (local) 2026-01-28 14:41:27 +01:00
  • c9e0781b61 Update dependencies and enhance WebSocket server logging: Add 'chrono' and 'android_system_properties' to Cargo.lock, improve error handling and logging in websocket_server.rs, and streamline character creation notifications in worker modules for better clarity and maintainability. Torsten Schulz (local) 2026-01-28 14:21:28 +01:00
  • 2ac474fe0c Refactor relationship type retrieval in user character workers: Simplify the extraction of relationship types in UserCharacterWorker, CharacterCreationWorker, and EventsWorker by replacing and_then with map for improved readability and consistency. Torsten Schulz (local) 2026-01-23 10:52:59 +01:00
  • c8668c59eb Refactor relationship type retrieval in character workers: Simplify the extraction of relationship types in CharacterCreationWorker, EventsWorker, and UserCharacterWorker by streamlining the use of and_then for better readability and maintainability. Torsten Schulz (local) 2026-01-23 10:48:15 +01:00
  • 0399333163 Enhance relationship deletion logging across workers: Implement detailed logging for the number of deleted relationships in CharacterCreationWorker, EventsWorker, and UserCharacterWorker, improving traceability and user awareness during character interactions. Torsten Schulz (local) 2026-01-23 10:46:32 +01:00
  • 7305a71438 Enhance relationship deletion process in character management: Implement detailed logging for deleted relationships, including related user and character IDs, and relationship types. Introduce special notifications for engaged relationships to improve user awareness during character events. Torsten Schulz (local) 2026-01-22 09:35:21 +01:00
  • 70d8e53216 Add new random events in EventsWorker: Introduce 'character_rest' and 'character_healer' events to enhance gameplay dynamics. Each event includes unique probabilities, descriptions, and health effects, enriching the personal event experience for characters. Torsten Schulz (local) 2026-01-21 11:26:23 +01:00
  • 0083d7be23 Add daily cleanup of old notifications in EventsWorker: Implement a new method to delete notifications older than 30 days, enhancing database management and reducing clutter. Update run loop to trigger this cleanup daily, ensuring timely maintenance of notification records. Torsten Schulz (local) 2026-01-15 13:45:31 +01:00
  • fc1b0c2259 Refactor personal event handling in EventsWorker: Introduce a new CharacterInfo struct to encapsulate character details extracted from event effects. Streamline the application of personal effects by consolidating logic into a single method, improving clarity and maintainability. Enhance notification creation by directly incorporating character information, ensuring accurate event communication. Torsten Schulz (local) 2026-01-15 13:33:39 +01:00
  • 63a89588ac Refactor event notification handling in EventsWorker: Simplify notification creation by removing unnecessary value object and directly incorporating character information into the notification JSON. Add early exit for events with no effects, improving clarity and efficiency in event processing. Torsten Schulz (local) 2026-01-15 13:27:30 +01:00
  • f32c4b1456 Add sleep management for productions in ProduceWorker: Implement logic to set productions to sleep when storage capacity is insufficient. Introduce methods for processing and retrieving sleep productions, enhancing inventory management and production flow control. Torsten Schulz (local) 2026-01-14 15:26:15 +01:00
  • f133f3999e Update SQL query to exclude characters without associated user IDs: Modify the QUERY_GET_REGION_CHARACTERS to ensure only characters with a valid user_id are selected, enhancing data integrity and relevance in region-specific character retrieval. Torsten Schulz (local) 2026-01-14 10:28:13 +01:00
  • e1e4c08d38 Improve logging in WebSocket server: Enhance connection acceptance and WebSocket handshake messages for better clarity. Update error messages for connection failures and refine logging for TLS and non-TLS connections, ensuring comprehensive diagnostics and user awareness. Torsten Schulz (local) 2026-01-12 16:54:08 +01:00
  • 1505d3d004 Refactor production initiation logic in DirectorWorker: Update the create_single_production method to return the produced quantity, enhancing the loop's decision-making process. Improve error handling and logging for production failures, ensuring better capacity management and preventing race conditions during production checks. Torsten Schulz (local) 2026-01-12 16:52:18 +01:00
  • 40df17ee91 Enhance logging in WebSocket server: Add detailed logging for TLS initialization, TCP connection acceptance, and WebSocket handshake processes. Improve error messages to provide clearer feedback on potential issues, enhancing overall server diagnostics and user awareness. Torsten Schulz (local) 2026-01-12 16:46:30 +01:00
  • 5f55aeea99 Refactor money change action string in EventsWorker: Simplify the action string for money history by differentiating between positive and negative changes. Remove unnecessary parameters from the function signature to enhance clarity and maintainability. Torsten Schulz (local) 2026-01-12 16:38:38 +01:00
  • 408221ffb4 Refactor notification structure in EventsWorker: Simplify the JSON notification format by separating the value object and ensuring it only contains relevant data without translations. Update action string for money changes to include specific event titles, enhancing clarity for frontend access. Torsten Schulz (local) 2026-01-12 16:35:47 +01:00
  • 5475ae24f6 Refactor production calculation in DirectorWorker: Update the logic for determining the number of items to produce, ensuring it adheres to capacity constraints and maximum production limits. Add safety checks and logging for potential errors in production calculations, enhancing reliability and debugging capabilities. Torsten Schulz (local) 2026-01-12 14:01:18 +01:00
  • b858f5c385 Adjust event probabilities in EventsWorker: Reduce the occurrence rates of various random events to 25% of their original values for better game balance. Update character health change effects to limit maximum health reduction based on user feedback. Enhance notification structure to include money change details for improved frontend access. Torsten Schulz (local) 2026-01-09 09:30:59 +01:00
  • 01d45d5f65 Enhance character event notifications in EventsWorker: Update character health change and death handling to include first and last names in notifications. Modify SQL queries to retrieve character names, ensuring accurate user feedback. Refactor notification structure for better organization and clarity. Torsten Schulz (local) 2026-01-07 11:33:23 +01:00
  • 282f6542fe event adjusted for epidemic Torsten Schulz (local) 2026-01-07 11:15:20 +01:00
  • f96e474f32 Add random heir fallback logic in EventsWorker: Implement a new SQL query to select a random NPC heir from the same region when no children are available. Enhance error handling to log cases where no heir is found, ensuring better user feedback and maintaining character associations. Update UserCharacterWorker to utilize this new logic for heir assignment. Torsten Schulz (local) 2026-01-07 10:14:24 +01:00
  • b7eafe28a1 Enhance TLS key handling in WebSocket server: Add support for SEC1 (EC PRIVATE KEY) in key loading process, improving flexibility for private key formats. Update error messages for clarity on key requirements. Include warning for clients when SSL is enabled but TLS is not active, ensuring proper connection protocols are used. Torsten Schulz (local) 2026-01-05 16:10:10 +01:00
  • 604c8ba300 Add character user clearing logic in EventsWorker: Implement a new SQL query to clear the user association from a deceased character before assigning a new heir. This ensures compliance with unique constraints and prevents errors during user reassignment. Enhance error handling and logging for better debugging. Torsten Schulz (local) 2026-01-05 15:46:54 +01:00
  • e2630eb32a Add heartbeat and null production start fix in ProduceWorker: Implement periodic logging to monitor worker activity and add functionality to update productions with null start timestamps. Enhance SQL queries for better data integrity and debugging capabilities. Torsten Schulz (local) 2026-01-05 15:30:39 +01:00
  • 108ac6c82b Refactor QUERY_GET_BEST_PRODUCTION SQL query in Worker: Improve readability and maintainability by restructuring the query with clearer aliases and consistent use of COALESCE. Enhance join conditions and ensure proper handling of character health, resulting in more accurate production worth calculations. Torsten Schulz (local) 2026-01-05 11:44:44 +01:00
  • 713504d3ab Refactor DirectorWorker SQL queries: Remove unused QUERY_GET_DIRECTOR_USER and update vehicle count retrieval to use consistent column names. This improves code clarity and maintains consistency in data handling. Torsten Schulz (local) 2026-01-05 11:32:56 +01:00
  • 1e4689212b Add cleanup functionality for collapsed houses in HouseWorker: Implement methods to delete collapsed buyable houses and user houses, including notifications for affected users. Update SQL queries to support this new feature, enhancing house management and user experience. Torsten Schulz (local) 2025-12-23 14:35:51 +01:00
  • da30ab0b15 Enhance character health change handling in EventsWorker: Update health change functions to return character death status, allowing for better tracking of character deaths. Implement logging of character deaths in both individual and regional health change scenarios, improving event processing and state management. Torsten Schulz (local) 2025-12-23 14:20:41 +01:00
  • ade3bff5cf Refactor revenue and tax calculations in DirectorWorker: Update pricing logic to compute revenue based on piece price and quantity, adjust profit calculations, and implement optional treasury user ID from environment variables for tax handling. This enhances accuracy in financial computations and improves code clarity. Torsten Schulz (local) 2025-12-23 12:16:58 +01:00
  • 431a6aff08 Implement heartbeat logging in EventsWorker: Add periodic logging to monitor the worker's activity and event triggering status. Introduce Mutex for thread-safe access to heartbeat timestamps, enhancing visibility into the worker's operational state. Torsten Schulz (local) 2025-12-23 10:56:14 +01:00
  • 08563c956c Add vehicle repair automation in DirectorWorker: Implement functionality to automatically repair vehicles based on their condition and region. Update SQL queries to support vehicle selection and repair operations, enhancing the Director's capabilities in managing vehicle maintenance. Torsten Schulz (local) 2025-12-22 15:07:02 +01:00
  • fce7400303 Refactor notification handling in Workers: Centralize notification insertion and frontend updates by replacing direct SQL queries with dedicated functions. This improves code maintainability and reduces redundancy across character creation, events, and transport processing. Torsten Schulz (local) 2025-12-22 13:58:17 +01:00
  • a82d554494 Enhance SQL query in Worker to include character reputation: Add COALESCE for reputation in the vote count query and adjust the GROUP BY and ORDER BY clauses to incorporate reputation, improving data accuracy in election results. Torsten Schulz (local) 2025-12-20 23:06:51 +01:00
  • 833202344b Refactor SQL query in Worker to improve distance calculations: Replace the existing LEFT JOIN with a LATERAL join to enhance the selection of region distances based on transport mode, ensuring more accurate results. Update polling frequency in TransportWorker from once per second to once per minute for better resource management. Torsten Schulz (local) 2025-12-20 22:20:29 +01:00
  • cd1b33a474 Update SQL query in Worker to exclude vehicles involved in transport: Modify the vehicle selection query to filter out vehicles that have been used in transport, enhancing data accuracy and integrity. Torsten Schulz (local) 2025-12-20 21:20:05 +01:00
  • 1719af2344 Refactor revenue and tax calculations in DirectorWorker: Adjust the pricing logic to account for cumulative tax inflation, ensuring accurate revenue and payout calculations. Update SQL query for sell logs to change conflict resolution order for better data integrity. Torsten Schulz (local) 2025-12-20 15:20:03 +01:00
  • 398e0ba677 Enhance SQL insert query for sell logs and improve error logging in TransportWorker: Add sell_timestamp to the insert statement and refine error messages to include transport details for better debugging. Torsten Schulz (local) 2025-12-20 14:20:09 +01:00
  • 4fca4b4d75 Enhance SQL queries and logging in TransportWorker and WeatherWorker: Update weather assignment logic to ensure unique weather types per region, improve distance calculations in transport queries, and refine logging for transport processing. Additionally, adjust notification insert queries to include character_id. Torsten Schulz (local) 2025-12-20 11:15:45 +01:00
  • 86cb437294 Update Rust crate tokio-rustls to 0.26 renovate/tokio-rustls-0.x Torsten Schulz 2025-12-19 16:19:15 +01:00
  • 5eb98f33c9 Update Rust crate rand to 0.9 #2 renovate/rand-0.x Torsten Schulz 2025-12-19 16:14:03 +01:00
  • 80012fec64 Merge pull request 'Configure Renovate' (#1) from renovate/configure into main Torsten Schulz 2025-12-19 16:08:08 +01:00
  • 8e92a63895 Add renovate.json #1 renovate/configure Torsten Schulz 2025-12-19 16:00:14 +01:00
  • f7710b64c9 Refactor WeatherWorker SQL query: Replace the existing weather update logic with a new query that assigns random weather types to each region, ensuring individual updates. Clean up logging messages for clarity. origin/main origin/HEAD Torsten Schulz (local) 2025-12-18 15:34:16 +01:00
  • 6d12c70d84 Entferne Info-Logs aus den Worker-Klassen: Reduziere die Protokollierung in ProduceWorker, DirectorWorker und TransportWorker, um die Ausgabe zu optimieren und nur Fehler zu protokollieren. Torsten Schulz (local) 2025-12-16 12:58:37 +01:00
  • d2e253b79a Füge erweiterte SQL-Abfragen und Logging in ProduceWorker hinzu: Implementiere Update- und Insert-Logik für das Inventar und verbessere die Fehlerausgaben. Torsten Schulz (local) 2025-12-16 10:52:06 +01:00
  • 74fee2d4c9 Verbessere Fehlerbehandlung in SQL-Abfragen: Füge detaillierte Fehlermeldungen für Vorbereitungs- und Ausführungsfehler in den Director- und Politics-Workern hinzu. Torsten Schulz (local) 2025-12-16 08:52:08 +01:00
  • b45990c1b6 Aktualisiere Benachrichtigungsabfragen: Ersetze character_id durch user_id in den Benachrichtigungs-INSERT-Abfragen und optimiere die Abfragen zur Auswahl des Benutzers. Torsten Schulz (local) 2025-12-16 08:24:46 +01:00
  • ae90166adb Aktualisiere Benachrichtigungsabfragen: Ersetze user_id durch character_id und optimiere die Abfragen zur Auswahl des Charakters. Torsten Schulz (local) 2025-12-15 21:20:30 +01:00
  • 2aa4e7c666 Füge VSCode-Build-Tasks hinzu: Erstelle Aufgaben für den Build-Prozess und Clippy-Überprüfungen. Torsten Schulz (local) 2025-12-13 23:40:20 +01:00
  • ce06b1a4f0 Verbessere SQL-Abfragen im Produktionsworker: Optimiere die Abfrage für abgeschlossene Produktionen und verbessere die Lesbarkeit der Preisberechnung. Torsten Schulz (local) 2025-12-13 12:17:00 +01:00
  • 10bc1e5a52 Refactor SQL queries into a dedicated module Torsten Schulz (local) 2025-12-13 11:57:28 +01:00
  • a9d490ce38 Refactor SQL queries into centralized module Torsten Schulz (local) 2025-12-12 15:18:30 +01:00
  • eab46f5cdc Verbessere Preisberechnung im DirectorWorker: Implementiere kumulative Steuerberechnung basierend auf regionalen Büros und deren Befreiungen, um die Genauigkeit der Einnahmen und Auszahlungen zu erhöhen. Torsten Schulz (local) 2025-12-12 07:52:53 +01:00
  • 1134be0f8d Enhance tax calculation in DirectorWorker: Integrate DEFAULT_TAX_PERCENT and DEFAULT_TREASURY_USER_ID for improved financial operations during product sales. Torsten Schulz (local) 2025-12-10 12:57:08 +01:00
  • 433259da74 Refactor WeatherWorker: Improve weather update query to ensure unique random weather selection for each region using LATERAL join. Torsten Schulz (local) 2025-12-09 13:51:02 +01:00
  • cddf701af1 Refactor change_falukant_user_money: Remove debug logging for money clamping and update execution to reduce noise, maintaining essential logging only when clipping occurs. Torsten Schulz (local) 2025-12-09 10:35:33 +01:00
  • c801e50def Enhance money history tracking: Implement best-effort creation of money_history table in BaseWorker, EventsWorker, and UndergroundWorker to ensure logging of monetary changes without operation failure. Torsten Schulz (local) 2025-12-09 08:53:39 +01:00
  • d740dbbf73 Enhance money history logging: Implement best-effort insert into money_history for UI visibility across BaseWorker, EventsWorker, and UndergroundWorker, improving tracking of monetary changes. Torsten Schulz (local) 2025-12-09 08:19:42 +01:00
  • e8c8c5edb1 Refactor EventsWorker: Move EVENT_RATE_SCALE constant to the struct for better encapsulation and clarity in event probability calculations. Torsten Schulz (local) 2025-12-09 00:09:12 +01:00
  • a4d1d79e6e Enhance EventsWorker: Introduce EVENT_RATE_SCALE constant to adjust event frequency, improving control over event triggering rates. Torsten Schulz (local) 2025-12-09 00:07:55 +01:00
  • 78b5527b15 Enhance change_falukant_user_money: Switch to literal SQL execution for update_money to resolve serialization issues with parameterized calls, improving reliability. Torsten Schulz (local) 2025-12-08 16:39:57 +01:00
  • 180431b130 Enhance change_falukant_user_money: Implement money clamping logic to ensure updates stay within numeric(10,2) limits, improving data integrity and error handling. Torsten Schulz (local) 2025-12-08 16:34:57 +01:00
  • 99fbaab816 Enhance change_falukant_user_money: Implement fallback to literal SQL for update_money on failure of parameterized call, improving robustness and error handling. Torsten Schulz (local) 2025-12-08 16:28:46 +01:00
  • 450497ccd3 Refactor change_falukant_user_money: Update parameter types for database call and enhance logging for better traceability Torsten Schulz (local) 2025-12-08 16:23:24 +01:00
  • 04a8da8d0c Enhance logging in change_falukant_user_money: Added type logging for parameters to identify unexpected types during execution, improving debugging capabilities. Torsten Schulz (local) 2025-12-08 16:15:30 +01:00
  • 688b21581d Enhance logging in BaseWorker and DirectorWorker: Added detailed debug logs before database calls in change_falukant_user_money, improving traceability of user ID and money change values during production start and sell operations. Torsten Schulz (local) 2025-12-08 16:07:08 +01:00
  • f7c4919a2a Enhance error logging in change_falukant_user_money function: Added detailed logging for parameters before executing the database update and improved error handling for serialization issues, enhancing traceability and debugging capabilities. Torsten Schulz (local) 2025-12-08 16:01:25 +01:00
  • ad0033031d Validate money change input in update_money function: Added checks to ensure the money_change value is finite before executing the database update, preventing potential serialization errors with invalid values. Torsten Schulz (local) 2025-12-08 15:53:31 +01:00