Add contract-earned permanent training-rate bonus - #2875
Open
chambm wants to merge 1 commit into
Open
Conversation
CrewHandler gains a persisted TrainingRateBonus multiplier, contributed to the RateTraining currency query (OnCurrencyModifierQuery) so it flows through CalculateBuildRate's existing rate line and composes with leader/strategy training modifiers. Covers proficiency and mission training, and recalculates in-progress courses when it changes. New BoostTrainingRate contract behaviour multiplies the bonus on completion (cfg multiplier, stacks multiplicatively).
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.
Lets a contract permanently boost the astronaut training rate as a reward.
CrewHandlergains a persistedTrainingRateBonusmultiplier (1.0 = none), contributed to theRateTrainingcurrency query viaOnCurrencyModifierQuery-- the same mechanism leader/strategy training effects use. It flows throughCalculateBuildRate's existing rate line, so it composes with those modifiers and covers both proficiency and mission training. In-progress courses are recalculated when it changes, and it's saved with the game.A new
BoostTrainingRatecontract behaviour multiplies the bonus on completion (multipliercfg field, stacks multiplicatively across contracts).Intended as a reward for non-exploration contracts that represent astronaut training.