Torsten Schulz (local)
|
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.
|
2026-02-02 15:29:53 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-02-02 15:25:13 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-02-02 15:04:56 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-01-31 08:58:15 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-01-31 08:55:49 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-01-29 16:10:34 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-01-28 15:06:48 +01:00 |
|
Torsten Schulz (local)
|
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.
|
2026-01-28 14:46:57 +01:00 |
|