[1.0.26] Investment Completion Configuration
-This mod will not function WITHOUT Unity Mod Manager, as it is not a .json edit– but instead injecting code via a .dll.
This mod adds options on startup (via Unity Mod Manager), that allows you to configure a multiplier that is applied whenever a Nation completes a priority. This includes all priorities, including Mission Control, Nukes, Armies, Navies, Space Defences, and Surface-to-Orbit fighters. Where other priorities, use multipliers for the specific effects, these six priorities are the number of times that Priority is then run again. This means that, yes, you could have a nation create a dozen armies with one completion of the Build Army Priority. Want to instantly cover your entire Meganation with completion of the Build Space Defences Priority? Well now you can, just set the counter higher than the number of regions you have. Want to make Education/Government meaningfully change over the course of the game? Now you can. Every effect the completion of a priority has, can be multiplied by a configurable multiplier in the startup menu. If you wish to return to Vanila values, simply reset the values to the numbers displayed in parantheses.
For these multipliers to be applied accurately– ONLY use positive values. These are multiplicative, so if you use a negative multiplier, you will flip the sign and that will INVERT the effects of the modifier. If you want to LOWER the amount by which a modifier changes, use a decimal number between 0 and 1.00, rather than going into negatives. Values greater than 1.00 INCREASE the effects/shift from the Priority completing.
I have also included a ‘safety cap’ of sorts- this is to prevent small nations from shifting too extremely from priorities when using larger modifiers. This can be disabled or adjusted at will.
–Presently those modifiers are applied with a HarmonyPostfix- meaning they happen AFTER the base-game function has already run. In the future I may add a ‘toggleable’ HarmonyPrefix to preempt those functions if their modifiers are set below 1.
-The default values are placed within parentheses, just change the values in the fields to what’s inside the parentheses. If for whatever reason the value isn’t listed, 1 is a safe guess.
-Yes, yes this is save game compatible. And yes, yes you can change your settings mid-save, you’ll just need to relaunch the game to get to the UnityModManager settings window.
-This mod applies a HarmonyPrefix to the following functions:
–AddSpoilsPriorityEnvEffect (Merely multiplies __scaling; Should not be an issue with other mods)
-‘Economic Equalization Overhaul’ is compatible as we no longer use a Harmony PreFix for OnUnityPriorityComplete
-I will say this now rather than later– you are free to do WHATEVER you want with this mod and its code. Consider this blanket permission to do as you wish. The source code (investmentBoost.cs) file and the (investmentBoost.csproj) file are included along with a short guide of sorts in the (investmentBoost.cs) file if you wish to change aspects of the mod/rebuild the mod to the current version.
-Strange formatting in UnityModManager’s settings- it doesn’t seem to be monospaced even when switching to monospaced fonts and thus, things are out of alignment.
-Anti-Space Defences tooltip is under the BuildArmy tooltip as I cannot locate the tooltip for Anti-Space Defences.
Revisions:
Old revisions of this mod are available below. Click the link to download.