From 671f83128a000b90a4dfc5bb2f7308073215afd4 Mon Sep 17 00:00:00 2001 From: IceRaptor Date: Fri, 13 Nov 2020 13:07:53 -0500 Subject: [PATCH] no message --- IRTweaks/IRTweaks/ModInit.cs | 1 - README.md | 12 ++++++++++++ mod.json | 9 +++------ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/IRTweaks/IRTweaks/ModInit.cs b/IRTweaks/IRTweaks/ModInit.cs index 0bc01a1..a9a016a 100644 --- a/IRTweaks/IRTweaks/ModInit.cs +++ b/IRTweaks/IRTweaks/ModInit.cs @@ -66,7 +66,6 @@ public static void Init(string modDirectory, string settingsJSON) { Log.Error?.Write(e, $"Failed to read localizations from: {localizationPath} due to error!"); } - var harmony = HarmonyInstance.Create(HarmonyPackage); // Initialize modules diff --git a/README.md b/README.md index 5851700..4b2af1d 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ This is a mod for the [HBS BattleTech](http://battletechgame.com/) game that inc * **PathfinderTeamFix**: Mission Control introduces pathfinding units that have no Team associated with them. This breaks some mods, which this fix remediates. * **Random Start by Difficulty Menu**: Allows an option in the new-game difficulty menu to be associated with user-created lists of starting mechs. * **ReduceSaveCompression**: By default the game is setup to use an aggressive compression on save game files. This slows down game load. By setting this to true saves will use more space on disk but load faster. Thanks to **Gnivler** for this fix! +* **ScaleObjectiveBuildingStructure**: Increases the structure of any building that is the target of an objective. This allows high difficulty attack bases to be more difficult, and high difficulty defend bases to be easier. * **ShowAllArgoUpgrades**: Shows all available argo upgrades, instead of hiding the ones that require additional unlocks. * **SimGameDifficultyLabelsReplacer**: Allows customization of the labels on the 'difficulty' bar when you start a new career or campaign game. * **SkirmishAlwaysUnlimited**: This allows you to drop from Skirmish even if your lances violate the limits of the currently selected operation type. @@ -199,6 +200,17 @@ Example: }, ``` +## ScaleObjectiveBuildingStructure + +This tweak modifies the structure of all buildings that are associated with an objective at the start of combat. All buildings are changed regardless of their faction affiliation, so it applies to defend base targets as much as attack base targets. + +This tweak can be customized in mod.json through the `Combat.ScaledStructure` settings. `ScaledSettings.DifficultyScaling` is a dictionary keyed by the current contract's **finalDifficulty**. Each value has a `Multi` and `Mod` value. The `Multi` value is a multiplier that multiplies the base structure of the building. The 'Mod' value then modifies this value. + +`AdjustedStructure = (BaseStructure x Multi) + Mod` + + + `ScaledStructure.DefaultScale` defines the modifications that should be used when no difficulty-based scaling can be found. If the __finalDifficulty_ of a contract cannot be found, but the __finalDifficulty_ is within the minimum and maximum values defined in `DifficultyScaling` the default scale will be used. + ## Sensor Lock Freedom This tweak changes the SensorLock behaviors such that using the action doesn't end your turn. This previously occurred because SensorLock actions counted as both movement and firing (in a very weird way). When this tweak is enabled, you can sensor lock at any point during your activation. diff --git a/mod.json b/mod.json index 9316ea6..4ae9076 100644 --- a/mod.json +++ b/mod.json @@ -2,7 +2,7 @@ "Name": "IRTweaks", "Enabled": true, "Hidden": true, - "Version": "0.7.6", + "Version": "0.8.0", "Description": "Miscellaneous Tweaks and Fixes", "Author": "IceRaptor", "Website": "https://github.com/IceRaptor/IRTweaks", @@ -33,6 +33,7 @@ "PreventHeadShots": false, "RandomStartByDifficulty": true, "ReduceSaveCompression": true, + "ScaleObjectiveBuildingStructure" : true, "ShowAllArgoUpgrades": true, "SimGameDifficultyLabelsReplacer" : false, "SkirmishAlwaysUnlimited": true, @@ -90,10 +91,6 @@ "Store": { "QuantityOnShift": 5, "QuantityOnControl": 20 - }, - "SimGameDifficultyStrings" : { - "DESCRIPTION" : "Overall Difficulty", - "LABEL" : "Difficulty" - } + } } } \ No newline at end of file