地球不屈 Terra Invicta

地球不屈 Terra Invicta

评价数不足
Investment Completion Configuration
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
569.358 KB
2024 年 5 月 11 日 下午 4:04
5 月 31 日 下午 4:58
8 项改动说明 ( 查看 )

订阅以下载
Investment Completion Configuration

描述
This mod is built for Terra Invicta version 0.4.90.
-The mod should still be compatible with version 0.4.78
This mod REQUIRES Unity Mod Manager [https://www.nexusmods.com/site/mods/21]. Install using the DoorstopProxy method.
-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.

Why are Armies/Navies/Nukes/Space Defences/Mission Control/STO Fighters still built when set to 0?
-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.

How do I reset everything to default?
-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.

Is this save game compatible?
-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.

Is this mod compatible with other mods?
-This mod applies a HarmonyPrefix to the following functions:
--AddSpoilsPriorityEnvEffect (Merely multiplies __scaling; Should not be an issue with other mods)
--TINationState.UnityPriorityComplete (Most likely incompatible as it'll preempt other patches when it returns false for continuing on (Not incompatible in terms of crashing, but in terms of you'd only get the effects of whichever patch loads in first))

Mod Compatibles:
-'Economic Equalization Overhaul' is perfectly compatible despite touching TINationState.UnityPriorityComplete, you'll just need to enable the respective setting if you want EEO's 80% malus to Propoganda/Public Opinion as that method is being... comandeered by a HarmonyPrefix.

Can I edit/reupload this mod?
-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.

Known Issues:
-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.
12 条留言
EclipsedStar  [作者] 5 月 31 日 下午 5:07 
Pushed an update to fix an infinite recursion crash and also added a setting for Decontamination/Radiation cleanup. (By Default completing the Environment Priority 100 times mitigates the leftover effects of one nuclear barrage on a region; Now you can set the number of times this decontamination is done if you want nukes to be cleaned up faster)
SpardaSon21 5 月 28 日 下午 8:37 
Thank you!
EclipsedStar  [作者] 5 月 28 日 下午 8:36 
@SpardaSon21 Ah, yeah that would be a File.Log function call I left in when I was first making the mod to try to figure out if harmony loaded it or not. I've commented it out and pushed an update to the mod. Shouldn't be an issue now.
SpardaSon21 5 月 27 日 下午 6:44 
Your mod dumps a harmony.log.json to my desktop every time I play the game.
Lazy Invincible General 5 月 22 日 上午 10:57 
thanks for the quick update
EclipsedStar  [作者] 5 月 21 日 下午 10:11 
@Lazy Invincible General
Thank you for bringing this to my notice. I've just finished updating the mod to v0.4.78.
Lazy Invincible General 5 月 21 日 下午 1:37 
UMM can't seem to load it for 0.4.78 so I'm guessing it might need a update
J0hnsy 2024 年 8 月 7 日 下午 9:26 
Thanks so much!
EclipsedStar  [作者] 2024 年 8 月 4 日 下午 2:26 
@J0hnsy; Apologies if I didn't make this clear, I realise now that I didn't actually mention that I implemented your request. I updated the mod on the 26th to provide an option in the settings panel to switch the multipliers to only affect player-controlled nations. With that setting enabled, only nations containing a player-cp will receive the multipliers/boosts. Keep in mind, it can be easy to miss, but the option should be near the top. If UnityModManager's settings panel (when the game loads up) shows the mod as still being 1.0.3, then the mod hasn't updated on your end, as 1.1.0 is the one with the player-only toggle option.
J0hnsy 2024 年 8 月 2 日 上午 5:50 
Can you please add a player only version? Would be really funny stomping the aliens with + servants with $100 trillion nepal