fix: rebalance condition system to prevent 0% energy by split end - #325
Open
TtvNekix wants to merge 1 commit into
Open
fix: rebalance condition system to prevent 0% energy by split end#325TtvNekix wants to merge 1 commit into
TtvNekix wants to merge 1 commit into
Conversation
Three changes: 1. Match depletion (post_match.rs): reduced base depletion from fixed 40 to a randomised 15-30 per player per match. Mental resilience now provides a 25% reduction instead of 40%. This prevents condition from dropping to 0% after just a few matches. 2. Training recovery (training.rs): increased training-day recovery base from 3.0 to 5.0. Added matchday recovery at 4.2 (60% of a rest day) so players restore condition even on days they play. 3. Matchday recovery (turn/mod.rs): process_training is now called on matchdays (with is_matchday=true) in both process_day and finish_live_match_day, applying partial condition recovery instead of skipping recovery entirely. Net effect: over a full split (~10 matches), players maintain ~60-80% average condition instead of hitting 0%.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebalances the player condition (energy) system so that condition does not steadily drain to 0% over the course of a split.
Changes
1. Match depletion (post_match.rs)
Base depletion changed from fixed 40 to random 15-30 per player per match:
15.0 + random() * 15.0= 15-30 range2. Training recovery (training.rs)
3. Matchday recovery (turn/mod.rs)
process_trainingis now called on matchdays withis_matchday=truein bothprocess_dayandfinish_live_match_day. Previously recovery was completely skipped on matchdays.Net effect
Over a full split (~10 matches) with Balanced schedule, players maintain ~60-80% average condition instead of the previous ~0%.