Skip to content

Commit

Permalink
Merge pull request #3266 from CombatExtended-Continued/String-Autopat…
Browse files Browse the repository at this point in the history
…cher

Key autopatcher mod menu entries
  • Loading branch information
N7Huntsman authored Jul 21, 2024
2 parents aa33abe + 53a1444 commit b385d13
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
20 changes: 20 additions & 0 deletions Languages/English/Keyed/ModMenu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,24 @@
<CE_Settings_PatchArmorDamage_Title>Use New Vehicle Armor</CE_Settings_PatchArmorDamage_Title>
<CE_Settings_PatchArmorDamage_Desc>Vehicle Armor reduces damage based on relative values, but can be penetrated by high AP attacks..</CE_Settings_PatchArmorDamage_Desc>

<!-- ========== Autopatcher settings ========== -->

<CE_Settings_VerboseAutopatcher_Title>Enable autopatcher verbose logging</CE_Settings_VerboseAutopatcher_Title>
<CE_Settings_VerboseAutopatcher_Desc>This will enable verbose logging of the autopatcher</CE_Settings_VerboseAutopatcher_Desc>

<CE_Settings_ApparelAutopatcher_Title>Enable apparel autopatcher</CE_Settings_ApparelAutopatcher_Title>
<CE_Settings_ApparelAutopatcher_Desc>Attempt to apply an appropriate apparel preset to the armor values of unpatched apparel.</CE_Settings_ApparelAutopatcher_Desc>

<CE_Settings_RaceAutopatcher_Title>Enable race autopatcher</CE_Settings_RaceAutopatcher_Title>
<CE_Settings_RaceAutopatcher_Desc>The autopatcher will apply a preset to unpatched races to allow basic functionality.</CE_Settings_RaceAutopatcher_Desc>

<CE_Settings_WeaponAutopatcher_Title>Enable weapon autopatcher</CE_Settings_WeaponAutopatcher_Title>
<CE_Settings_WeaponAutopatcher_Desc>Attempt to apply an appropriate weapon preset to unpatched ranged weapons.</CE_Settings_WeaponAutopatcher_Desc>

<CE_Settings_ToughnessAutopatcher_Title>Enable weapon toughness autopatcher</CE_Settings_ToughnessAutopatcher_Title>
<CE_Settings_ToughnessAutopatcher_Desc>Apply an automatically calculated toughness stat to weapons, which affects how much damage they recieve when used in melee.</CE_Settings_ToughnessAutopatcher_Desc>

<CE_Settings_PawnkindAutopatcher_Title>Enable pawnkind autopatcher</CE_Settings_PawnkindAutopatcher_Title>
<CE_Settings_PawnkindAutopatcher_Desc>Give unpatched pawnkinds equipped with a patched ranged weapon a small amount of ammunition.</CE_Settings_PawnkindAutopatcher_Desc>

</LanguageData>
12 changes: 6 additions & 6 deletions Source/CombatExtended/CombatExtended/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,13 @@ public void DoWindowContents(Listing_Standard list)
Text.Font = GameFont.Small;
list.Gap();

list.CheckboxLabeled("Enable autopatcher verbose logging", ref debugAutopatcherLogger, "This will enable verbose logging of the autopatcher.");
list.CheckboxLabeled("CE_Settings_VerboseAutopatcher_Title".Translate(), ref debugAutopatcherLogger, "CE_Settings_VerboseAutopatcher_Desc".Translate());

list.CheckboxLabeled("Enable apparel autopatcher", ref enableApparelAutopatcher, "This will enable the apparel autopatcher.");
list.CheckboxLabeled("Enable race autopatcher", ref enableRaceAutopatcher, "This will enable the race autopatcher.");
list.CheckboxLabeled("Enable weapon autopatcher", ref enableWeaponAutopatcher, "This will enable the weapon autopatcher.");
list.CheckboxLabeled("Enable weapon toughness autopatcher", ref enableWeaponToughnessAutopatcher, "This will enable the weapon toughness autopatcher.");
list.CheckboxLabeled("Enable PawnKind autopatcher", ref enablePawnKindAutopatcher, "This will enable the PawnKind autopatcher.");
list.CheckboxLabeled("CE_Settings_ApparelAutopatcher_Title".Translate(), ref enableApparelAutopatcher, "CE_Settings_ApparelAutopatcher_Desc".Translate());
list.CheckboxLabeled("CE_Settings_RaceAutopatcher_Title".Translate(), ref enableRaceAutopatcher, "CE_Settings_RaceAutopatcher_Desc".Translate());
list.CheckboxLabeled("CE_Settings_WeaponAutopatcher_Title".Translate(), ref enableWeaponAutopatcher, "CE_Settings_WeaponAutopatcher_Desc".Translate());
list.CheckboxLabeled("CE_Settings_ToughnessAutopatcher_Title".Translate(), ref enableWeaponToughnessAutopatcher, "CE_Settings_ToughnessAutopatcher_Desc".Translate());
list.CheckboxLabeled("CE_Settings_PawnkindAutopatcher_Title".Translate(), ref enablePawnKindAutopatcher, "CE_Settings_PawnkindAutopatcher_Desc".Translate());

// Do ammo settings
list.NewColumn();
Expand Down

0 comments on commit b385d13

Please sign in to comment.