Skip to content

Commit

Permalink
improvements to companystat flagging. restructure some options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkroeg committed May 18, 2021
1 parent b4ff343 commit daaa34d
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 71 deletions.
16 changes: 14 additions & 2 deletions IRTweaks/IRTweaks/ModConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ public class StoreOpts
public int QuantityOnControl = 20;
}

public class CheatOpts
{
public bool CheatDetection = true;
public bool CheatDetectionNotify = false;
public string CheatDetectionStat = "CheatFound1";
}

public class CombatOpts
{
public int PilotAttributesMax = 13;
Expand Down Expand Up @@ -161,8 +168,7 @@ public class FixesFlags
public bool WeakAgainstMeleeFix = true;

// Misc
public bool CheatDetection = true;
public bool CheatDetectionNotify = false;

public bool DisableCampaign = true;
public bool DisableLowFundsNotification = true;
public bool DisableMPHashCalculation = true;
Expand Down Expand Up @@ -201,6 +207,7 @@ public class ModConfig
public FixesFlags Fixes = new FixesFlags();

public AbilityOpts Abilities = new AbilityOpts();
public CheatOpts CheatDetection = new CheatOpts();
public CombatOpts Combat = new CombatOpts();
public StoreOpts Store = new StoreOpts();

Expand Down Expand Up @@ -260,6 +267,11 @@ public void LogConfig()
Mod.Log.Info?.Write($" ApplyToEnemies:{Combat.SpawnProtection.ApplyToEnemies} ApplyToAllies:{Combat.SpawnProtection.ApplyToAllies} ApplyToNeutrals:{Combat.SpawnProtection.ApplyToNeutrals} ");
Mod.Log.Info?.Write($" ApplyToReinforcements:{Combat.SpawnProtection.ApplyToReinforcements}");

Mod.Log.Info?.Write(" -- Cheat Detection --");
Mod.Log.Info?.Write($" CheatDetection:{CheatDetection.CheatDetection}");
Mod.Log.Info?.Write($" CheatDetectionNotify:{CheatDetection.CheatDetectionNotify}");
Mod.Log.Info?.Write($" CheatDetectionStat:{CheatDetection.CheatDetectionStat}");

Mod.Log.Info?.Write(" -- ObstructionTweaks --");
Mod.Log.Info?.Write($" DRMechLocs:{Combat.ObstructionTweaks.DRMechLocs}");
Mod.Log.Info?.Write($" DRVehicleLocs:{Combat.ObstructionTweaks.DRVehicleLocs}");
Expand Down
Loading

0 comments on commit daaa34d

Please sign in to comment.